/* =====================================================================
   REVEG ARTISANAL FOODS - ADMIN PANEL MASTER STYLESHEET
   Sleek, High-Productivity Dashboard Design
   ===================================================================== */

:root {
    --admin-bg: #F4F6F8;
    --admin-card-bg: #FFFFFF;
    --admin-sidebar-bg: #0B291D; /* Deep Executive Forest */
    --admin-sidebar-hover: #143F2E;
    --admin-sidebar-active: #D9531E; /* Saffron Accent */
    --admin-header-bg: #FFFFFF;
    
    --admin-text-main: #1E293B;
    --admin-text-muted: #64748B;
    --admin-border: #E2E8F0;
    --admin-border-subtle: #F1F5F9;

    --admin-primary: #0F3827;
    --admin-primary-hover: #174E37;
    --admin-accent: #D9531E;
    --admin-gold: #D4AF37;
    
    --admin-success: #10B981;
    --admin-warning: #F59E0B;
    --admin-danger: #EF4444;
    --admin-info: #3B82F6;

    --admin-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --admin-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --admin-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

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

body.admin-body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--admin-bg);
    color: var(--admin-text-main);
    display: flex;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--admin-sidebar-bg);
    color: #E2EFE7;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    position: relative;
}

.sidebar-brand {
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.sidebar-brand-text {
    flex-grow: 1;
    min-width: 0;
    transition: opacity 0.2s;
}

.sidebar-mini-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #C3D9CE;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.sidebar-mini-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.3);
}

.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFF;
    border: 2px solid var(--admin-gold);
    display: block;
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-role {
    font-size: 11px;
    color: var(--admin-gold);
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-menu {
    flex-grow: 1;
    padding: 16px 12px;
    overflow-y: auto;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-category-label {
    font-size: 11px;
    font-weight: 700;
    color: #6A8E7D;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 10px 4px 10px;
    transition: opacity 0.2s;
}

/* Collapsed Sidebar State */
body.sidebar-collapsed .admin-sidebar,
html.sidebar-collapsed .admin-sidebar {
    width: 72px;
}

body.sidebar-collapsed .sidebar-brand,
html.sidebar-collapsed .sidebar-brand {
    padding: 16px 12px;
    justify-content: center;
}

body.sidebar-collapsed .sidebar-brand-text,
html.sidebar-collapsed .sidebar-brand-text,
body.sidebar-collapsed .sidebar-mini-toggle,
html.sidebar-collapsed .sidebar-mini-toggle,
body.sidebar-collapsed .menu-category-label,
html.sidebar-collapsed .menu-category-label {
    display: none !important;
}

body.sidebar-collapsed .sidebar-menu,
html.sidebar-collapsed .sidebar-menu {
    padding: 16px 8px;
    align-items: center;
}

body.sidebar-collapsed .sidebar-menu li,
html.sidebar-collapsed .sidebar-menu li {
    width: 100%;
}

body.sidebar-collapsed .sidebar-menu a,
html.sidebar-collapsed .sidebar-menu a {
    justify-content: center;
    padding: 12px 0;
    width: 100%;
    position: relative;
}

body.sidebar-collapsed .sidebar-menu a span:not(.menu-icon),
html.sidebar-collapsed .sidebar-menu a span:not(.menu-icon) {
    display: none !important;
}

body.sidebar-collapsed .sidebar-menu a .menu-icon,
html.sidebar-collapsed .sidebar-menu a .menu-icon {
    font-size: 20px;
    width: auto;
    margin: 0;
}

body.sidebar-collapsed .sidebar-menu a .badge-count,
html.sidebar-collapsed .sidebar-menu a .badge-count {
    display: inline-block !important;
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    line-height: 1;
}

/* Tooltip on hover when collapsed */
body.sidebar-collapsed .sidebar-menu a:hover::after,
html.sidebar-collapsed .sidebar-menu a:hover::after,
body.sidebar-collapsed .btn-sidebar-logout:hover::after,
html.sidebar-collapsed .btn-sidebar-logout:hover::after {
    content: attr(data-title);
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--admin-sidebar-bg);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.45);
    pointer-events: none;
}

body.sidebar-collapsed .sidebar-footer,
html.sidebar-collapsed .sidebar-footer {
    padding: 12px 8px;
}

body.sidebar-collapsed .btn-sidebar-logout,
html.sidebar-collapsed .btn-sidebar-logout {
    justify-content: center;
    padding: 12px 0;
    position: relative;
}

body.sidebar-collapsed .btn-sidebar-logout span:not(:first-child),
html.sidebar-collapsed .btn-sidebar-logout span:not(:first-child) {
    display: none !important;
}

