/* ==========================================================================
   AdviserCheck — Shared Styles
   Imported by all HTML templates via <link rel="stylesheet" href="/static/css/styles.css">
   ========================================================================== */

/* --- Reset & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
}

/* --- Layout --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Header --- */
header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
header h1 {
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 32px;
    font-weight: 700;
}
header p {
    color: #546e7a;
    font-size: 15px;
    margin-bottom: 8px;
}

.mode-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

/* --- Header Controls (logout + credit badge) --- */
.header-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    background: white;
    color: #546e7a;
    border: 2px solid #cfd8dc;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.logout-btn:hover {
    background: #f5f5f5;
    border-color: #b0bec5;
    color: #1a1a2e;
}

.credit-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .header-controls {
        position: static;
        justify-content: center;
        margin-top: 8px;
        flex-wrap: wrap;
    }
    .credit-badge {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* --- Navigation Buttons --- */
.nav-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-secondary {
    background: white;
    color: #1565c0;
    border: 2px solid #1565c0;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-align: center;
}
.btn-secondary:hover {
    background: #e3f2fd;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.15);
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: 40px;
    color: #90a4ae;
    font-size: 13px;
}
