/* ============================================
   ADMIN PANEL STYLES - K.D ENTERPRISES
   Enhanced with Modern Effects & Animations
   ============================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Error styling for validation */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    animation: shakeError 0.5s ease;
}

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

/* ============================================
   ENHANCED LOGIN PAGE STYLES - K.D ENTERPRISES
   ============================================ */

/* Base Page Container */
.login-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
.login-page-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(102, 126, 234, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(120, 119, 198, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Main Login Container */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 500px;
    background: rgba(15, 23, 42, 0.95);    
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    animation: containerFadeIn 0.8s ease-out;
}

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

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   LEFT PANEL - LOGIN FORM
   ============================================ */

.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: rgba(15, 23, 42, 0.95);    
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header Section */
.login-header {
    margin-bottom: 2rem;
    text-align: center;
}

.logo-section {
    margin-bottom: 1.5rem;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    letter-spacing: -0.5px;
    animation: brandGlow 3s ease-in-out infinite;
}

@keyframes brandGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    }
}

.welcome-message {
    font-size: 1.5rem;
    color: #e2e8f0;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(120, 119, 198, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 10px rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.welcome-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Form Styling */
#loginForm {
    width: 100%;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group label {
    display: block;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.input-group:focus-within label {
    color: #667eea;
}

.input-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-weight: 500;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.2),
        0 4px 12px rgba(102, 126, 234, 0.15);
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: #64748b;
}

.input-group input:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    z-index: 2;
}

.password-toggle:hover {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.login-btn:hover:not(:disabled)::before {
    left: 100%;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    background-size: 300% 300%;
}

.login-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.2);
    animation: none;
}

.login-btn i {
    font-size: 1rem;
}

/* Footer Section */
.login-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-website-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(51, 65, 85, 0.8);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.back-to-website-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.back-to-website-btn:hover::after {
    width: 300px;
    height: 300px;
}

.back-to-website-btn:hover {
    background: rgba(71, 85, 105, 0.9);
    transform: translateY(-2px);
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-website-btn:active {
    transform: translateY(0);
}

/* ============================================
   RIGHT PANEL - PROMOTIONAL SECTION
   ============================================ */

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(26, 26, 46, 0.8) 100%);
    position: relative;
    z-index: 1;
}

.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(120, 119, 198, 0.08) 0%, transparent 60%);
    animation: promoGlow 8s ease-in-out infinite;
}

@keyframes promoGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.promo-content {
    text-align: center;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

/* 3D Cube Animation */
.cube-container {
    margin-bottom: 3rem;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.3));
}

.cube {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s infinite linear;
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.face {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(102, 126, 234, 0.4);
    background: rgba(102, 126, 234, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;    
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.face.front { transform: translateZ(60px); }
.face.back { transform: rotateY(180deg) translateZ(60px); }
.face.right { transform: rotateY(90deg) translateZ(60px); }
.face.left { transform: rotateY(-90deg) translateZ(60px); }
.face.top { transform: rotateX(90deg) translateZ(60px); }
.face.bottom { transform: rotateX(-90deg) translateZ(60px); }

.face::before {
    content: '';
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

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

/* Logo Section */
.promo-logo {
    margin-top: 2rem;
}

.promo-logo-img {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 4px 10px rgba(102, 126, 234, 0.3));
    animation: logoFloat 3s ease-in-out infinite;
    display: block;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.promo-logo h3 {
    color: #e2e8f0;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* ============================================
   NOTIFICATION STYLES
   ============================================ */

.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #667eea;
    max-width: 400px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.25rem;
}

.notification-success {
    border-left-color: #10b981;
}

.notification-success .notification-content i {
    color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-error .notification-content i {
    color: #ef4444;
}

.notification-info {
    border-left-color: #3b82f6;
}

.notification-info .notification-content i {
    color: #3b82f6;
}

.notification-content span {
    color: #1e293b;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
    }

    .login-left, .login-right {
        flex: none;
        min-height: auto;
        border-right: none;
    }

    .login-left {
        padding: 2.5rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .login-right {
        padding: 3rem 2rem;
    }

    .cube {
        width: 100px;
        height: 100px;
    }

    .face {
        width: 100px;
        height: 100px;
    }

    .face.front { transform: translateZ(50px); }
    .face.back { transform: rotateY(180deg) translateZ(50px); }
    .face.right { transform: rotateY(90deg) translateZ(50px); }
    .face.left { transform: rotateY(-90deg) translateZ(50px); }
    .face.top { transform: rotateX(90deg) translateZ(50px); }
    .face.bottom { transform: rotateX(-90deg) translateZ(50px); }
}

@media (max-width: 768px) {
    .login-page-container {
        padding: 1rem;
    }

    .login-left, .login-right {
        padding: 2rem 1.5rem;
    }

    .brand-name {
        font-size: 2rem;
    }

    .welcome-message {
        font-size: 1.25rem;
        padding: 0.75rem 1rem;
    }

    .cube {
        width: 80px;
        height: 80px;
    }

    .face {
        width: 80px;
        height: 80px;
    }

    .face.front { transform: translateZ(40px); }
    .face.back { transform: rotateY(180deg) translateZ(40px); }
    .face.right { transform: rotateY(90deg) translateZ(40px); }
    .face.left { transform: rotateY(-90deg) translateZ(40px); }
    .face.top { transform: rotateX(90deg) translateZ(40px); }
    .face.bottom { transform: rotateX(-90deg) translateZ(40px); }

    .promo-logo h3 {
        font-size: 1.5rem;
    }

    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.75rem;
    }

    .welcome-message {
        font-size: 1.1rem;
    }

    .input-group input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .login-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .back-to-website-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* ============================================
   LOADING STATE STYLES
   ============================================ */

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modal backdrop enhancement */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
}

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

/* Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 2rem 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.1), transparent 60%);
    pointer-events: none;
}

.sidebar-header {
    padding: 0 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(102, 126, 234, 0.8)); }
}

.sidebar-subtitle {
    font-size: 0.875rem;
    color: #cbd5e1;
    opacity: 0.8;
}

.sidebar-nav {
    list-style: none;
    position: relative;
}

.sidebar-nav-item {
    margin-bottom: 0.5rem;
    animation: slideIn 0.5s ease-out backwards;
}

.sidebar-nav-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-nav-item:nth-child(2) { animation-delay: 0.2s; }
.sidebar-nav-item:nth-child(3) { animation-delay: 0.3s; }
.sidebar-nav-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.sidebar-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.2), transparent);
    transition: width 0.3s ease;
}

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

.sidebar-nav-link:hover {
    color: #f1f5f9;
    border-left-color: #667eea;
    transform: translateX(5px);
}

.sidebar-nav-link.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3), transparent);
    color: #f1f5f9;
    border-left-color: #667eea;
    box-shadow: inset 0 0 20px rgba(102, 126, 234, 0.2);
}

.sidebar-nav-link i {
    margin-right: 1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.sidebar-nav-link:hover i {
    transform: scale(1.2) rotateZ(5deg);
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.admin-header {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

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

.admin-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.admin-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(241, 245, 249, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #475569;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(226, 232, 240, 0.9);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);
}

/* Content Sections */
.content-section {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

.section-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.03), transparent);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    animation: countUp 1s ease-out;
}

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

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Data Table */
.data-table-container {
    padding: 2rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.data-table th {
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05), transparent);
    font-weight: 600;
    color: #475569;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table tbody tr {
    transition: all 0.3s ease;
}

.data-table tbody tr:hover {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05), transparent);
    transform: scale(1.01);
}