.sidebar-toggle-btn {
    background: #F8FAFC;
    border: 1px solid var(--admin-border);
    color: var(--admin-primary);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background: #E2E8F0;
    color: var(--admin-accent);
    border-color: #CBD5E1;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #C3D9CE;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.sidebar-menu a:hover {
    background: var(--admin-sidebar-hover);
    color: #FFF;
}

.sidebar-menu a.active {
    background: var(--admin-sidebar-active);
    color: #FFF;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(217, 83, 30, 0.35);
}

.sidebar-menu .menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.badge-count {
    margin-left: auto;
    background: var(--admin-accent);
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #FFF;
}

/* Main Content Area */
.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
}

/* Admin Top Bar */
.admin-topbar {
    background: var(--admin-header-bg);
    border-bottom: 1px solid var(--admin-border);
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--admin-text-main);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--admin-border-subtle);
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--admin-border);
}

.user-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--admin-primary);
    color: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

/* Content Container */
.admin-content {
    padding: 30px;
    flex-grow: 1;
}

/* Cards */
.admin-card {
    background: var(--admin-card-bg);
    border-radius: 12px;
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFF;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--admin-text-main);
}

.card-body {
    padding: 24px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.metric-card {
    background: var(--admin-card-bg);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--admin-shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--admin-text-main);
    line-height: 1.1;
    margin-top: 4px;
}

