:root {
    /* Foundation Assessment Tool - Industrial/Utility Aesthetic */
    --primary: #0052CC;
    --primary-light: #DEEBFF;
    --success: #36B37E;
    --warning: #FFAB00;
    --danger: #FF5630;
    --bg-main: #F4F5F7;
    --bg-card: #FFFFFF;
    --text-main: #172B4D;
    --text-muted: #6B778C;
    --border-color: #DFE1E6;
    --sidebar-width: 280px;
    --radius: 4px;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
}

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

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: #0747A6;
    color: white;
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-group {
    margin-bottom: var(--space-xl);
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-sm);
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    margin-bottom: 4px;
    transition: background 0.2s;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active {
    background-color: var(--primary);
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: var(--space-xl);
    max-width: calc(100vw - var(--sidebar-width));
}

header {
    margin-bottom: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-info h1 {
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.header-info p {
    color: var(--text-muted);
}

.assessment-progress {
    text-align: right;
    width: 300px;
}

.progress-bar-container {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin-top: var(--space-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    width: 35%; /* Hardcoded for demo */
}

/* Card Styling */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow);
}

/* Question Section */
.pillar-section {
    margin-bottom: var(--space-xl);
}

.pillar-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--primary);
    margin-bottom: var(--space-lg);
}

.pillar-title h2 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-block {
    margin-bottom: var(--space-xl);
}

.question-text {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

/* Table Design for Checkpoints */
.checkpoint-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-md);
    background: white;
}

.checkpoint-table th {
    background: #F4F5F7;
    text-align: left;
    padding: var(--space-md);
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
}

.checkpoint-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.checkpoint-table tr:hover {
    background-color: #fafbfc;
}

/* Form Elements */
.input-score {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    font-weight: bold;
}

.textarea-field {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.date-field {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
}

/* Status Badges */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending { background: #EBECF0; color: #42526E; }
.badge-action-needed { background: var(--primary-light); color: var(--primary); }
.badge-warning { background: #FFE380; color: #594300; }
.badge-pass { background: #E3FCEF; color: #006644; }
.badge-danger { background: #FFEBE6; color: #BF2600; }

/* Lead Action Plan Specifics */
.lead-header {
    background: #fff;
    padding: var(--space-lg);
    border-bottom: 2px solid var(--primary);
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary-stats {
    display: flex;
    gap: var(--space-xl);
}
.stat-item {
    text-align: center;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Utilities */
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; }
.gap-md { gap: var(--space-md); }
.mt-md { margin-top: var(--space-md); }
.mb-xs { margin-bottom: var(--space-xs); }
.m-0 { margin: 0; }
.w-full { width: 100%; }
.text-right { text-align: right; }

/* Action Plan Section (Summary) */
.action-plan-summary {
    background: #091E42;
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius);
    margin-top: var(--space-xl);
}

.action-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.btn {
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-primary { background: var(--primary); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-outline { background: transparent; border: 1px solid white; color: white; }

.placeholder-icon {
    width: 20px;
    height: 20px;
    background: currentColor;
    opacity: 0.2;
    border-radius: 3px;
}

/* Custom icons via SVG */
.icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}
