/**
 * Sales Tracking System Stylesheet
 * Purple gradient theme with consistent layout
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 25%, #4a2c6b 50%, #6b3d8f 75%, #8b4dad 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.main-header {
    background: rgba(26, 11, 46, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(236, 72, 153, 0.2);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Remove underlines from all header links */
.main-header a,
.main-header a:hover,
.main-header a:focus,
.main-header a:active,
.main-header a:visited {
    text-decoration: none !important;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: white !important;
    text-decoration: none !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active,
.nav-link:visited {
    text-decoration: none !important;
    background-color: rgba(255, 255, 255, 0.2);
}

.user-info-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    color: white;
    font-size: 0.9rem;
    text-align: right;
}

.user-info small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.btn-logout {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none !important;
    color: white !important;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Main content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Cards and containers */
.card {
    background: rgba(42, 20, 75, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 2.5rem;
    margin: 1.5rem 0;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 15px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.card:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 25px 35px rgba(236, 72, 153, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(236, 72, 153, 0.4);
}

.login-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none !important;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Remove underline from links styled as buttons */
a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active {
    text-decoration: none !important;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white !important;
    border: none;
    text-decoration: none !important;
    box-shadow: 
        0 10px 30px rgba(236, 72, 153, 0.5),
        0 5px 15px rgba(139, 92, 246, 0.3);
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #a855f7 0%, #f472b6 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(236, 72, 153, 0.6),
        0 8px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.01);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    text-decoration: none !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    text-decoration: none !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    text-decoration: none !important;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    text-decoration: none !important;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.5);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover,
.btn.disabled:hover {
    transform: none;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(255, 255, 255, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: rgba(236, 72, 153, 0.7);
    box-shadow: 
        0 0 0 4px rgba(236, 72, 153, 0.25),
        inset 0 2px 4px rgba(0, 0, 0, 0.15),
        0 8px 30px rgba(236, 72, 153, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    color: white;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(26, 11, 46, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.table th {
    background: rgba(139, 92, 246, 0.2);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 1rem 0.75rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01);
}

.table tbody td {
    color: rgba(255, 255, 255, 0.9);
}

.table small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-left-color: #10b981;
}

.message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left-color: #ef4444;
}

.message-info {
    background: #cffafe;
    color: #164e63;
    border: 1px solid #a5f3fc;
    border-left-color: #06b6d4;
}

.message-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    border-left-color: #f59e0b;
}

/* Message animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dismissible messages */
.message-dismissible {
    padding-right: 3rem;
}

.message-close {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.message-close:hover {
    opacity: 1;
}

/* Loading indicators */
.loading {
    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;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form submission feedback */
.form-submitting {
    pointer-events: none;
    opacity: 0.7;
}

.form-submitting .btn {
    position: relative;
}

.form-submitting .btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 1rem;
    border-left: 4px solid;
    animation: slideInRight 0.3s ease-out;
}

.toast-success {
    border-left-color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-info {
    border-left-color: #17a2b8;
}

.toast-warning {
    border-left-color: #ffc107;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Progress indicators */
.progress {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Form validation feedback */
.form-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-feedback.valid {
    color: #28a745;
}

.form-feedback.invalid {
    color: #dc3545;
}

.form-control.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-section {
    text-align: center;
}

.main-footer p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.main-footer small {
    font-size: 0.8rem;
    opacity: 0.8;
}

#session-timer {
    font-weight: bold;
    color: #ffd700;
}

/* Responsive design */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .table {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .login-options {
        flex-direction: column;
        align-items: center;
    }
    
    .user-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .user-info-section {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .card {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-1 .btn {
        width: auto;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .card {
        padding: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
    
    .form-control {
        padding: 0.6rem;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-white {
    color: white !important;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-1 {
    gap: 1rem;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.4));
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.6);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.badge-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(8, 145, 178, 0.4));
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.6);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.2);
}

.badge-primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    color: #e9d5ff;
    border: 1px solid rgba(139, 92, 246, 0.6);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.4));
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.6);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.4));
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.6);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
}