.metric-label {
    font-size: 13px;
    color: var(--admin-text-muted);
    font-weight: 600;
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.metric-icon.green { background: #ECFDF5; color: #059669; }
.metric-icon.orange { background: #FFF7ED; color: #EA580C; }
.metric-icon.blue { background: #EFF6FF; color: #2563EB; }
.metric-icon.purple { background: #FAF5FF; color: #9333EA; }

/* Dashboard Action Banner */
.dashboard-action-banner {
    background: linear-gradient(135deg, var(--admin-sidebar-bg) 0%, var(--admin-primary) 50%, var(--admin-primary-hover) 100%);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 10px 30px rgba(11, 41, 29, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: 26px 32px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.dashboard-action-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(15, 56, 39, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

.dashboard-action-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 25%;
    width: 280px;
    height: 160px;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-action-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.dashboard-action-content {
    flex: 1 1 380px;
    min-width: 280px;
}

.dashboard-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #F6E0A4;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.dashboard-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dashboard-action-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.dashboard-action-sub {
    font-size: 13.5px;
    color: #D1E7DD;
    line-height: 1.55;
    margin: 0;
    max-width: 580px;
}

/* Quick Action Buttons Row */
.dashboard-action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Base Action Button */
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dash-btn:active {
    transform: translateY(0) !important;
}

.dash-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}

/* Button 1: Add New Product */
.dash-btn-primary {
    background: linear-gradient(135deg, #E65100 0%, #F4511E 100%);
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(230, 81, 0, 0.38);
    font-weight: 700;
}

.dash-btn-primary .dash-btn-icon {
    background: rgba(255, 255, 255, 0.22);
    color: #FFF;
}

.dash-btn-primary:hover {
    background: linear-gradient(135deg, #EF6C00 0%, #FF5722 100%);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(230, 81, 0, 0.48);
    color: #FFFFFF !important;
}

/* Button 2: Edit Hero Section */
.dash-btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #FBF6EA !important;
    border: 1px solid rgba(246, 224, 164, 0.45);
    backdrop-filter: blur(6px);
}

.dash-btn-glass .dash-btn-icon {
    background: rgba(212, 175, 55, 0.25);
    color: #F6E0A4;
}

.dash-btn-glass:hover {
    background: rgba(246, 224, 164, 0.18);
    border-color: #F6E0A4;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* Button 3: View All Inquiries */
.dash-btn-white {
    background: #FFFFFF;
    color: var(--admin-primary) !important;
    border: 1px solid #E2E8F0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-weight: 700;
}

.dash-btn-white .dash-btn-icon {
    background: #ECFDF5;
    color: var(--admin-primary);
}

.dash-btn-white:hover {
    background: #F8FAFC;
    color: var(--admin-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18);
}

.dash-btn-badge {
    background: var(--admin-accent);
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    margin-left: 2px;
    box-shadow: 0 2px 6px rgba(217, 83, 30, 0.35);
}

@media (max-width: 900px) {
    .dashboard-action-banner {
        padding: 22px;
    }
    .dashboard-action-buttons {
        width: 100%;
    }
    .dash-btn {
        flex: 1 1 180px;
        justify-content: center;
    }
}

/* Tables */
.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.admin-table th {
    background: #F8FAFC;
    color: var(--admin-text-muted);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--admin-border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--admin-border);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #F8FAFC;
}

.table-thumbnail {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--admin-border);
}

/* Status Badges */
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active, .status-New { background: #DCFCE7; color: #15803D; }
.status-inactive, .status-Cancelled { background: #FEE2E2; color: #B91C1C; }
.status-out_of_stock, .status-Pending { background: #FEF3C7; color: #B45309; }
.status-Contacted { background: #DBEAFE; color: #1D4ED8; }
.status-Completed { background: #E0E7FF; color: #4338CA; }

/* Inquiries Section Enhanced Design */
.inq-ref-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    font-size: 12px;
    color: var(--admin-primary);
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    letter-spacing: 0.2px;
}

.inq-time-sub {
    display: block;
    font-size: 11px;
    color: #64748B;
    margin-top: 4px;
    white-space: nowrap;
}

.inq-cust-name {
    font-weight: 700;
    color: var(--admin-primary);
    font-size: 13.5px;
    line-height: 1.3;
}

.inq-cust-phone {
    margin-top: 4px;
}

.inq-phone-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #166534;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
    padding: 2px 8px;
    border-radius: 20px;
    transition: all 0.15s ease;
}

.inq-phone-badge:hover {
    background: #BBF7D0;
    border-color: #86EFAC;
    color: #14532D;
}

.inq-cust-email {
    font-size: 11.5px;
    color: #64748B;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.inq-product-cell {
    max-width: 320px;
}

.inq-prod-title {
    font-weight: 700;
    color: #1E293B;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.inq-qty-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.inq-msg-snippet {
    font-size: 11.5px;
    color: #64748B;
    background: #F8FAFC;
    border-left: 3px solid #CBD5E1;
    padding: 4px 8px;
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* Status Selector Dropdown inside Table */
.status-select-wrap {
    position: relative;
    display: inline-block;
}

.status-select-badge {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 5px 26px 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    transition: all 0.2s;
}

.status-select-badge:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 56, 39, 0.15);
}

.status-select-badge.status-New {
    background-color: #DCFCE7;
    color: #15803D;
    border-color: #BBF7D0;
}

.status-select-badge.status-Contacted {
    background-color: #DBEAFE;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

.status-select-badge.status-Pending {
    background-color: #FEF3C7;
    color: #B45309;
    border-color: #FDE68A;
}

.status-select-badge.status-Completed {
    background-color: #E0E7FF;
    color: #4338CA;
    border-color: #C7D2FE;
}

.status-select-badge.status-Cancelled {
    background-color: #FEE2E2;
    color: #B91C1C;
    border-color: #FECACA;
}

.status-updated-flash {
    animation: flashStatus 0.8s ease;
}

@keyframes flashStatus {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 10px rgba(16, 185, 129, 0.4); }
    100% { transform: scale(1); }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon-action {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--admin-border);
    background: #FFF;
    color: var(--admin-text-main);
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    font-weight: 500;
}

.btn-icon-action:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.btn-icon-action.danger:hover {
    background: #FEE2E2;
    color: #B91C1C;
    border-color: #FCA5A5;
}

/* Forms */
.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--admin-text-main);
    margin-bottom: 6px;
}

.admin-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--admin-text-main);
    background: #FFF;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-form-control:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(15, 56, 39, 0.1);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.form-help {
    font-size: 12px;
    color: var(--admin-text-muted);
    margin-top: 4px;
}

/* Alerts */
.admin-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-alert-success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.admin-alert-danger { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.admin-alert-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }

/* Media Gallery Grid in Admin */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.media-item {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    overflow: hidden;
    background: #FFF;
    display: flex;
    flex-direction: column;
}

.media-item img {
    height: 120px;
    object-fit: cover;
    width: 100%;
}

.media-meta {
    padding: 10px;
    font-size: 12px;
    flex-grow: 1;
}

.media-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-actions {
    display: flex;
    border-top: 1px solid var(--admin-border);
}

.media-actions button, .media-actions a {
    flex: 1;
    padding: 6px;
    text-align: center;
    background: transparent;
    border: none;
    font-size: 12px;
    cursor: pointer;
    color: var(--admin-text-muted);
}

.media-actions button:hover {
    background: #FEE2E2;
    color: #991B1B;
}

/* Login Page Layout */
.login-body {
    background: linear-gradient(135deg, var(--admin-sidebar-bg) 0%, var(--admin-primary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #FFF;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #FFF;
    border: 3px solid var(--admin-gold);
    display: block;
    object-fit: cover;
    margin: 0 auto 15px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--admin-primary);
    font-weight: 700;
}

.login-sub {
    color: var(--admin-text-muted);
    font-size: 13.5px;
    margin-top: 4px;
}
