/* Admin Dashboard Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --admin-bg: #0e0f13;
    --admin-sidebar-bg: #15161d;
    --admin-card-bg: #1a1c24;
    --admin-border: rgba(255, 255, 255, 0.08);
    --admin-accent: #d4ff00;
    --admin-accent-hover: #bada00;
    --admin-text: #e2e8f0;
    --admin-text-muted: #cbd5e1;
    --font-headers: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--admin-bg);
    color: var(--admin-text);
    font-family: var(--font-body);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .admin-brand {
    font-family: var(--font-headers);
    font-weight: 700;
    text-transform: uppercase;
}

.text-muted {
    color: var(--admin-text-muted) !important;
}

/* Layout Wrapper */
.admin-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar */
#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: var(--admin-sidebar-bg);
    color: #fff;
    transition: all 0.3s;
    border-right: 1px solid var(--admin-border);
    min-height: 100vh;
    z-index: 1000;
}

#sidebar .sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--admin-border);
}

#sidebar ul.components {
    padding: 1.5rem 0;
}

#sidebar ul li {
    padding: 0 1rem;
    margin-bottom: 0.5rem;
}

#sidebar ul li a {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    display: block;
    color: var(--admin-text-muted);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: #000;
    background: var(--admin-accent);
    font-weight: 600;
}

#sidebar ul li.active > a i {
    color: #000;
}

/* Content Area */
#content {
    width: 100%;
    padding: 2rem;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Admin Cards */
.admin-card {
    background-color: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.metric-card {
    position: relative;
    overflow: hidden;
}

.metric-card .metric-value {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: var(--font-headers);
    color: var(--admin-accent);
    line-height: 1.2;
}

.metric-card .metric-label {
    color: var(--admin-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.metric-card .metric-icon {
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
    font-size: 3rem;
    opacity: 0.08;
    color: #fff;
}

/* Forms */
.form-admin {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
}

.form-admin:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: var(--admin-accent);
    color: var(--admin-text);
    box-shadow: 0 0 0 0.25rem rgba(212, 255, 0, 0.15);
}

/* Badges */
.badge-admin {
    font-family: var(--font-headers);
    font-size: 0.75rem;
    padding: 0.45em 0.8em;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-pending {
    background-color: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-approved {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Table styling for admin */
.admin-table {
    color: var(--admin-text) !important;
}

.admin-table th {
    border-bottom: 2px solid var(--admin-border) !important;
    color: var(--admin-text-muted);
    font-family: var(--font-headers);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    border-bottom: 1px solid var(--admin-border) !important;
    padding: 0.85rem 0.75rem !important;
    vertical-align: middle;
}

/* Buttons */
.btn-admin-primary {
    background-color: var(--admin-accent);
    color: #000;
    font-family: var(--font-headers);
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-admin-primary:hover {
    background-color: var(--admin-accent-hover);
    transform: translateY(-1px);
}

.btn-admin-secondary {
    background-color: transparent;
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
    font-family: var(--font-headers);
    font-weight: 600;
    border-radius: 6px;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-admin-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }
    #sidebar {
        min-width: 100%;
        max-width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--admin-border);
    }
    #content {
        padding: 1.5rem 1rem;
    }
}

/* Logo styles */
.admin-logo {
    height: 32px;
    width: 32px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.admin-logo:hover {
    transform: scale(1.15) rotate(8deg);
}

.admin-logo-large {
    height: 55px;
    width: 55px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.admin-logo-large:hover {
    transform: scale(1.1) rotate(8deg);
}
