* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.5;
}

.header {
    background-color: #0f4c81;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.logo-placeholder {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.1;
    border-right: 1px solid rgba(255,255,255,0.3);
    padding-right: 1rem;
}

.logo-sub {
    font-size: 0.875rem;
    font-weight: 400;
}

h1 {
    font-size: 1.75rem;
    font-weight: 500;
}

.container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    flex-shrink: 0;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.input-section {
    margin-bottom: 2rem;
}

.input-section h2 {
    font-size: 1.125rem;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.25rem;
}

.input-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    color: #0f172a;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
}

.tax-rates {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.calculated-values {
    background: #f1f5f9;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.calculated-values h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.calc-row strong {
    color: #0f172a;
}

/* Main Content Styles */
.circles-board {
    flex-grow: 1;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.grid-headers {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr;
    gap: 1rem;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.col-header h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.col-header span {
    font-size: 0.875rem;
    color: #64748b;
}

.scenario-row {
    display: grid;
    grid-template-columns: 200px 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.scenario-row:last-child {
    border-bottom: none;
}

.scenario-info h4 {
    color: #0ea5e9;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.scenario-val, .scenario-val-alt {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.scenario-sub {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.circle-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Circles */
.circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease;
}

.circle:hover {
    transform: scale(1.05);
}

.circle-heirs {
    background: #00aee6; /* Light Blue */
}

.circle-charity {
    background: #007a86; /* Teal */
}

.circle-taxes {
    background: #003057; /* Dark Blue */
}

.c-val {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.c-desc {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.2;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: #e2e8f0;
    color: #475569;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s, color 0.2s;
}
.tab:hover {
    background: #cbd5e1;
}
.tab.active {
    background: #0f4c81;
    color: white;
}

/* Table View */
.table-view {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: right;
    white-space: nowrap;
}
.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}
.data-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    text-align: center;
}
.data-table td:first-child {
    text-align: center;
    font-weight: 600;
}
.data-table tr:hover td {
    background: #f1f5f9;
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .calculated-values {
        grid-column: 1 / -1;
        margin-top: 0;
    }
    
    .circle {
        width: 150px;
        height: 150px;
    }
    
    .c-val {
        font-size: 1.25rem;
    }
}

/* =========================================
   LOGIN SCREEN STYLES
   ========================================= */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f4c81 0%, #0087a1 100%);
}

.login-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo .logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0f4c81;
}

.login-card h2 {
    color: #0f4c81;
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 1.5rem;
}

.login-card p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 30px;
}

.login-card .input-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-card .input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.login-card .input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.login-card .input-group input:focus {
    outline: none;
    border-color: #0f4c81;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.15);
    background: #ffffff;
}

.login-card .btn-primary {
    width: 100%;
    padding: 14px;
    background-color: #0f4c81;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 10px;
}

.login-card .btn-primary:hover {
    background-color: #0b3d68;
}

.login-error {
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    display: none; /* Controlled via JS */
}

.btn-signout {
    padding: 0.5rem 1rem;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-signout:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

