/* ========== BASE VARIABLES & THEMES ========== */
:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #8b5cf6;
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --card-bg: #1e293b;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --glass-bg: rgba(30, 41, 59, 0.9);
    --blur: blur(12px);
    --border-light: rgba(255, 255, 255, 0.1);
    --primary-color-rgb: 99,102,241;
    --text-danger: #ef4444;
}

[data-bs-theme="light"] {
    --bg-color: #f1f5f9;
    --text-color: #0f172a;
    --card-bg: #ffffff;
    --glass-bg: rgba(241, 245, 249, 0.8);
    --gradient: linear-gradient(135deg, #4f46e5, #6366f1);
    --border-light: rgba(0, 0, 0, 0.1);
    --text-danger: #dc3545;
}

/* ========== GLOBAL STYLES ========== */
@import url('https://fonts.googleapis.com/css2?family=Chivo+Mono:ital,wght@0,100..900;1,100..900&display=swap');

body {
   /* font-family: 'Poppins', sans-serif; */
    font-family: 'Chivo Mono', monospace;
    background: var(--bg-img);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Optional neon glow overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.15) 0%, rgba(0, 128, 255, 0.08) 40%, transparent 80%),
  #0d1117;
    pointer-events: none;
    z-index: -1;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
  background: var(--glass-bg); /* fallback for --glass-bg */
  backdrop-filter: blur(12px); /* fallback for --blur */
  border: 1px solid hsla(0, 0%, 100%, 0.2); /* border-light replacement */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 1200px;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1050;
  transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #1E90FF, #00BFFF); /* Deep sky blue to light blue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.nav-link {
    position: relative;
    color: var(--text-color) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    color: var(--text-color) !important;
    border-color: var(--border-light);
}

/* ========== DASHBOARD SPECIFIC ========== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.summary-card {
    position: sticky;
    top: 1rem;
}

.gradient-border {
    position: relative;
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
}

.gradient-border::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    z-index: -1;
    animation: gradientAnim 3s infinite;
}

.table-custom {
    --bs-table-bg: var(--card-bg);
    --bs-table-color: var(--text-color);
    --bs-table-border-color: var(--border-light);
}

.table-custom > :not(caption) > * > * {
    color: var(--text-color);
    border-bottom-width: 0px !important;
    padding: 1.0rem .5rem !important;
}

/* ========== HOMEPAGE SPECIFIC ========== */
.hero {
    padding: 9rem 0 4rem;
}

.hero-image img {
    border-radius: 1.5rem;
    transform: rotateY(-12deg) rotateX(8deg);
    transition: transform 0.5s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-image:hover img {
    transform: rotateY(0) rotateX(0);
}

.feature-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ========== AUTH MODAL ========== */
.auth-modal .modal-content {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-light);
}

.auth-modal .nav-tabs {
    border-bottom: 2px solid var(--border-light);
}

