:root {
    --primary: #0B2E8A;
    --primary-dark: #071F5E;
    --primary-light: #4F7DFF;
    --background: #FFFFFF;
    --light-gray: #F2F4F8;
    --dark-text: #1C1C1C;
    --success: #3DDC97;
    --error: #FF4D4F;
    
    --primary-gradient: linear-gradient(135deg, #0B2E8A 0%, #071F5E 100%);
    --light-gradient: linear-gradient(135deg, #4F7DFF 0%, #0B2E8A 100%);
    --dark-gradient: linear-gradient(135deg, #071F5E 0%, #0B2E8A 100%);
    --subtle-gradient: linear-gradient(135deg, #F2F4F8 0%, #FFFFFF 100%);
}

* {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: var(--dark-text);
    font-weight: 700;
    letter-spacing: -0.5px;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background-color: var(--background);
    min-height: 100vh;
    color: var(--dark-text);
}

.navbar-luxury {
    background: var(--primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(79, 125, 255, 0.2);
    box-shadow: 0 2px 20px rgba(11, 46, 138, 0.15);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.btn-rose {
    background: var(--primary);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-rose:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 46, 138, 0.25);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #FFFFFF !important;
    font-weight: 800;
    font-family: 'Cairo', 'Poppins', sans-serif;
}

.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(79, 125, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: white;
}

.feature-card {
    background: var(--background);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(11, 46, 138, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(11, 46, 138, 0.08);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(11, 46, 138, 0.15);
    background: var(--background);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(11, 46, 138, 0.25);
}

.feature-icon.purple {
    background: linear-gradient(135deg, #0B2E8A 0%, #4F7DFF 100%);
}

.feature-icon.pink {
    background: linear-gradient(135deg, #4F7DFF 0%, #0B2E8A 100%);
}

.feature-icon.gold {
    background: linear-gradient(135deg, #3DDC97 0%, #0B2E8A 100%);
}

.module-card {
    background: var(--background);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 50px rgba(11, 46, 138, 0.08);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(11, 46, 138, 0.08);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.module-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(79, 125, 255, 0.05), transparent 50%);
    pointer-events: none;
}

.module-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 80px rgba(11, 46, 138, 0.18);
    background: var(--background);
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    color: white;
    background: linear-gradient(135deg, #0B2E8A 0%, #4F7DFF 100%);
    box-shadow: 0 15px 40px rgba(11, 46, 138, 0.3);
}

.btn-gradient {
    background: linear-gradient(135deg, #0B2E8A 0%, #4F7DFF 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(11, 46, 138, 0.2);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #4F7DFF 0%, #0B2E8A 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(11, 46, 138, 0.3);
    color: white;
}

.btn-gradient-secondary {
    background: linear-gradient(135deg, #F2F4F8 0%, #FFFFFF 100%);
    color: var(--dark-text);
    border: 1px solid rgba(11, 46, 138, 0.15);
}

.btn-gradient-secondary:hover {
    box-shadow: 0 12px 35px rgba(11, 46, 138, 0.15);
    color: var(--dark-text);
}

.btn-gradient-gold {
    background: linear-gradient(135deg, #3DDC97 0%, #2BC686 100%) !important;
}

.btn-gradient-gold:hover {
    box-shadow: 0 12px 35px rgba(61, 220, 151, 0.3);
    color: white;
}

.form-section {
    background: var(--background);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(11, 46, 138, 0.08);
    border: 1px solid rgba(11, 46, 138, 0.08);
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 20px;
    border: 2px solid var(--light-gray);
    background: var(--background);
    transition: all 0.3s ease;
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: var(--dark-text);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(11, 46, 138, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 10px;
    font-family: 'Cairo', sans-serif;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-item {
    flex: 0 0 auto;
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item label {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--dark-text);
}

.checkbox-item input[type="checkbox"]:checked + label {
    background: linear-gradient(135deg, #0B2E8A 0%, #4F7DFF 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(11, 46, 138, 0.25);
}

.result-card {
    background: var(--background);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(11, 46, 138, 0.08);
    border: 1px solid rgba(11, 46, 138, 0.08);
}

.result-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 30px;
}

.personality-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0B2E8A 0%, #4F7DFF 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(11, 46, 138, 0.25);
}

.notes-section {
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--background) 100%);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(11, 46, 138, 0.08);
}

.notes-title {
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', 'Poppins', sans-serif;
}

.notes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.note-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.note-badge.top {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #0B2E8A;
}

.note-badge.heart {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #2E7D32;
}

.note-badge.base {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #E65100;
}

.match-score {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B2E8A 0%, #4F7DFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    box-shadow: 0 15px 40px rgba(11, 46, 138, 0.3);
}

.match-score::after {
    content: '%';
    font-size: 1.2rem;
    position: absolute;
    bottom: 35px;
    right: 35px;
}

.product-card {
    background: var(--background);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(11, 46, 138, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(11, 46, 138, 0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(11, 46, 138, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 20px;
}

.product-card .brand {
    color: var(--primary-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-card .price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.dashboard-card {
    background: var(--background);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(11, 46, 138, 0.06);
    height: 100%;
    border: 1px solid rgba(11, 46, 138, 0.08);
}

.scent-dna-card {
    background: linear-gradient(135deg, var(--background) 0%, var(--light-gray) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(11, 46, 138, 0.08);
    height: 100%;
    border: 1.5px solid rgba(11, 46, 138, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scent-dna-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(11, 46, 138, 0.08);
}

.scent-dna-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0B2E8A 0%, #4F7DFF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 20px rgba(11, 46, 138, 0.25);
    flex-shrink: 0;
}

.scent-dna-header h5 {
    color: var(--dark-text);
    font-size: 1.1rem;
}

.scent-dna-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scent-personality {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(11, 46, 138, 0.05) 0%, rgba(79, 125, 255, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(11, 46, 138, 0.1);
}

.personality-badge-lg {
    display: inline-block;
    background: linear-gradient(135deg, #0B2E8A 0%, #4F7DFF 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(11, 46, 138, 0.2);
}

.profile-meta {
    background: var(--light-gray);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.scent-dna-empty {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background: var(--light-gray);
    border-radius: 12px;
}

.btn-outline-gradient {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gradient:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 46, 138, 0.2);
}

.stat-card {
    color: white;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Cairo', 'Poppins', sans-serif;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-card-blush {
    background: linear-gradient(135deg, #4F7DFF 0%, #0B2E8A 100%);
}

.stat-card-plum {
    background: linear-gradient(135deg, #0B2E8A 0%, #071F5E 100%);
}

.stat-card-amber {
    background: linear-gradient(135deg, #3DDC97 0%, #2BC686 100%);
}

.stat-card-pearl {
    background: linear-gradient(135deg, #F2F4F8 0%, #E8ECF4 100%);
    color: var(--dark-text);
}

.stat-card-pearl .stat-number,
.stat-card-pearl .stat-label {
    color: var(--dark-text);
}

.stat-card-pearl {
    box-shadow: 0 15px 40px rgba(11, 46, 138, 0.12);
}

.admin-sidebar {
    background: var(--dark-gradient);
    min-height: calc(100vh - 56px);
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 25px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(79, 125, 255, 0.2);
    color: white;
    border-left: 3px solid var(--primary-light);
}

.admin-sidebar .nav-link i {
    margin-left: 10px;
}

.page-header {
    background: linear-gradient(135deg, #0B2E8A 0%, #071F5E 50%, #0B2E8A 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(79, 125, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-family: 'Cairo', 'Poppins', sans-serif;
    color: white;
}

.table-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(11, 46, 138, 0.08);
    border: 1px solid var(--light-gray);
}

.table-modern th {
    background: linear-gradient(180deg, var(--light-gray) 0%, #E8ECF4 100%);
    font-weight: 700;
    border: none;
    padding: 15px 20px;
    color: var(--dark-text);
}

.table-modern td {
    padding: 15px 20px;
    border-color: var(--light-gray);
    vertical-align: middle;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading-spinner.show {
    display: block;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border-color: var(--primary);
    border-right-color: transparent;
}

.footer-luxury {
    background: linear-gradient(135deg, #071F5E 0%, #0B2E8A 50%, #071F5E 100%);
    color: #FFFFFF;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(79, 125, 255, 0.2);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.footer-luxury h5 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.footer-luxury h6 {
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-light);
    transform: translateX(-3px);
}

.footer-divider {
    border-color: rgba(79, 125, 255, 0.2) !important;
    margin: 20px 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 125, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
}

.text-rose {
    color: var(--primary-light) !important;
}

.section-divider {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(11, 46, 138, 0.1);
}

.section-divider:last-of-type {
    border-bottom: none;
}

.alert-success {
    background: linear-gradient(135deg, rgba(61, 220, 151, 0.1) 0%, rgba(43, 198, 134, 0.1) 100%);
    border: 1px solid var(--success);
    color: #1B7F4F;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.1) 0%, rgba(255, 77, 79, 0.05) 100%);
    border: 1px solid var(--error);
    color: #C41E3A;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #3DDC97 0%, #2BC686 100%) !important;
    color: white !important;
}

.card {
    border-radius: 16px;
    border: 1px solid rgba(11, 46, 138, 0.08);
}

.rounded-4 {
    border-radius: 16px !important;
}

.rounded-pill {
    border-radius: 12px !important;
}

/* Language Dropdown */
.language-dropdown {
    background: var(--primary);
    border: 1px solid rgba(79, 125, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(11, 46, 138, 0.25);
}

.language-dropdown .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-dropdown .dropdown-item:hover {
    background: rgba(79, 125, 255, 0.3);
    color: #FFFFFF;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .module-card {
        padding: 30px 20px;
    }
    
    .form-section {
        padding: 25px;
    }
    
    .result-card {
        padding: 25px;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
}
