/* Font Face Declarations */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh-ExtraBlack.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'YekanBakh', 'Vazir', 'Tahoma', sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    min-height: 100vh;
    direction: rtl;
}

/* Auth Section Styles */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    margin: 2rem;
}

.auth-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Form Styles */
.auth-form {
    margin-top: 2rem;
}

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

.form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Modern Input Group Styles */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.input-group:hover {
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
    transform: translateY(-1px);
}

.input-group:focus-within {
    border-color: #1e40af;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Input Control */
.input-group .form-control {
    border: none;
    border-radius: 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    height: auto;
    min-height: 60px;
    flex: 1;
    text-align: right;
    font-family: 'YekanBakh', 'Vazir', 'Tahoma', sans-serif;
    color: #2c3e50;
}

.input-group .form-control:focus {
    border: none;
    box-shadow: none;
    background-color: #fff;
    outline: none;
    color: #2c3e50;
}

.input-group .form-control:hover {
    background-color: #fff;
}

.input-group .form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
    text-align: right;
}

/* Input Group Text (Icons) */
.input-group-text {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border: none;
    color: #495057;
    padding: 1rem 1.25rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

.input-group-text::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #e9ecef;
}

.input-group-text i {
    font-size: 1.2rem;
    color: #495057;
    z-index: 2;
    position: relative;
}

/* Password Toggle Button */
.password-toggle {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border: none;
    color: #495057;
    padding: 1rem 1.25rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 60px;
    position: relative;
}

.password-toggle::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #e9ecef;
}

.password-toggle:hover {
    background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
    color: #343a40;
}

.password-toggle i {
    font-size: 1.2rem;
    color: #495057;
    z-index: 2;
    position: relative;
}

/* Curved Separation Effect */
.input-group::before {
    content: '';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, transparent 0%, #e9ecef 20%, #e9ecef 80%, transparent 100%);
    border-radius: 1px;
    z-index: 1;
}

/* Email Input Group */
.email-input-group {
    /* Border is now handled by main .input-group */
}

.email-input-group .form-control {
    border-radius: 0 20px 20px 0;
}

.email-input-group .input-group-text {
    border-radius: 20px 0 0 20px;
}

/* Password Input Group */
.password-input-group {
    /* Border is now handled by main .input-group */
}

.password-input-group .form-control {
    border-radius: 0 20px 20px 0;
}

.password-input-group .password-toggle {
    border-radius: 20px 0 0 20px;
}

/* Name Input Group */
.name-input-group {
    /* Border is now handled by main .input-group */
}

.name-input-group .form-control {
    border-radius: 0 20px 20px 0;
}

.name-input-group .input-group-text {
    border-radius: 20px 0 0 20px;
}

/* Phone Input Group */
.phone-input-group {
    /* Border is now handled by main .input-group */
}

.phone-input-group .form-control {
    border-radius: 0 20px 20px 0;
}

.phone-input-group .input-group-text {
    border-radius: 20px 0 0 20px;
}

/* Store Input Group */
.store-input-group {
    /* Border is now handled by main .input-group */
}

.store-input-group .form-control {
    border-radius: 0 20px 20px 0;
}

.store-input-group .input-group-text {
    border-radius: 20px 0 0 20px;
}

.form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Checkbox Styles */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-right: 0;
    padding-left: 0;
}

.form-check-input {
    margin-left: 0.5rem;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.form-check-input:checked {
    background-color: #1e40af;
    border-color: #1e40af;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.75rem;
}

.form-check-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
    outline: none;
}

.form-check-input:hover {
    border-color: #1e40af;
    transform: scale(1.05);
}

.form-check-label {
    margin-bottom: 0;
    margin-right: 0;
    margin-left: 0;
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.5;
    flex: 1;
}

.form-check-label:hover {
    color: #1e40af;
}

/* Custom checkbox styling */
.form-check-input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-check-input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.5rem;
    height: 0.5rem;
    background-color: #fff;
    border-radius: 2px;
}

/* Focus states for better accessibility */
.form-check-input:focus-visible {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Disabled state */
.form-check-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
    border-color: #e9ecef;
}

.form-check-input:disabled + .form-check-label {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Special checkbox styles for auth forms */
.auth-form .form-check {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(248, 249, 250, 0.5);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.auth-form .form-check:hover {
    background: rgba(248, 249, 250, 0.8);
    border-color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.auth-form .form-check-input {
    margin-left: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 8px;
}

.auth-form .form-check-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.auth-form .form-check-label a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.auth-form .form-check-label a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* Modern Form Validation Styles */
.input-group.is-valid {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.input-group.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.input-group.is-valid .input-group-text {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.2) 100%);
    color: #28a745;
}

.input-group.is-invalid .input-group-text {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%);
    color: #dc3545;
}

.input-group.is-valid .password-toggle {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.2) 100%);
    color: #28a745;
}

