/* ==========================================================================
   CV IT MUDA - Admin Dashboard Style System
   Theme: Modern Clean Light Enterprise, High Contrast & Responsive
   ========================================================================== */

:root {
    --adm-bg: #f8fafc;
    --adm-sidebar: #ffffff;
    --adm-card: #ffffff;
    --adm-card-hover: #ffffff;
    --adm-border: #e2e8f0;
    --adm-border-active: #0284c7;
    
    --adm-text: #0f172a;
    --adm-text-sub: #475569;
    --adm-text-muted: #64748b;
    
    --adm-cyan: #0284c7;
    --adm-blue: #2563eb;
    --adm-emerald: #059669;
    --adm-amber: #d97706;
    --adm-rose: #e11d48;
    
    --adm-font-sans: 'Plus Jakarta Sans', sans-serif;
    --adm-font-mono: 'JetBrains Mono', monospace;
    --adm-radius: 10px;
    --adm-transition: all 0.25s ease;
    --adm-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
}

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

body {
    background-color: var(--adm-bg);
    color: var(--adm-text);
    font-family: var(--adm-font-sans);
    line-height: 1.5;
}

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

/* Sidebar */
.admin-sidebar {
    width: 260px;
    background: var(--adm-sidebar);
    border-right: 1px solid var(--adm-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(15, 23, 42, 0.03);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--adm-border);
    text-decoration: none;
    color: var(--adm-text);
    font-weight: 800;
    font-size: 1.1rem;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--adm-cyan), var(--adm-blue));
    color: #ffffff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.sidebar-menu {
    list-style: none;
    padding: 1.25rem 0.75rem;
    flex-grow: 1;
    overflow-y: auto;
}

.menu-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--adm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    padding: 0.75rem 0.75rem 0.4rem;
}

.menu-item {
    margin-bottom: 0.25rem;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--adm-radius);
    color: var(--adm-text-sub);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--adm-transition);
}

.menu-link:hover, .menu-link.active {
    background: rgba(2, 132, 199, 0.08);
    color: var(--adm-cyan);
}

.menu-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.menu-badge {
    margin-left: auto;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--adm-rose);
    color: #fff;
}

.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--adm-border);
    background: #fafafa;
}

/* Main Content Area */
.admin-main {
    margin-left: 260px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar */
.admin-topbar {
    height: 65px;
    background: var(--adm-sidebar);
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--adm-text);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--adm-text-sub);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.1);
    color: var(--adm-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

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

/* Card Component */
.adm-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--adm-shadow);
}

.adm-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--adm-border);
}

.adm-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--adm-text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Stats Metric Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-metric-card {
    background: #ffffff;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: var(--adm-shadow);
    transition: var(--adm-transition);
}

.stat-metric-card:hover {
    border-color: var(--adm-border-active);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.stat-metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.icon-cyan { background: #e0f2fe; color: var(--adm-cyan); }
.icon-emerald { background: #d1fae5; color: var(--adm-emerald); }
.icon-amber { background: #fef3c7; color: var(--adm-amber); }
.icon-rose { background: #ffe4e6; color: var(--adm-rose); }

.stat-metric-num {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--adm-font-mono);
    color: var(--adm-text);
}

.stat-metric-label {
    font-size: 0.82rem;
    color: var(--adm-text-sub);
    font-weight: 600;
}

/* Tables */
.adm-table-responsive {
    width: 100%;
    overflow-x: auto;
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.adm-table th {
    background: #f8fafc;
    padding: 0.85rem 1rem;
    font-size: 0.78rem;
    color: var(--adm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border-bottom: 1px solid var(--adm-border);
}

.adm-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--adm-border);
    color: var(--adm-text);
    vertical-align: middle;
}

.adm-table tr:hover td {
    background: #f8fafc;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--adm-font-mono);
}

.badge-cyan { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-emerald { background: #d1fae5; color: #047857; border: 1px solid #a7f3d0; }
.badge-amber { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-rose { background: #ffe4e6; color: #be123c; border: 1px solid #fecdd3; }

/* Buttons */
.adm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--adm-transition);
}

.adm-btn-primary { background: var(--adm-cyan); color: #ffffff; box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25); }
.adm-btn-primary:hover { background: #0284c7; color: #ffffff; }

.adm-btn-secondary { background: #ffffff; border-color: var(--adm-border); color: var(--adm-text); }
.adm-btn-secondary:hover { background: #f1f5f9; color: var(--adm-cyan); border-color: var(--adm-cyan); }

.adm-btn-danger { background: #ffe4e6; color: var(--adm-rose); border-color: #fecdd3; }
.adm-btn-danger:hover { background: var(--adm-rose); color: #fff; }

.adm-btn-sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; }

/* Form Controls */
.adm-form-group {
    margin-bottom: 1.25rem;
}

.adm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.adm-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--adm-text);
}

.adm-input, .adm-textarea, .adm-select {
    width: 100%;
    padding: 0.75rem 0.95rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: var(--adm-text);
    font-family: var(--adm-font-sans);
    font-size: 0.9rem;
    transition: var(--adm-transition);
}

.adm-input:focus, .adm-textarea:focus, .adm-select:focus {
    outline: none;
    border-color: var(--adm-cyan);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.adm-textarea {
    min-height: 110px;
    resize: vertical;
}

/* Alert Boxes */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-danger { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }

/* Responsive */
@media (max-width: 900px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
    }
    .adm-form-row {
        grid-template-columns: 1fr;
    }
}
