/* SPA Layout Styles - extracted from spa.html */

body {
    display: block;
    align-items: initial;
    justify-content: initial;
    padding: 40px 20px;
    height: auto;
    background: #e1e1e1;
}

.spa-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.spa-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    gap: 16px;
}

.spa-nav .nav-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    border: none;
    background: #59b2e4;
    color: #fff !important;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover:not(.disabled) {
    background: #3d84ae;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-btn.disabled,
.nav-btn[disabled] {
    background: #c5d4df;
    color: #5d6d7c !important;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.nav-btn.active {
    background: #ffa841;
}

/* Color Variants */
.nav-btn.btn-warning {
    background: #f59e0b;
}

.nav-btn.btn-warning:hover {
    background: #d97706;
}

.nav-btn.btn-success {
    background: #10b981;
}

.nav-btn.btn-success:hover {
    background: #059669;
}

.nav-btn.btn-danger {
    background: #ef4444;
}

.nav-btn.btn-danger:hover {
    background: #dc2626;
}

.nav-btn.btn-ghost {
    background: #f1f5f9;
    color: #475569 !important;
}

.nav-btn.btn-ghost:hover {
    background: #e2e8f0;
}


.spa-nav .auth-state {
    font-size: 14px;
    font-weight: 500;
    color: #343e52;
}

.spa-main {
    min-height: 60vh;
}

.spa-view {
    margin: 0 auto;
}

.spa-view[hidden] {
    display: none;
}

.flash-message[hidden] {
    display: none;
}

.autocomplete-dropdown[hidden] {
    display: none;
}

.empty-hint {
    font-size: 13px;
    color: #5d6d7c;
    opacity: 0.7;
    margin-top: 8px;
}

.sign-in-container {
    margin: 0 auto;
    height: auto;
    max-height: none;
}

.profile-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.profile-switch span {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f7e8e;
}

.profile-switch-buttons {
    display: flex;
    gap: 6px;
}

.profile-tile {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: linear-gradient(145deg, #f5f7fa, #cdd1d6);
    border: 1px solid #b3bac1;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.profile-tile.active {
    border-color: #58b2e4;
    box-shadow: inset 0 0 0 2px #58b2e4;
}

.profile-tile:focus-visible {
    outline: 2px solid #ffa841;
    outline-offset: 2px;
}

.skill-panel {
    margin: 0 auto;
}

.skill-tags2 li.removed-skill {
    border: 1px solid #f87171 !important;
}

.skill-profile {
    margin-top: auto;
}

.add-skill-form {
    position: relative;
}

/* Admin Dashboard Styles */
.admin-dashboard {
    display: grid;
    gap: 26px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    color: #343e52;
    border: 1px solid #eef1f5;
    box-shadow: 0 16px 28px rgba(52, 62, 82, 0.12);
}

.admin-dashboard header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.admin-dashboard header h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    color: #2e3650;
}

.admin-dashboard header p {
    margin: 8px 0 0;
    max-width: 520px;
    color: #6f7e8e;
    line-height: 1.6;
}

.admin-dashboard .dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.admin-dashboard .metric-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #e4e9f2;
    outline: 1px solid rgba(93, 142, 186, 0.18);
    outline-offset: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-dashboard .metric-card h3 {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fa3b6;
}

.admin-dashboard .metric-card .metric-value {
    display: block;
    margin: 10px 0 6px;
    font-size: 30px;
    font-weight: 600;
    color: #2e3650;
}

.admin-dashboard .metric-card p {
    margin: 0;
    font-size: 12px;
    color: #6f7e8e;
}

.admin-dashboard .insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.admin-dashboard .insight-panel {
    background: #fdfefe;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5ecf5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-dashboard .insight-panel h4 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #2e3650;
}

.admin-dashboard .pill-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.admin-dashboard .pill-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ecf5fb;
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid #d5e4f4;
    color: #2e3650;
}

.admin-dashboard .pill-list span {
    font-weight: 500;
}

.admin-dashboard .pill-count {
    background: #ffffff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #437abf;
    border: 1px solid #d5e4f4;
}

.admin-dashboard .pill-list.pill-top-skills li {
    background: #fff7ed;
    border-color: #f1b373;
    color: #a15a1f;
}

.admin-dashboard .pill-list.pill-top-skills .pill-count {
    color: #bf6b15;
    border-color: #f1b373;
    background: #ffe8cf;
}

.admin-dashboard .dashboard-table {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e4e9f2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-dashboard table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-dashboard thead {
    background: #f3f8ff;
    color: #437abf;
}

.admin-dashboard th,
.admin-dashboard td {
    padding: 13px 16px;
    border-bottom: 1px solid #e4e9f2;
    text-align: left;
    vertical-align: top;
    color: #475569;
}

.admin-dashboard tbody tr:last-child td {
    border-bottom: none;
}

.admin-dashboard .skill-chip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-dashboard .skill-chip-list li {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    color: #2e3650;
    border: 1px solid #dbe3ec;
}

.admin-dashboard .skill-chip-list.skill-chip-core li {
    border-color: #59b2e4;
    background: #eff6fb;
    color: #1f4f7a;
}

.admin-dashboard .skill-chip-list.skill-chip-growth li {
    border-color: #f1b373;
    background: #fff7ed;
    color: #a15a1f;
}

.admin-dashboard .skill-chip-list li.skill-added {
    border: 3px solid #22c55e;
    background: #f0fdf4;
    color: #166534;
}

.admin-dashboard .skill-chip-list li.skill-removed {
    border: 3px solid #ef4444;
    background: #fef2f2;
    color: #991b1b;
    text-decoration: line-through;
}

.admin-dashboard .empty-state {
    color: #97a4b5;
    font-style: italic;
}

.admin-dashboard .username {
    display: block;
    color: #59b2e4;
    font-size: 13px;
}

.admin-dashboard .table-scroll {
    overflow-x: auto;
}

.admin-dashboard .lozenge {
    background: #ecf5fb;
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 16px;
    border: 1px solid #d5e4f4;
    outline: 1px solid rgba(93, 142, 186, 0.24);
    outline-offset: 3px;
    color: #2e3650;
    min-width: 220px;
}

.admin-dashboard .lozenge span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6f7e8e;
}

.admin-dashboard .lozenge strong {
    font-size: 18px;
    font-weight: 600;
    color: #2e3650;
}

.export-btn {
    background: #59b2e4;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.export-btn:hover {
    background: #3d84ae;
}

@media (max-width: 900px) {
    .admin-dashboard {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .admin-dashboard {
        padding: 20px;
    }

    .admin-dashboard header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-dashboard table {
        min-width: 100%;
    }
}