/* Login page specific styles */
.login-options .btn {
    min-width: 200px;
    padding: 1.5rem;
    text-align: center;
    line-height: 1.4;
}

.login-options .btn small {
    display: block;
    font-weight: normal;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.9;
}

/* Form validation styles */
.form-control:invalid,
.form-control.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

.form-control:valid,
.form-control.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

/* Enhanced form styles for customer record form */
.form-control[required] {
    position: relative;
}

/* Select dropdown styling - enhanced for dark theme */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: rgba(26, 11, 46, 0.8) !important;
    color: #ffffff !important;
    cursor: pointer;
}

/* Select focus state */
select.form-control:focus {
    background-color: rgba(26, 11, 46, 1) !important;
    color: #ffffff !important;
    border-color: rgba(236, 72, 153, 0.7);
}

/* Firefox dropdown arrow fix */
select.form-control::-moz-focus-inner {
    border: 0;
}

/* Better styling for option elements across browsers */
select.form-control option {
    background-color: #2d1b4e !important;
    color: #ffffff !important;
    padding: 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

select.form-control option:checked {
    background: linear-gradient(#8b5cf6, #8b5cf6) #8b5cf6 !important;
    background-color: #8b5cf6 !important;
    color: #ffffff !important;
}

select.form-control option:disabled {
    background-color: #1a0b2e !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Webkit browsers (Chrome, Safari, Edge) scrollbar styling */
select.form-control::-webkit-scrollbar {
    width: 8px;
}

select.form-control::-webkit-scrollbar-track {
    background: #2d1b4e;
}

select.form-control::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

select.form-control::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Textarea styling */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Form group spacing */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Loading state for forms */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enhanced message styles */
.message {
    border-left: 4px solid;
}

.message-success {
    border-left-color: #28a745;
}

.message-error {
    border-left-color: #dc3545;
}

.message-info {
    border-left-color: #17a2b8;
}

/* Enhanced glassmorphism theme matching the login design */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.card p, .card div, .card span, .card label, .card strong, .card small {
    color: rgba(255, 255, 255, 0.9);
}

.card strong {
    font-weight: 600;
    color: white;
}

.card a {
    color: #f0abfc;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.card a:hover {
    color: #fbbf24;
}

/* Login page specific enhancements */
.login-card {
    max-width: 400px;
    margin: 3rem auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Admin portal badge styling */
.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

/* Enhanced button hover effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

/* Secondary buttons for dark theme */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Accent button for special CTAs */
.btn-accent {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white !important;
    border: none;
    text-decoration: none !important;
    box-shadow: 
        0 8px 25px rgba(236, 72, 153, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(236, 72, 153, 0.5),
        0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Navigation enhancements */
.nav-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Form enhancements for better visibility */
.form-group label {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Message styling for dark theme */
.message-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left-color: #10b981;
    backdrop-filter: blur(10px);
}

.message-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left-color: #ef4444;
    backdrop-filter: blur(10px);
}

.message-info {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-left-color: #06b6d4;
    backdrop-filter: blur(10px);
}

.message-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left-color: #f59e0b;
    backdrop-filter: blur(10px);
}

/* Dashboard cards enhancement */
.dashboard-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Progress bar enhancement */
.progress-bar {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.4);
}

/* Loading spinner for dark theme */
.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ec4899;
}

/* Select dropdown styles unified above */


/* Enhanced form validation for dark theme */
.form-control.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);
}

/* Text color adjustments */
.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Link styling for dark theme */
a {
    color: #f0abfc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* User info styling */
.user-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Login page animations and enhancements */
.login-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced login options */
.login-options .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-options .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-options .btn:hover::before {
    left: 100%;
}

.login-options .btn:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Form input enhancements */
.form-control {
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

/* Button pulse effect */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(99, 102, 241, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }
}

.btn-primary:focus {
    animation: pulse 2s infinite;
}

/* Mobile responsiveness for login */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem auto;
        padding: 1.5rem;
    }
    
    .admin-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .login-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .login-options .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Enhanced glassmorphism for better visual hierarchy */
