/* TAA Impact Report — Custom Styles (extends Pico CSS) */

:root {
    --taa-blue: #009fe0;
    --taa-blue-dark: #0088c2;
    --taa-green: #41b93d;
    --taa-yellow: #fccc03;
    --taa-red: #ec0d57;
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-page > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    max-width: 400px;
    margin: 0 auto;
}

.login-card header {
    text-align: center;
}

/* Blue accent line at top — like the report HTML */
.login-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--taa-blue), var(--taa-blue-dark));
    border-radius: 2px;
    margin: -20px -20px 24px -20px;
}

.login-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

/* Horizontal divider between logo and title */
.login-divider {
    width: 40px;
    height: 2px;
    background-color: var(--taa-blue);
    opacity: 0.4;
    border-radius: 1px;
    margin: 0 auto 16px;
}

.login-card header h2 {
    color: var(--taa-blue);
    margin-bottom: 4px;
    font-size: 1.3rem;
}

.login-card header .muted {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.login-footer {
    text-align: center;
    margin-top: 32px;
}

/* Top accent bar — consistent blue line across all pages */
.top-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--taa-blue), var(--taa-blue-dark));
}

/* Navigation */
nav .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.brand-divider {
    width: 2px;
    height: 28px;
    background-color: var(--taa-blue);
    opacity: 0.5;
    border-radius: 1px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    color: var(--taa-blue);
    font-size: 1rem;
}

.brand-text small {
    color: #666;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Sheets dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 180px;
    padding: 8px 0;
    z-index: 100;
    list-style: none;
    margin: 0;
}

.nav-dropdown-menu li {
    padding: 0;
    margin: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background-color: #f0f7ff;
    color: var(--taa-blue);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

/* Flash messages */
.flash-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.flash-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.flash-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-green {
    background-color: #e8f5e9;
    color: var(--taa-green);
}

.status-yellow {
    background-color: #fff8e1;
    color: #f59e0b;
}

.status-red {
    background-color: #ffebee;
    color: var(--taa-red);
}

/* Generate button */
.generate-btn {
    background-color: var(--taa-blue);
    border-color: var(--taa-blue);
    font-size: 16px;
    padding: 12px 32px;
}

.generate-btn:hover {
    background-color: var(--taa-blue-dark);
    border-color: var(--taa-blue-dark);
}

/* Small button */
.small-btn {
    padding: 4px 12px;
    font-size: 12px;
}

/* Required indicator */
.required {
    color: var(--taa-red);
}

/* Muted text */
.muted {
    color: #999;
}

/* Dashboard */
fieldset {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

fieldset legend {
    padding: 0 8px;
}

/* Preview page */
.preview-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px 0;
}

.preview-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-meta h2 {
    margin: 0;
    font-size: 1.3rem;
}

.preview-actions {
    display: flex;
    gap: 8px;
}

.preview-actions a[role="button"] {
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
}

/* Report iframe */
.report-iframe {
    width: 100%;
    height: 80vh;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background-color: #f4f4f7;
}

/* History table */
figure {
    overflow-x: auto;
}

/* Filter bar */
.filter-bar {
    margin-bottom: 16px;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.filter-bar label {
    margin-bottom: 0;
}

.filter-bar small {
    color: #999;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 24px 0;
    margin-top: 48px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

