﻿:root {
    --primary-blue: #0d6efd;
    --primary-dark: #0b5ed7;
    --soft-blue: #e7f1ff;
    --sidebar-dark: #1f2937;
    --sidebar-darker: #111827;
    --border-light: #d0e2ff;
    --success-green: #198754;
    --danger-red: #dc3545;
    --text-dark: #1f2937;
}

/* ======================
   Global
====================== */
body {
    margin: 0;
    background-color: #f4f6f9;
    font-family: "Segoe UI", Tahoma, Arial;
    color: var(--text-dark);
}

/* ======================
   Main Layout
====================== */
.hse-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ======================
   Sidebar
====================== */
.hse-sidebar {
    width: 240px;
    background-color: var(--sidebar-dark);
    color: #fff;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    font-weight: 700;
    background-color: var(--sidebar-darker);
}

.sidebar-menu a {
    display: block;
    padding: 12px 18px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 15px;
}

    .sidebar-menu a:hover {
        background-color: #374151;
        color: #fff;
    }

.sidebar-menu hr {
    border-color: #374151;
    margin: 10px 0;
}

/* ======================
   Content Area
====================== */
.hse-content {
    flex: 1;
    padding: 24px;
    overflow-x: hidden;
}

/* ======================
   Page Title
====================== */
.page-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

/* ======================
   Cards
====================== */
.card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background-color: #fff;
}

.card-body {
    padding: 20px;
}

/* ======================
   Section Header (Inspection Sections)
====================== */
.section-header {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 10px 15px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
}

/* ======================
   Tables
====================== */
.table {
    margin-bottom: 0;
}

    .table thead {
        background-color: var(--soft-blue);
        color: var(--primary-dark);
        font-weight: 600;
    }

    .table td,
    .table th {
        vertical-align: middle;
    }

/* ======================
   Radios (Yes / No / NA)
====================== */
.form-check-input:checked[value="Y"] {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

.form-check-input:checked[value="N"] {
    background-color: var(--danger-red);
    border-color: var(--danger-red);
}

.form-check-input:checked[value="NA"] {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* ======================
   Buttons
====================== */
.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
    }

.btn-success {
    background-color: var(--success-green);
    border-color: var(--success-green);
}

/* ======================
   Empty State
====================== */
.empty-state {
    background-color: #f8fafc;
    border-radius: 8px;
}

.empty-icon {
    font-size: 48px;
    opacity: 0.6;
}

.card h4 {
    color: #0d6efd;
    font-weight: 700;
}


.dashboard-card {
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    text-align: center;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .dashboard-card .icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .dashboard-card .value {
        font-size: 32px;
        font-weight: 700;
    }

    .dashboard-card .label {
        font-size: 14px;
        opacity: 0.9;
    }

    /* ألوان */
    .dashboard-card.blue {
        background: linear-gradient(135deg, #0d6efd, #084298);
    }

    .dashboard-card.green {
        background: linear-gradient(135deg, #198754, #0f5132);
    }

    .dashboard-card.orange {
        background: linear-gradient(135deg, #fd7e14, #b45309);
    }

    .dashboard-card.gray {
        background: linear-gradient(135deg, #6c757d, #343a40);
    }

.inspector-card {
    display: block;
    border: 1px solid #d0e2ff;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: 0.2s;
    background: #f8fbff;
    height: 100%;
}

    .inspector-card:hover {
        border-color: #0d6efd;
        box-shadow: 0 4px 12px rgba(13,110,253,0.08);
    }

    .inspector-card input {
        display: none;
    }

.inspector-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inspector-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e7f1ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.inspector-name {
    font-weight: 600;
}

.inspector-sub {
    font-size: 13px;
    color: #6c757d;
}

.inspector-card input:checked + .inspector-body {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    padding: 10px;
    border-radius: 8px;
}

    .inspector-card input:checked + .inspector-body .inspector-avatar {
        background: rgba(255,255,255,0.2);
        color: white;
    }

.table td .btn {
    min-width: 34px;
    padding: 4px 6px;
}

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
}

.right-header {
    text-align: right;
    line-height: 1.8;
    font-weight: bold;
}

.company-name {
    font-size: 16px;
}

.department-name {
    font-size: 14px;
}

.left-header {
    text-align: left;
    font-size: 12px;
}

.system-name {
    font-weight: bold;
}

.print-date {
    color: #444;
}
