@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary: #c4a000;
    --primary-light: #f7e9a0;
    --primary-dark: #8c7300;
    --accent: #b8860b;
    --sidebar-bg: #121212;
    --sidebar-text: #e0e0e0;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #1a1a1b;
    --text-muted: #5f6368;
    --danger: #d93025;
    --success: #188038;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Glassmorphism Sidebar */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.menu-item {
    margin: 4px 15px;
    border-radius: 10px;
    padding: 12px 20px;
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(184, 134, 11, 0.2) 0%, rgba(184, 134, 11, 0.05) 100%);
    color: var(--primary);
    border-left: none;
    box-shadow: inset 4px 0 0 var(--primary);
}

/* Premium Cards */
.stat-card {
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-info .value {
    letter-spacing: -1px;
    background: linear-gradient(45deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* Login Page Styles */
.login-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: block;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group a:hover {
    text-decoration: underline;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--primary-dark);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 100;
}

.sidebar-header {
    padding: 30px;
    text-align: center;
}

.sidebar-logo {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 700;
}

.sidebar-menu {
    flex: 1;
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.menu-item:hover, .menu-item.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.menu-item i {
    margin-right: 15px;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-bar {
    height: 70px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: var(--shadow-sm);
}

.page-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-badge {
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-gold { background: #b8860b !important; color: white !important; }
.bg-danger { background: #e53e3e !important; color: white !important; }
.bg-secondary { background: #718096 !important; color: white !important; }
.bg-success { background: #38a169 !important; color: white !important; }

/* Content Sections */
.content-section {
    padding: 40px;
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-info .value {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Tables & Management */
.data-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.data-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #fcfcfc;
    padding: 15px 30px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

.btn-sm {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-delete {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.btn-delete:hover {
    background: #e74c3c;
    color: white;
}

.btn-upgrade {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.btn-upgrade:hover {
    background: #2ecc71;
    color: white;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-md);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Responsive */
.hambuger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
    }
    .sidebar-logo, .menu-item span {
        display: none;
    }
    .menu-item i {
        margin-right: 0;
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hambuger {
        display: block;
    }
    .sidebar {
        position: fixed;
        left: -260px;
        height: 100%;
        width: 260px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    .sidebar.open {
        left: 0;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 99;
        display: none;
    }
    .sidebar.open ~ .sidebar-overlay,
    .sidebar-overlay.active {
        display: block;
    }
    .sidebar-logo, .menu-item span {
        display: block;
    }
    .menu-item i {
        margin-right: 15px;
    }
    .top-bar {
        padding: 0 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .content-section {
        padding: 20px;
    }
    .top-bar .user-nav span {
        display: none;
    }
}
