/* Professional Styles with Animations & Hamburger Menu */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary);
    font-size: 14px;
    font-weight: 500;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transition: all 0.3s;
    animation: fadeIn 0.5s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 14px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Password Input with Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--secondary);
    background: none;
    border: none;
    font-size: 16px;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Rich Text Editor */
.rich-editor {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.rich-editor-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.rich-editor-toolbar button {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.rich-editor-toolbar button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.rich-editor-content {
    min-height: 200px;
    padding: 12px;
    outline: none;
    font-size: 14px;
    line-height: 1.5;
    overflow-y: auto;
}

.rich-editor-content:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
}

/* Header - Black Background */
.main-header {
    background: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 24px;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 0 24px;
    background: #000000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i, .logo span {
    color: white;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a:hover {
    color: #a78bfa;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #a78bfa;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .text-red-500 {
    color: #f87171;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.notification-bell:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 20px;
    animation: pulse 1s infinite;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: #a78bfa;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #000000;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 99;
    animation: slideIn 0.3s ease;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 12px;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu a:hover {
    background: #1a1a1a;
    color: #a78bfa;
    transform: translateX(5px);
}

.mobile-menu .notification-bell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Footer */
.main-footer {
    background: #111;
    color: white;
    padding: 30px 24px 20px;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: #94a3b8;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #a78bfa;
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 12px;
    color: #64748b;
}

/* Notification Panel */
.notification-panel {
    position: absolute;
    top: 45px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

.notification-item {
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: #f8fafc;
    transform: translateX(3px);
}

.notification-item.unread {
    background: #e0e7ff;
    border-left: 3px solid #4f46e5;
}

/* User Table Actions */
.user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-action-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.user-action-btn.edit {
    background: #fef3c7;
    color: #d97706;
}

.user-action-btn.edit:hover {
    background: #fde68a;
    transform: translateY(-2px);
}

.user-action-btn.deactivate {
    background: #fed7aa;
    color: #c2410c;
}

.user-action-btn.deactivate:hover {
    background: #fdba74;
    transform: translateY(-2px);
}

.user-action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.user-action-btn.delete:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

.user-action-btn.reset {
    background: #dbeafe;
    color: #2563eb;
}

.user-action-btn.reset:hover {
    background: #bfdbfe;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .notification-bell {
        display: inline-flex;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card {
        padding: 16px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .rich-editor-toolbar {
        overflow-x: auto;
    }
    
    .notification-panel {
        width: calc(100vw - 40px);
        right: -60px;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .user-action-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-input, .form-textarea, .form-select {
        padding: 10px 12px;
    }
}

/* Status Badges */
.status-active {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.slider-slide {
    animation: fadeIn 0.5s ease;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}