.auth-modal .nav-link {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

.auth-modal .nav-link.active {
    color: var(--primary-color) !important;
    background: var(--bg-color) !important;
}

/* ========== FORM ELEMENTS ========== */
.floating-label {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label input,
.floating-label select {
    background: var(--bg-color);
    border: 1px solid var(--border-light);
    color: var(--text-color) !important;
    height: 56px;
    padding-top: 1.5rem;
    border-radius: 0.75rem;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.3s;
    color: rgba(var(--primary-color-rgb), 0.6);
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label,
.floating-label select:focus ~ label,
.floating-label select:not([value=""]) ~ label {
    top: 0.75rem;
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* ========== BUTTONS & INTERACTIONS ========== */
.btn-gradient {
    background: var(--gradient);
    color: white !important;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--primary-color);
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
}

/* ========== ANIMATIONS ========== */
@keyframes gradientAnim {
    0%, 100% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

/* ========== RESPONSIVE FIXES ========== */
@media (max-width: 992px) {
    .py-4 {
        padding: 1.5rem !important;
    }
    
    .summary-card {
        position: static;
        margin: 1rem;
        box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.3);
    }
    
    .navbar-collapse {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: var(--blur);
        height: calc(100vh - 56px) !important;
        padding: 1rem;
        z-index: 1050;
        border-radius: 20px;
    }
    
    .dropdown-menu {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* ========== USER DROPDOWN ========== */
.user-dropdown .dropdown-menu {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-light);
    margin-top: 0.5rem;
    border-radius: 0.75rem;
}

.user-dropdown .dropdown-item {
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    transition: 0.2s;
    border-radius: 0.5rem;
    margin: 0.25rem;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
}

/* ========== 3D CARD EFFECTS ========== */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    perspective: 1000px;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(2deg) translateY(-5px);
}

/* ========== TABLE HOVER EFFECTS ========== */
.table-hover tbody tr:hover {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

/* ========== FORM FOCUS STATES ========== */
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.25);
    border-color: var(--primary-color);
    background: var(--bg-color) !important;
}

/* ========== UTILITY CLASSES ========== */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* About page */
        .team-card {
            background: var(--card-bg);
            border-radius: 1.5rem;
            padding: 2rem;
            transition: transform 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .team-card img {
            width: 100%;
            border-radius: 1rem;
            margin-bottom: 1.5rem;
        }

        .timeline {
            position: relative;
            padding-left: 3rem;
            margin: 4rem 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 0;
            height: 100%;
            width: 2px;
            background: var(--primary-color);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 4rem;
            padding-left: 2rem;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -13px;
            top: 5px;
            width: 20px;
            height: 20px;
            background: var(--accent-color);
            border-radius: 50%;
            z-index: 1;
        }
        
        /* Contact Page */
        .value-card {
            padding: 2rem;
            border-radius: 1rem;
            background: var(--glass-bg);
            backdrop-filter: var(--blur);
            transition: all 0.3s ease;
        }
        .contact-card {
            background: var(--glass-bg);
            backdrop-filter: var(--blur);
            border-radius: 1.5rem;
            padding: 2rem;
            transition: transform 0.3s ease;
        }

        .contact-info-item {
            padding: 1.5rem;
            border-radius: 1rem;
            background: var(--card-bg);
            margin-bottom: 1.5rem;
        }

        .social-links {
            display: flex;
            gap: 1rem;
            justify-content: center;
        }

        .social-links a {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            transform: translateY(-3px);
        }

        .map-container {
            border-radius: 1.5rem;
            overflow: hidden;
            border: 2px solid transparent;
            background: var(--gradient);
            padding: 3px;
        }

        .map-container iframe {
            width: 100%;
            height: 300px;
            border-radius: 1.25rem;
        }

        .form-message {
            height: 150px;
            resize: none;
        }
        
        /* FAQ Page */
        .faq-card {
            background: var(--glass-bg);
            backdrop-filter: var(--blur);
            border-radius: 1rem;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }

        .faq-header {
            padding: 1.5rem;
            cursor: pointer;
            position: relative;
        }

        .faq-header::after {
            content: '\f078';
            font-family: 'Font Awesome 5 Free';
            position: absolute;
            right: 1.5rem;
            top: 50%;
            transform: translateY(-50%);
            transition: all 0.3s ease;
        }

        .faq-header[aria-expanded="true"]::after {
            transform: translateY(-50%) rotate(180deg);
        }

        .faq-body {
            padding: 0 1.5rem 1.5rem;
        }

        .search-box {
            max-width: 600px;
            margin: 2rem auto;
        }

        .faq-category {
            border-left: 4px solid var(--primary-color);
            padding-left: 1rem;
            margin: 3rem 0 2rem;
        }
        
        /* Privacy */
        .policy-section {
            background: var(--glass-bg);
            backdrop-filter: var(--blur);
            border-radius: 1.5rem;
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .policy-section h3 {
            border-bottom: 2px solid var(--primary-color);
            padding-bottom: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .policy-list {
            list-style-type: none;
            padding-left: 1.5rem;
        }

        .policy-list li::before {
            content: "•";
            color: var(--primary-color);
            display: inline-block;
            width: 1em;
            margin-left: -1em;
        }

        .update-date {
            background: var(--card-bg);
            padding: 1rem;
            border-radius: 0.75rem;
            margin: 2rem 0;
        }
        
        /* Toc Page */
        .tos-section {
            background: var(--glass-bg);
            backdrop-filter: var(--blur);
            border-radius: 1.5rem;
            padding: 2rem;
            margin-bottom: 2rem;
            counter-increment: section;
        }

        .tos-section h3::before {
            content: "§" ". ";
            color: var(--primary-color);
        }

        .clause-list {
            list-style-type: none;
            padding-left: 2rem;
        }

        .clause-list li {
            position: relative;
            margin-bottom: 1rem;
        }

        .clause-list li::before {
            content: "§";
            color: var(--accent-color);
            position: absolute;
            left: -1.5rem;
            font-weight: 700;
        }

        .highlight-box {
            background: var(--card-bg);
            border-left: 4px solid var(--primary-color);
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 0.5rem;
        }
        
        .form-label {
            color: var(--text-color);
        }
        
        .card {
           background-color: var(--card-bg);
        }
        
        .btn {
          color: var(--text-color) important;
         }
         
         .btn:hover {
          color: var(--text-color) important;
         }
         
         .navbar-nav .dropdown-menu {
    position: absolute !important; 
    top: 100%; 
    left: auto;
    right: 0; 
    z-index: 1050; 
}
         input:focus, 
textarea:focus,
select:focus {
    background-color: var(--bg-color) !important; 
    color: var(--text-color) !important;
    transition: all 0.3s ease;
}

/* Notifyer */
.notification-popup-uniq {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 95%;
  max-width: 600px;
  display: none;
  animation: slideUp 0.5s ease;
  padding: 0 10px;
}

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

.notif-glass {
  background: rgba(25, 25, 35, 0.75);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.25);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  color: #fff;
  gap: 15px;
}

.notif-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.notif-icon i {
  font-size: 28px;
  color: #00ffd0;
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 5px #00ffd0, 0 0 10px #00ffd0;
  }
  50% {
    text-shadow: 0 0 15px #00ffd0, 0 0 25px #00ffd0;
  }
}

.notif-text {
  max-width: 100%;
}

.notif-title {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
}

.notif-msg {
  margin: 3px 0 0;
  font-size: 13px;
  color: #d5d5d5;
}

.notif-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-btn {
  background-color: #00ffd0;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.notif-btn:hover {
  background-color: #00cfa5;
}

.notif-close {
  font-size: 22px;
  background: none;
  color: #aaa;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.notif-close:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 576px) {
  .notif-glass {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }

  .notif-left {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .notif-btn {
    width: 100%;
    text-align: center;
  }

  .notif-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ========== SELECT2 CUSTOMIZATION ========== */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-color);
    padding-left: 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-color) transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--text-color) transparent;
}

.select2-dropdown {
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    color: var(--text-color);
}

.select2-container--default .select2-results__option--selected {
    background-color: rgba(var(--primary-color-rgb), 0.2);
    color: var(--text-color);
}

.select2-container--default .select2-search--inline .select2-search__field {
    color: var(--text-color);
    background: transparent;
    border: none;
    box-shadow: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary-color);
    border: 1px solid var(--secondary-color);
    color: white;
    border-radius: 0.5rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white;
    margin-right: 4px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--text-danger);
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

.select2-container--focus .select2-selection--multiple,
.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.25);
}

.select2-search--dropdown .select2-search__field {
    background-color: var(--bg-color);
    border: 1px solid var(--border-light);
    color: var(--text-color);
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.25);
}

/* Dark mode adjustments */
[data-bs-theme="light"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: var(--bg-color);
}

[data-bs-theme="light"] .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-color) transparent transparent transparent;
}

/* Fix for loading spinner */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(var(--primary-color-rgb), 0.6);
}

.select2-container--open .select2-dropdown--below {
    background: var(--glass-bg) !important;
    z-index: 1000 !important
}

.select2-container {
    z-index: 999 !important
}