/* ============================================================
   Network Controls Skills — Stylesheet
   Professional dark navy/slate with gold accents
   ============================================================ */

:root {
    --primary: #1a2332;
    --primary-light: #2d3e50;
    --accent: #e8b923;
    --accent-hover: #d4a91f;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #fd7e14;
    --info: #17a2b8;
    --bg: #f4f6f8;
    --card-bg: #ffffff;
    --text: #2c3e50;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --sidebar-width: 260px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--accent); }

/* ============================================================
   Layout
   ============================================================ */

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: #fff;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    flex-shrink: 0;
}

.sidebar-header h2 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.sidebar-header small {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

.nav-menu {
    list-style: none;
    padding: 8px 0;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.nav-section-wrap {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section-items {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-section-items.collapsed {
    display: none;
}

.nav-menu::-webkit-scrollbar {
    width: 5px;
}

.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.nav-menu li a {
    display: block;
    padding: 7px 18px;
    color: rgba(255,255,255,0.8);
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.88rem;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--accent);
}

.nav-menu li a i {
    width: 24px;
    display: inline-block;
    text-align: center;
    margin-right: 8px;
}

.nav-menu .nav-section {
    padding: 10px 18px 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(232, 185, 35, 0.55);
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 4px;
    pointer-events: none;
}

.nav-menu .nav-section.nav-collapsible {
    pointer-events: auto;
    padding-right: 12px;
    transition: color 0.2s;
    cursor: pointer;
    user-select: none;
}
.nav-menu .nav-section.nav-collapsible:hover {
    color: rgba(232, 185, 35, 0.85);
}

/* ---- Popup Lists ---- */
.review-emp-item:hover {
    background: #f0f4f8;
}

/* ---- Skills Matrix ---- */
.tier-header {
    transition: filter 0.15s;
}
.tier-header:hover {
    filter: brightness(1.15);
}
.tier-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    background: var(--primary);
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
    min-height: 100vh;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.topbar h1 {
    font-size: 1.6rem;
    color: var(--primary);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================================
   Cards & Panels
   ============================================================ */

.card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    background: var(--primary-light);
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* ============================================================
   Tables
   ============================================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.data-table tr:hover {
    background: #f8f9fa;
}

.data-table .actions {
    white-space: nowrap;
    min-width: 220px;
}

/* ============================================================
   Forms
   ============================================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-light);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
}

.btn-accent:hover {
    background: var(--accent-hover);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-warning {
    background: var(--warning);
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ============================================================
   Alerts
   ============================================================ */

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #d4edda;
    border-color: var(--success);
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: var(--danger);
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: var(--warning);
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: var(--info);
    color: #0c5460;
}

/* ============================================================
   Status Badges
   ============================================================ */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-not_started { background: #e9ecef; color: #495057; }
.badge-in_training { background: #cce5ff; color: #004085; }
.badge-ready_for_signoff { background: #fff3cd; color: #856404; }
.badge-signed_off { background: #d4edda; color: #155724; }

/* ============================================================
   Skill Matrix Grid
   ============================================================ */

.matrix-category {
    margin-bottom: 30px;
}

.matrix-category h4 {
    background: var(--primary);
    color: var(--accent);
    padding: 12px 15px;
    margin: 0;
    font-size: 1rem;
    border-radius: 5px 5px 0 0;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 0 0 5px 5px;
    overflow: hidden;
}

.matrix-table th,
.matrix-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.matrix-table th {
    background: #f8f9fa;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.matrix-table .skill-name {
    font-weight: 500;
}

.matrix-table .signoff-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.matrix-table .signoff-info strong {
    color: var(--text);
}

/* ============================================================
   Login Page
   ============================================================ */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.login-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 420px;
}

.login-box h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 5px;
}

.login-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo span {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    line-height: 60px;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

/* ============================================================
   Dashboard Stats
   ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--accent);
}

.stat-card h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================================
   Print Styles
   ============================================================ */

@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-content { margin-left: 0; padding: 0; }
    .card { box-shadow: none; border: 1px solid #ccc; }
    body { background: #fff; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
    .sidebar { width: 100%; position: relative; height: auto; }
    .main-content { margin-left: 0; }
    .wrapper { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Logo Styles
   ============================================================ */

.sidebar-logo {
    background: #fff;
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo img {
    max-width: 100%;
    height: auto;
    max-height: 220px;
    display: block;
    margin: 0 auto;
}

.sidebar-logo-text {
    text-align: center;
    padding: 10px 15px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo-text h2 {
    font-size: 1.1rem;
    color: var(--accent);
    margin: 0;
}

.sidebar-logo-text small {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

.login-logo-img {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo-img img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
    margin: 0 auto;
}

