/* 
   THE AMAZE - Admin Panel Luxury Design System
   Glassmorphism + Cyan Accents 
*/

:root {
    --accent-cyan: #06b6d4;
    --accent-teal: #14b8a6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --bg-black: #050505;
    --sidebar-w: 280px;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: #030303;
    color: white;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #050505;
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(6, 182, 212, 0.2);
}

.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* Sidebar */
.sidebar-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-link.active {
    color: white;
    background: rgba(6, 182, 212, 0.1);
    border-right: 3px solid var(--accent-cyan);
}

.sidebar-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
}

/* Buttons */
.btn-primary {
    background: var(--accent-cyan);
    color: black;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
    background: var(--accent-teal);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

/* Input Fields */
.admin-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    transition: all 0.3s ease;
}

.admin-input:focus {
    border-color: var(--accent-cyan);
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Loading Spinner */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #FFF;
    border-bottom-color: var(--accent-cyan);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Table Stylings */
.admin-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Glow Accents */
.accent-glow {
    filter: drop-shadow(0 0 10px var(--accent-cyan));
}

/* Responsive Helpers */
.sidebar-active #sidebar {
    transform: translateX(0);
}

.sidebar-active #sidebarOverlay {
    display: block;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    :root {
        --sidebar-w: 0px;
    }
    
    .glass-panel {
        backdrop-filter: blur(10px);
    }
}

/* Table Responsiveness */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Card Grid Responsiveness */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .glass-panel {
        border-radius: 1.5rem !important;
    }
    
    body {
        font-size: 14px;
    }
}
