﻿/* ================================
   ADMIN THEME VARIABLES
================================= */
:root {
    --admin-primary: #1E293B; /* Deep Navy */
    --admin-accent: #63AEB8; /* Teal */
    --admin-success: #16a34a;
    --admin-danger: #dc2626;
    --admin-warning: #f59e0b;
    --admin-bg: #f1f5f9;
}

/* ================================
   LAYOUT STRUCTURE
================================= */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--admin-bg);
}

/* ================================
   SIDEBAR
================================= */
.admin-sidebar {
    width: 260px;
    background: var(--admin-primary);
    color: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

    .admin-sidebar.collapsed {
        width: 70px;
    }

.admin-logo {
    padding: 20px;
    font-weight: 600;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    background: var(--admin-accent);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
}

.logo-text {
    font-size: 16px;
}

/* NAVIGATION */
.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

    .admin-link:hover {
        background: rgba(255,255,255,0.08);
        color: white;
    }

    .admin-link.active {
        background: var(--admin-accent);
        color: white;
    }

/* ================================
   MAIN AREA
================================= */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.admin-header {
    height: 60px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-user {
    font-size: 14px;
    color: #475569;
}

.admin-logout {
    text-decoration: none;
    color: var(--admin-danger);
    font-weight: 500;
}

/* ================================
   CONTENT
================================= */
.admin-content {
    flex: 1;
    padding: 24px;
}

/* ================================
   FOOTER
================================= */
.admin-footer {
    background: white;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}

/* ================================
   RESPONSIVE
================================= */
@media (max-width: 900px) {

    .admin-sidebar {
        position: fixed;
        height: 100%;
        z-index: 1000;
        left: -260px;
    }

        .admin-sidebar.collapsed {
            left: 0;
        }

    .admin-main {
        margin-left: 0;
    }
}
/*Admin Dashboard Css*/

/* ================================
   ADMIN DASHBOARD
================================= */

.admin-dashboard-header {
    margin-bottom: 24px;
}

    .admin-dashboard-header h2 {
        margin: 0;
        font-weight: 600;
    }

    .admin-dashboard-header p {
        color: #64748b;
        margin-top: 6px;
        font-size: 14px;
    }

/* GRID */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* STAT CARD */
.admin-stat-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .admin-stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    }

.stat-icon {
    font-size: 40px;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Variants */

.admin-stat-card.dealers .stat-icon {
    background: rgba(99,174,184,0.15);
    color: var(--admin-accent);
}

.admin-stat-card.customers .stat-icon {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
}

.admin-stat-card.installations .stat-icon {
    background: rgba(245,158,11,0.15);
    color: var(--admin-warning);
}

.admin-stat-card.services .stat-icon {
    background: rgba(220,38,38,0.15);
    color: var(--admin-danger);
}

/* Text */

.stat-info h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.stat-info span {
    font-size: 14px;
    color: #64748b;
}

/*Dealer List*/

/* ADMIN BUTTON */
.admin-primary-btn {
    background: linear-gradient(90deg, var(--admin-primary), var(--admin-accent));
    color: white !important;
    font-weight: 600;
    border-radius: 8px;
}

/* STATUS BADGE */
.admin-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .admin-status.Active {
        background: rgba(22,163,74,0.15);
        color: var(--admin-success);
    }

    .admin-status.Inactive {
        background: rgba(245,158,11,0.15);
        color: var(--admin-warning);
    }

    .admin-status.Suspended {
        background: rgba(220,38,38,0.15);
        color: var(--admin-danger);
    }

    .admin-status.Blocked {
        background: rgba(220,38,38,0.15);
        color: var(--admin-danger);
    }

/* ASSIGN BUTTON */
.admin-assign-btn {
    background: linear-gradient(90deg, var(--admin-accent), #38bdf8);
    color: white !important;
    border-radius: 8px;
    font-size: 12px;
}

/* Warning Status */
.admin-status.warning {
    background: rgba(245,158,11,0.15);
    color: var(--admin-warning);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.admin-status.Assigned {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.admin-status.InProgress {
    background: rgba(245,158,11,0.15);
    color: var(--admin-warning);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* PRIORITY BADGES */
.admin-priority {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .admin-priority.High {
        background: rgba(220,38,38,0.15);
        color: var(--admin-danger);
    }

    .admin-priority.Medium {
        background: rgba(245,158,11,0.15);
        color: var(--admin-warning);
    }

    .admin-priority.Low {
        background: rgba(22,163,74,0.15);
        color: var(--admin-success);
    }

/* STATUS VARIANTS */
.admin-status.InProgress {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.admin-status.Unassigned {
    background: rgba(245, 158, 11, 0.15);
    color: var(--admin-warning);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.admin-status.Assigned {
    background: rgba(99,174,184,0.15);
    color: var(--admin-accent);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.admin-status.WaitingParts {
    background: rgba(245,158,11,0.15);
    color: var(--admin-warning);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.admin-status.OnHold {
    background: rgba(245,158,11,0.15);
    color: var(--admin-warning);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}