* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #121212;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}




.nav-link {
  display: block;
  position: relative;
  color: #B0B0B0;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #7B61FF;
  font-weight: 500;
}


.mobile-dropdown-toggle {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mobile-dropdown.open .mobile-dropdown-toggle {
  transform: rotate(180deg);
}

.mobile-dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-dropdown.open .mobile-dropdown-content {
  max-height: 200px;
}




.form-group {
  margin-bottom: 1rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #252525;
  border: 1px solid #404040;
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #7B61FF;
  box-shadow: 0 0 0 2px rgba(123, 97, 255, 0.1);
}

.form-control::placeholder {
  color: #888888;
}


textarea.form-control {
  resize: vertical;
  min-height: 120px;
}


select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 3rem;
}


.form-label {
  display: block;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.required-label::after {
  content: " *";
  color: #ff6b6b;
}


.form-control.error {
  border-color: #ff6b6b;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}




.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.btn-primary {
  background: linear-gradient(135deg, #7B61FF 0%, #9F85FF 100%);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(123, 97, 255, 0.3);
}


.btn-secondary {
  background: transparent;
  border: 1px solid #7B61FF;
  color: #7B61FF;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(123, 97, 255, 0.1);
}


.btn-outline {
  background: transparent;
  border: 1px solid #B0B0B0;
  color: #B0B0B0;
}

.btn-outline:hover:not(:disabled) {
  background: #333333;
  border-color: #ffffff;
  color: #ffffff;
}




.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #252525;
  border-radius: 0.75rem;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: #B0B0B0;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #ffffff;
}




.toggle-switch {
  position: relative;
  width: 50px;
  height: 24px;
  background: #404040;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

input:checked + .toggle-switch {
  background: #7B61FF;
}

input:checked + .toggle-switch::after {
  transform: translateX(26px);
}

input:disabled + .toggle-switch {
  opacity: 0.5;
  cursor: not-allowed;
}




@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}


@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.8s ease-out;
}




.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}


.progress-bar {
  background: #404040;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7B61FF, #00BFA6);
  transition: width 0.8s ease;
}




#cookie-consent-banner {
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#cookie-consent-banner.show {
  transform: translateY(0);
}




.form-control.success {
  border-color: #4CAF50;
}

.success-message {
  color: #4CAF50;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}




.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




@media (max-width: 768px) {
  .nav-link {
    padding: 1rem 0;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
}


@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}




::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1E1E1E;
}

::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7B61FF;
}




.text-gradient {
  background: linear-gradient(135deg, #7B61FF, #00BFA6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-glow {
  box-shadow: 0 0 30px rgba(123, 97, 255, 0.3);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}




button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #7B61FF;
  outline-offset: 2px;
}




.stat-number {
  background: linear-gradient(135deg, #7B61FF, #00BFA6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}




.iti {
  width: 100%;
}

.iti__country-list {
  background: #252525;
  border: 1px solid #404040;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.iti__country {
  padding: 0.5rem 1rem;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.iti__country:hover {
  background: #333333;
}

.iti__country-name {
  color: #B0B0B0;
}

.iti__selected-country {
  background: #252525;
  border-right: 1px solid #404040;
}




.flatpickr-calendar {
  background: #252525;
  border: 1px solid #404040;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flatpickr-day {
  color: #ffffff;
}

.flatpickr-day:hover {
  background: #333333;
}

.flatpickr-day.selected {
  background: #7B61FF;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: #252525;
  color: #ffffff;
}



@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .bg-\[#121212\],
  .bg-\[#1E1E1E\],
  .bg-\[#252525\] {
    background: white !important;
    color: black !important;
  }
}




.calculator-container {
  background: #252525;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.calculator-result {
  background: linear-gradient(135deg, #7B61FF, #9F85FF);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}


.chart-container {
  position: relative;
  height: 400px;
  width: 100%;
}


.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #404040;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 12px;
  height: 12px;
  background: #7B61FF;
  border-radius: 50%;
}

.timeline-item:last-child {
  border-left: none;
}




.dark-theme {
  --bg-primary: #121212;
  --bg-secondary: #1E1E1E;
  --bg-tertiary: #252525;
  --text-primary: #ffffff;
  --text-secondary: #B0B0B0;
  --accent-primary: #7B61FF;
  --accent-secondary: #00BFA6;
  --border-color: #404040;
}


body.dark-theme {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.card {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
}




html {
  scroll-behavior: smooth;
}


body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


body {
  overflow-x: hidden;
}


main {
  min-height: calc(100vh - 60px);
}