.input-group.is-invalid .password-toggle {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%);
    color: #dc3545;
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Fix placeholder and focus issues */
.form-control.is-valid::placeholder,
.form-control.is-invalid::placeholder {
    color: #adb5bd;
    opacity: 1;
}

.form-control.is-valid:focus::placeholder,
.form-control.is-invalid:focus::placeholder {
    color: #adb5bd;
    opacity: 0.7;
}

/* Ensure proper focus behavior */
.form-control.is-valid:focus,
.form-control.is-invalid:focus {
    outline: none;
    background-color: #fff;
}

/* Remove any unwanted highlighting */
.form-control.is-valid,
.form-control.is-invalid {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.form-control.is-valid:focus,
.form-control.is-invalid:focus {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Modern Validation Messages */
.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
    text-align: right;
    padding: 0.5rem 1rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 10px;
    border-right: 3px solid #28a745;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #dc3545;
    font-weight: 600;
    text-align: right;
    padding: 0.5rem 1rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    border-right: 3px solid #dc3545;
}

/* Input Group Validation */
.input-group .form-control.is-valid {
    border-right-color: #28a745;
    padding-right: 1rem;
}

.input-group .form-control.is-invalid {
    border-right-color: #dc3545;
    padding-right: 1rem;
}

/* Remove validation icons from input groups */
.input-group .form-control.is-valid,
.input-group .form-control.is-invalid {
    background-image: none;
    padding-right: 1rem;
}

.input-group-text.is-valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.input-group-text.is-invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.password-toggle.is-valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.password-toggle.is-invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Form Group Validation */
.form-group.has-success .form-label {
    color: #28a745;
}

.form-group.has-error .form-label {
    color: #dc3545;
}

/* Password Strength Indicator */
.password-strength .progress {
    border-radius: 10px;
    overflow: hidden;
}

.password-strength .progress-bar {
    transition: all 0.3s ease;
}

.password-strength .progress-bar.bg-danger {
    background-color: #dc3545 !important;
}

.password-strength .progress-bar.bg-warning {
    background-color: #ffc107 !important;
}

.password-strength .progress-bar.bg-info {
    background-color: #17a2b8 !important;
}

.password-strength .progress-bar.bg-success {
    background-color: #28a745 !important;
}

/* Loading States */
.form-control.is-loading {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%231e40af'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m6 1.5v3'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Animation */
.form-control.is-success {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Error Animation */
.form-control.is-error {
    animation: errorShake 0.6s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Additional fixes for validation states */
.form-control.is-valid,
.form-control.is-invalid {
    transition: all 0.3s ease;
}

.form-control.is-valid:focus,
.form-control.is-invalid:focus {
    transform: none;
}

/* Ensure proper spacing for validation messages */
.form-group {
    position: relative;
}

.valid-feedback,
.invalid-feedback {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.25rem 0.5rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.input-group .form-control:focus {
    border-left: none;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
}

.btn-outline-primary {
    border: 2px solid #1e40af;
    color: #1e40af;
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
}

/* Welcome Content */
.welcome-content {
    padding: 3rem;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.welcome-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.features-list {
    text-align: right;
}

.feature-item {
    font-size: 1rem;
    opacity: 0.9;
}

/* Dashboard Styles */
.dashboard-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Desktop Sidebar - Always Visible */
@media (min-width: 992px) {
    .sidebar {
        transform: translateX(0) !important;
        position: fixed !important;
        display: block !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-overlay {
        display: none !important;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.mobile-menu-toggle .btn {
    background: rgba(15, 23, 42, 0.9);
    border: none;
    color: #fff;
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    width: 280px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    padding: 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    transform: translateX(0);
    transition: transform 0.3s ease;
    backdrop-filter: blur(20px);
}

.sidebar.show {
    transform: translateX(0);
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.brand-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.brand-text h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.brand-text small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.sidebar-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* User Info */
.sidebar-user {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.user-avatar {
    margin-left: 1rem;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-info h6 {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.user-info small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Navigation */
.sidebar-nav {
    padding: 1rem 0;
    list-style: none;
    margin: 0;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: #fff;
    transform: translateX(-5px);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-link.active::before {
    width: 100%;
}

.nav-link i {
    margin-left: 1rem;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.nav-link span {
    font-weight: 500;
}

.nav-indicator {
    width: 4px;
    height: 0;
    background: #3b82f6;
    border-radius: 2px;
    transition: height 0.3s ease;
    margin-right: auto;
}

.nav-link.active .nav-indicator {
    height: 20px;
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-link {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fff !important;
}

/* Main Content */
.main-content {
    margin-right: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-right 0.3s ease;
}

/* Top Navigation */
.top-navbar {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    color: #fff;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

/* Header Background Pattern */
.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    opacity: 0.6;
    z-index: 0;
}

.header-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.navbar-left {
    position: relative;
    z-index: 1;
    padding: 1.5rem 2rem;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.title-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.title-content h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title-content p {
    margin: 0.25rem 0 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.navbar-right {
    position: relative;
    z-index: 1;
    padding: 1.5rem 2rem;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 1rem;
    color: #60a5fa;
}

.stat-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

/* Notification Dropdown */
.notification-dropdown {
    position: relative;
}

.btn-notification {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.75rem;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.btn-notification:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification-menu {
    min-width: 350px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    background: rgba(255, 255, 255, 0.1);
}

.notification-content h6 {
    margin: 0;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.notification-content p {
    margin: 0.25rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.notification-content small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.btn-user {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-user:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-menu {
    min-width: 200px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    padding: 0.5rem;
}

.user-menu .dropdown-item {
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.user-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(-5px);
}

.user-menu .dropdown-item i {
    color: #60a5fa;
    margin-left: 0.5rem;
}

.user-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0;
}

/* Dashboard Content */
.dashboard-content {
    padding: 2rem;
    flex: 1;
    background: transparent;
    margin-right: 280px;
    transition: margin-right 0.3s ease;
}

/* Stats Section */
.stats-section {
    margin-bottom: 3rem;
}

.stats-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 2rem;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
}

.stats-primary::before {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.stats-success::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.stats-warning::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.stats-info::before {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.stats-card .stats-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.stats-primary .stats-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.stats-success .stats-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.stats-warning .stats-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.stats-info .stats-icon {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.3);
}

.stats-icon i {
    font-size: 1.75rem;
}

.stats-content h3 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stats-content p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
}

.stats-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stats-trend span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #34d399;
}

.stats-trend i {
    color: #34d399;
}

/* Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.4);
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    padding: 2rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card .card-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.dashboard-card .card-body {
    padding: 2rem;
    background: transparent;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.quick-action-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(-8px);
    color: #fff;
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.action-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.action-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.action-content h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.action-content p {
    margin: 0.5rem 0 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Tables */
.table {
    color: #fff;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.table tbody td {
    border: none;
    padding: 1.5rem 1rem;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05); /* Added dark background */
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.1);
}

.table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.1); /* Added hover background for td */
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
}

.badge.bg-success {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge.bg-warning {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge.bg-info {
    background: rgba(6, 182, 212, 0.2) !important;
    color: #22d3ee !important;
    border-color: rgba(6, 182, 212, 0.3);
}

/* Buttons */
.btn-outline-primary {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Chart Controls */
.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.chart-controls .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.chart-controls .btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
}

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

.form-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(59, 130, 246, 0.5);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Product Table Styles */
.product-image img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.product-info h6 {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.product-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.action-buttons {
    display: flex;
    gap: 0.25rem;
}

.action-buttons .btn {
    padding: 0.375rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Pagination */
.pagination-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-section .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
}

.pagination .page-link {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 8px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    font-weight: 700;
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Customer Info Styles */
.customer-info h6 {
    margin: 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.customer-info small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Product Rank Card Styles */
.product-rank-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.product-rank-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.rank-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    margin-left: 1rem;
}

.product-rank-card .product-image {
    margin-left: 1rem;
}

.product-rank-card .product-image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.product-details h6 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-weight: 600;
}

.product-details .sales-count {
    margin: 0 0 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.product-details .progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Profile Styles */
.profile-overview {
    margin-bottom: 2rem;
}

.profile-avatar {
    text-align: center;
}

.avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.profile-info h3 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.info-item i {
    font-size: 1rem;
}

.info-item span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Settings Styles */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.setting-info h6 {
    margin: 0 0 0.25rem 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.setting-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item-small {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item-small:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-icon-small {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.stat-icon-small i {
    color: #60a5fa;
    font-size: 1rem;
}

.stat-content-small h6 {
    margin: 0 0 0.25rem 0;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.stat-content-small p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .main-content {
        margin-right: 0;
    }
    
    .dashboard-content {
        margin-right: 0;
        padding: 1rem;
    }
    
    .sidebar {
        transform: translateX(100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .top-navbar {
        min-height: 70px;
    }
    
    .navbar-left {
        padding: 1rem;
    }
    
    .navbar-right {
        padding: 1rem;
    }
    
    .title-icon {
        width: 50px;
        height: 50px;
    }
    
    .title-icon i {
        font-size: 1.25rem;
    }
    
    .title-content h2 {
        font-size: 1.5rem;
    }
    
    .quick-stats {
        display: none;
    }
    
    .navbar-actions {
        gap: 1rem;
    }
    
    .stats-section {
        margin-bottom: 2rem;
    }
    
    .stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stats-content h3 {
        font-size: 2rem;
    }
    
    .dashboard-card .card-header {
        padding: 1.5rem;
    }
    
    .dashboard-card .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .dashboard-content {
        padding: 0.75rem;
    }
    
    .stats-card {
        padding: 1.25rem;
    }
    
    .stats-content h3 {
        font-size: 1.75rem;
    }
    
    .stats-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 1rem !important;
    }
    
    .stats-icon i {
        font-size: 1.5rem !important;
    }
    
    .quick-action-btn {
        padding: 1rem;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
        margin-left: 1rem;
    }
    
    .action-content h6 {
        font-size: 1rem;
    }
    
    .action-content p {
        font-size: 0.85rem;
    }
    
    .table thead th {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .table tbody td {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .dashboard-card .card-header {
        padding: 1.25rem;
    }
    
    .dashboard-card .card-body {
        padding: 1.25rem;
    }
}

.page-title {
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 1rem 1.5rem;
    border: none;
}

.card-body {
    padding: 1.5rem;
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(30, 64, 175, 0.3);
}

.stats-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stats-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* Tables */
/* Removed old table styles - using new dark theme styles above */

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge-success {
    background-color: #28a745;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-info {
    background-color: #17a2b8;
}

/* Forms */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

.form-label {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border: none;
    color: #212529;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-form-container {
        margin: 1rem;
        padding: 2rem;
    }
    
    .welcome-content {
        padding: 2rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

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

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #e9ecef;
}

.timeline-content {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h6 {
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 600;
}

/* Help Links */
.help-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.help-link:hover {
    color: #fff;
    text-decoration: none;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.progress {
    height: 5px;
    border-radius: 3px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Success Message */
.success-icon {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Product Management Styles */
.product-image {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-item {
    text-align: center;
}

.stats-item .stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.stats-item .stats-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: none;
    padding: 1rem 2rem 2rem;
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Table Styles */
/* Removed old table styles - using new dark theme styles above */

/* Button Group Styles */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Pagination Styles */
.pagination .page-link {
    color: #1e40af;
    border: 1px solid #dee2e6;
    margin: 0 2px;
    border-radius: 8px;
}

.pagination .page-item.active .page-link {
    background-color: #1e40af;
    border-color: #1e40af;
}

.pagination .page-link:hover {
    color: #1e3a8a;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Reports Styles */
.report-item {
    text-align: center;
    padding: 1rem;
}

.report-number {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.report-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Profile Styles */
.profile-avatar {
    position: relative;
    display: inline-block;
}

.profile-avatar img {
    border: 4px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.profile-stats {
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e40af;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Form Switch Styles */
.form-check-input:checked {
    background-color: #1e40af;
    border-color: #1e40af;
}

.form-check-input:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Form Validation */
.is-invalid {
    border-color: #dc3545;
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Lottie Animation Styles */
.login-animation,
.signup-animation,
.contact-animation,
.working-animation,
.delivery-animation,
.trail-loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animation Container Styles */
.animation-container {
    position: relative;
    overflow: hidden;
}

.animation-container lottie-player {
    transition: all 0.3s ease;
}

.animation-container:hover lottie-player {
    transform: scale(1.05);
}

/* Button Loading States */
.btn .loading-animation {
    margin-right: 8px;
}

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

/* Success Animation Overlay */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Font Weight Adjustments */
.auth-title {
    font-weight: 700;
}

.welcome-title {
    font-weight: 700;
}

.card-title {
    font-weight: 700;
}

.btn {
    font-weight: 600;
}

/* User Guide Styles */
.guide-overlay {
    backdrop-filter: blur(5px);
}

.guide-tooltip {
    font-family: 'YekanBakh', 'Vazir', 'Tahoma', sans-serif;
    direction: rtl;
}

.guide-tooltip .btn {
    font-family: 'YekanBakh', 'Vazir', 'Tahoma', sans-serif;
    font-weight: 600;
}

.guide-highlight {
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.3) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

@keyframes guideTooltipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}