.card h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card h2 {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}/* Modern
 enhancements and animations */

/* Smooth page transitions */
* {
    scroll-behavior: smooth;
}

/* Enhanced typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

h2 {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Modern loading states */
.loading-modern {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #8b5cf6;
    animation: spin-modern 1s ease-in-out infinite;
}

@keyframes spin-modern {
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced table styling */
.table {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 1.25rem 1rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.01);
}

/* Modern message styling */
.message {
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
}

/* Enhanced navigation */
.nav-link {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

/* Modern footer */
.main-footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

/* Floating action effects */
.floating-element {
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #a855f7 0%, #f472b6 100%);
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .card {
        padding: 1.5rem;
        border-radius: 20px;
        margin: 1rem 0;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
    }
}

/* Micro-interactions */
.btn, .form-control, .nav-link, .card {
    will-change: transform;
}

/* Focus visible for accessibility */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid rgba(236, 72, 153, 0.8);
    outline-offset: 2px;
}

/* Modern selection styling */
::selection {
    background: rgba(236, 72, 153, 0.4);
    color: white;
}

::-moz-selection {
    background: rgba(236, 72, 153, 0.4);
    color: white;
}

/* Enhanced login options */
.login-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.login-options .btn {
    padding: 2rem;
    text-align: center;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Subtle background animation */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 30s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05) translateZ(0);
    }
}

/* Modern form groups */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Enhanced dashboard cards */
.dashboard-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #8b5cf6);
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}


/* ============================================
   MOBILE RESPONSIVE INTEGRATION STYLES
   ============================================ */

/* Ensure smooth transitions on mobile */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(236, 72, 153, 0.3);
    }
    
    /* Optimize font rendering on mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Prevent text inflation on mobile */
    body {
        text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Better touch scrolling */
    .main-content,
    .card,
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Optimize animations for mobile */
    .card,
    .btn,
    .nav-link {
        will-change: auto;
    }
    
    /* Disable background animation on mobile to prevent shaking */
    body::after {
        animation: none !important;
        transform: scale(1) translateZ(0);
        opacity: 1;
    }
    
    /* Reduce floating animation on mobile */
    .floating-element {
        animation: floatMobile 10s ease-in-out infinite;
    }
    
    /* Mobile-friendly focus states */
    input:focus,
    textarea:focus,
    select:focus,
    button:focus {
        outline: 2px solid rgba(236, 72, 153, 0.6);
        outline-offset: 2px;
    }
}

/* Gentler float animation for mobile */
@keyframes floatMobile {
    0%, 100% {
        transform: translateY(0px) translateZ(0);
    }
    50% {
        transform: translateY(-3px) translateZ(0);
    }
}

/* Mobile landscape optimizations */
@media (max-width: 992px) and (orientation: landscape) {
    .main-header {
        padding: 0.5rem 0;
    }
    
    .card {
        margin: 0.75rem 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    body {
        font-size: 14px;
    }
    
    .card {
        padding: 0.875rem;
        border-radius: 12px;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
}

/* Very small mobile devices */
@media (max-width: 320px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .card h1 {
        font-size: 1.3rem;
    }
    
    .card h2 {
        font-size: 1.15rem;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }
}

/* Tablet-specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .table {
        font-size: 0.95rem;
    }
}

/* High DPI displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
}

/* Dark mode support for mobile */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme, but ensure consistency */
    body {
        background: linear-gradient(135deg, #0a0515 0%, #1a0b2e 25%, #2d1b4e 50%, #4a2c6b 75%, #6b3d8f 100%);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn,
    .form-control,
    .card {
        border-width: 2px;
    }
    
    .btn-primary {
        background: #8b5cf6;
        border: 2px solid white;
    }
}
