/* ==========================================================
   FloraNusantara - Admin Dashboard Styling
   Clean, Modern & Intuitive Control Panel
   ========================================================== */

:root {
    --admin-sidebar-bg: #1B4332;
    --admin-sidebar-hover: #2D6A4F;
    --admin-sidebar-active: #52B788;
    --admin-primary: #2D6A4F;
    --admin-accent: #BC6C25;
    --admin-bg: #F4F6F9;
    --admin-card-bg: #FFFFFF;
    --admin-text: #2D3748;
}

body.admin-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--admin-bg);
    color: var(--admin-text);
    margin: 0;
    padding: 0;
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--admin-sidebar-bg);
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.3s ease;
    z-index: 100;
}

.sidebar-brand {
    padding: 24px 20px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-nav {
    padding: 16px 12px;
}

.nav-section-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #74c69d;
    padding: 12px 12px 6px;
    font-weight: 700;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #d8f3dc;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.sidebar-link i {
    font-size: 1.15rem;
    width: 22px;
}

.sidebar-link:hover {
    background: var(--admin-sidebar-hover);
    color: #ffffff;
    padding-left: 18px;
}

.sidebar-link.active {
    background: var(--admin-sidebar-active);
    color: #1B4332;
    font-weight: 700;
}

.admin-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-header {
    background: #ffffff;
    padding: 14px 28px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-main {
    padding: 28px;
    flex-grow: 1;
}

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.stat-val {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--admin-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 600;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #e8f5e9;
    color: var(--admin-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* Table styling */
.card-table {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
}

.table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
}

.table td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.thumb-preview {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #edf2f7;
}

/* Status Badges */
.badge-order-wait {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

.badge-order-process {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.badge-order-done {
    background: #dcfce7;
    color: #15803d;
    font-weight: 600;
}

.badge-order-cancel {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
}

/* Admin Login Page */
.login-body {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.2);
}

@media (max-width: 991px) {
    .admin-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
    }
    .admin-sidebar.show {
        left: 0;
    }
}

