/* assets/css/admin.css - Administrator Dashboard Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #06070a;
    --bg-panel: #0d0f14;
    --bg-sidebar: #090a0f;
    --color-accent: #f59e0b;
    --color-cyan: #00e5ff;
    --border-dark: 1px solid rgba(255, 255, 255, 0.05);
    --border-accent: 1px solid rgba(245, 158, 11, 0.2);
    --text-main: #e5e7eb;
    --text-muted: #8c939d;
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.6);
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
}

/* Login Page Layout */
.login-body {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #11141c 0%, #06070a 100%);
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-panel);
    border: var(--border-accent);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 30px rgba(245, 158, 11, 0.05);
}

/* Dashboard Container (Sidebar + Main Panel) */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: var(--bg-sidebar);
    border-right: var(--border-dark);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    color: var(--text-muted);
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-accent);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 0.75rem 0.75rem 0;
}

.admin-main {
    padding: 3rem;
    overflow-y: auto;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: var(--border-dark);
    padding-bottom: 1.5rem;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-panel);
    border: var(--border-dark);
    border-radius: 1.25rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-dark);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.stat-info h3 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    font-size: 2.2rem;
    color: var(--color-accent);
    opacity: 0.8;
}

/* Content Panel & Tables */
.content-panel {
    background: var(--bg-panel);
    border: var(--border-dark);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-dark);
    margin-bottom: 3rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th, .admin-table td {
    padding: 1.1rem 1.5rem;
    text-align: left;
    border-bottom: var(--border-dark);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.01);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.admin-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-accent {
    background: rgba(245, 158, 11, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-cyan {
    background: rgba(0, 229, 255, 0.1);
    color: var(--color-cyan);
    border: 1px solid rgba(0, 229, 255, 0.25);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 0, 0, 0.25);
    border: var(--border-dark);
    border-radius: 0.75rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

/* Action Buttons */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    border: var(--border-dark);
    background: rgba(255,255,255,0.03);
    color: var(--text-muted);
    cursor: pointer;
    margin-right: 0.25rem;
    transition: var(--transition-smooth);
}

.btn-action:hover {
    color: #fff;
}

.btn-action.edit:hover {
    background: rgba(0, 229, 255, 0.15);
    color: var(--color-cyan);
    border-color: var(--color-cyan);
}

.btn-action.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: #ef4444;
}

/* Alert Boxes */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Footer Section */
.sidebar-footer {
    margin-top: auto;
    border-top: var(--border-dark);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        display: none;
    }
}