/* Action Buttons */
.action-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn.edit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.action-btn.edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.action-btn.delete {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.action-btn.delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

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

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    color: rgb(204, 78, 78);
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.show {
    transform: translateX(0);
    animation: notificationBounce 0.6s ease-out;
}

@keyframes notificationBounce {
    0% { transform: translateX(400px); }
    60% { transform: translateX(-20px); }
    80% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

.notification.success {
    background: rgba(179, 74, 138, 0.856);
    border-color: rgba(192, 116, 169, 0.4);
    box-shadow: 
        0 10px 30px rgba(16, 185, 129, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.notification.error {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 
        0 10px 30px rgba(239, 68, 68, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.notification.info {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Form Enhancements */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 250px;
    }
    .admin-main {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .admin-container {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    .admin-main {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Enhancements */
.modal-content.large-modal {
    max-width: 800px;
    width: 90%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.3),
        0 15px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.4);
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.modal-content.large-modal:hover {
    transform: translateY(-4px);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.35),
        0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal-content.upload-modal {
    max-width: 600px;
    width: 90%;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05), transparent);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: linear-gradient(to top, rgba(102, 126, 234, 0.03), transparent);
}

/* Enhanced Upload Modal */
.upload-area {
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.08), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(120, 119, 198, 0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.upload-area::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: uploadGlow 4s ease-in-out infinite;
}

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

.upload-area:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 20px 40px rgba(102, 126, 234, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.upload-area:hover::before {
    opacity: 1;
}

.upload-area:hover::after {
    opacity: 0.5;
}

.upload-area.dragover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(248, 250, 252, 0.95));
    transform: scale(1.03);
    box-shadow:
        0 25px 50px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    animation: pulse 1.5s ease-in-out infinite;
}

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

.upload-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(102, 126, 234, 0.3));
    position: relative;
    z-index: 1;
}

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

.upload-text {
    color: #475569;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.upload-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.upload-link:hover {
    text-decoration: underline;
    color: #4f46e5;
    transform: scale(1.05);
}

.upload-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    z-index: 1;
}

.upload-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.upload-note {
    font-style: italic;
    color: #94a3b8 !important;
}

/* Form Enhancements in Modal */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: white;
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Edit Select Dropdown Styling */
.edit-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #374151;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    position: relative;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.edit-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    background: white;
}

.edit-select:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.edit-select option {
    background: white;
    color: #374151;
    padding: 0.5rem;
}

/* Edit Input Styling */
.edit-input {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #374151;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.edit-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    background: white;
}

/* Utility Classes */
.text-center { text-align: center; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
