@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1b5b6b; /* Dark Teal */
    --primary-hover: #154c59; 
    --bg-color: #ffffff; /* White background everywhere */
    --card-bg: #ffffff;
    --text-main: #333333; 
    --text-muted: #64748b; 
    --border-color: #e2e8f0; 
    --danger: #ef4444; 
    --success: #10b981; 
    --warning: #f59e0b;
    --info-bg: #eef6f6; /* Light teal for info boxes */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Full Width Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Header (Corporate Full Width) */
.app-header {
    background: var(--primary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.header-title-container h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}
.header-title-container h1 a {
    color: white;
    text-decoration: none;
}

.header-subtitle {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* Main Content Wrapper */
main {
    padding: 2rem;
    max-width: 1400px;
}

/* Form Styles */
.assessment-form {
    background: var(--card-bg);
}

.form-header {
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-main);
    font-size: 1.05rem;
}

/* Indicator Grid Layout */
.indicator-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.indicator-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}
.indicator-row:last-child {
    border-bottom: none;
}

.indicator-label {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    width: 250px;
    flex-shrink: 0;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.indicator-value {
    padding: 1rem;
    flex-grow: 1;
    background-color: white;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Inputs */
input[type="text"], input[type="email"], input[type="date"], select {
    width: 100%;
    max-width: 500px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(27, 91, 107, 0.2);
}

/* Radio buttons */
.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Drafting Prompts (Accordion) */
.drafting-prompts {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    background-color: #fafafa;
}
.drafting-prompts summary {
    padding: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    list-style: none; /* Hide default arrow in some browsers */
}
.drafting-prompts summary::-webkit-details-marker {
    display: none;
}
.drafting-prompts summary::before {
    content: "▶";
    font-size: 0.8rem;
    margin-right: 0.5rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.drafting-prompts[open] summary::before {
    transform: rotate(90deg);
}

.drafting-content {
    padding: 0 1rem 1rem 1rem;
}

/* Info Box */
.info-box {
    background-color: var(--info-bg);
    border-radius: 4px;
    padding: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.info-box h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.info-box ul {
    margin: 0;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}
.info-box li {
    margin-bottom: 0.5rem;
}

/* Section Subheading */
.section-subheading {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Stacked Question Layout */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.question-block {
    border: 1px solid var(--border-color);
    border-bottom: none;
}
.question-block:last-child {
    border-bottom: 1px solid var(--border-color);
}

.question-label {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.question-answers {
    padding: 0.75rem 1rem;
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    text-decoration: none;
}

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

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-delete {
    background-color: var(--danger);
    color: white;
}
.btn-delete:hover {
    background-color: #dc2626;
}

/* Tables for List page */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}
th, td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}
th {
    background-color: var(--info-bg);
    color: var(--primary-color);
    font-weight: 600;
}

/* Dashboard Risk Colors */
.risk-low {
    background-color: #a7f3d0 !important; /* Light Green */
    color: #064e3b;
}
.risk-medium {
    background-color: #fef08a !important; /* Light Yellow */
    color: #713f12;
}
.risk-high {
    background-color: #fca5a5 !important; /* Light Red */
    color: #7f1d1d;
}

/* Utility */
.hidden { display: none !important; }
.text-danger { color: var(--danger); }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
