:root {
    --primary: #1a2332;
    --primary-light: #2d3e50;
    --accent: #0077b6;
    --accent-light: #00b4d8;
    --success: #06d6a0;
    --warning: #ffd60a;
    --danger: #ef476f;
    --bg: #f8f9fa;
    --bg-card: #ffffff;
    --text: #1a2332;
    --text-light: #6c757d;
    --border: #e9ecef;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ─── Landing Page ───────────────────────────────────── */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.landing-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-logo-icon {
    font-size: 1.5rem;
    color: var(--accent-light);
}

.landing-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.landing-logo-accent {
    color: var(--accent-light);
    font-weight: 300;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.landing-nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: var(--accent-light);
}

.btn-signin {
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-signin:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1b3a4b 100%);
    padding: 8rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 180%;
    background: radial-gradient(ellipse, rgba(0,119,182,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(0,180,216,0.15);
    border: 1px solid rgba(0,180,216,0.3);
    color: var(--accent-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-accent {
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.btn-hero-primary {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,119,182,0.4);
}

.btn-hero-secondary {
    padding: 0.85rem 2rem;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-hero-secondary:hover {
    border-color: var(--accent-light);
    color: var(--accent-light);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 700px;
}

.hero-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 0.2rem;
}

.hero-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services-section {
    padding: 5rem 0;
    background: var(--bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1rem;
}

.service-features li {
    font-size: 0.82rem;
    color: var(--text);
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.service-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.service-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
}

.service-status.available {
    background: rgba(6,214,160,0.1);
    color: var(--success);
}

.service-status.coming {
    background: rgba(108,117,125,0.1);
    color: var(--text-light);
}

/* Standards */
.standards-section {
    padding: 5rem 0;
    background: white;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.standard-card {
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.standard-card:hover {
    border-color: var(--accent);
    background: rgba(0,119,182,0.02);
}

.standard-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.standard-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* About */
.about-section {
    padding: 5rem 0;
    background: var(--bg);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-highlights {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-highlight {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
}

.about-highlight strong {
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.about-highlight span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* CTA */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-content p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Landing Footer */
.landing-footer {
    padding: 2rem 0;
    background: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-content p {
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-brand .landing-logo-icon { font-size: 1.2rem; }
.footer-brand .landing-logo-text { font-size: 1.1rem; }

/* Login back link */
.login-footer-link {
    text-align: center;
    margin-top: 1rem;
}

.login-footer-link a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.login-footer-link a:hover {
    text-decoration: underline;
}

/* Landing responsive */
@media (max-width: 900px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .standards-grid { grid-template-columns: 1fr 1fr; }
    .landing-nav-links a:not(:last-child) { display: none; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 1.75rem; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .standards-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .footer-content { flex-direction: column; text-align: center; }
}

/* ─── Header ─────────────────────────────────────────── */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 1.5rem 2rem;
    color: white;
}

.header-content { max-width: 1400px; margin: 0 auto; }

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon { font-size: 1.75rem; color: var(--accent-light); }
.logo h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }
.logo .pro { color: var(--accent-light); font-weight: 300; }
.tagline { margin-top: 0.2rem; color: rgba(255,255,255,0.7); font-size: 0.85rem; }

/* ─── Tabs ───────────────────────────────────────────── */
nav.tabs {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.tab {
    padding: 0.9rem 1.5rem;
    border: none;
    background: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab:hover:not(.disabled) { color: var(--accent); background: rgba(0,119,182,0.04); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab.disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Main ───────────────────────────────────────────── */
main { max-width: 1400px; margin: 0 auto; padding: 1.5rem 2rem; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Client Welcome Banner ──────────────────────────── */
.client-welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.welcome-banner-left h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.welcome-banner-left p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
}

.welcome-banner-right {
    display: flex;
    gap: 1.5rem;
}

.welcome-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.5rem;
}

.welcome-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.welcome-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
}

/* ─── Context Bar ────────────────────────────────────── */
.context-bar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.context-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.context-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.context-group select {
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    min-width: 180px;
    background: white;
}

.context-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--accent);
    background: white;
    color: var(--accent);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon:hover { background: var(--accent); color: white; }
.btn-icon:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-icon:disabled:hover { background: white; color: var(--accent); }

/* ─── Empty State ────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px dashed var(--border);
}

.empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h2 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-light); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ─── Buttons ────────────────────────────────────────── */
.btn-primary {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,119,182,0.3); }

.btn-secondary {
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover { background: var(--accent-light); }

.btn-export {
    padding: 0.6rem 1.2rem;
    border: 1.5px solid var(--border);
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-export:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm.btn-danger:hover { border-color: var(--danger); color: var(--danger); }

/* ─── Workspace ──────────────────────────────────────── */
.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.workspace-header h2 { font-size: 1.4rem; font-weight: 700; }
.report-meta { font-size: 0.82rem; color: var(--text-light); margin-top: 0.2rem; }
.workspace-actions { display: flex; gap: 0.75rem; }

/* ─── Aggregated Summary ─────────────────────────────── */
.aggregated-summary {
    margin-bottom: 1.5rem;
}

.aggregated-summary h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}

.summary-card.liability { border-left-color: var(--danger); }
.summary-card.interest { border-left-color: var(--warning); }
.summary-card.depreciation { border-left-color: var(--success); }

.card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-value {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* ─── Lease Cards ────────────────────────────────────── */
.lease-list { display: flex; flex-direction: column; gap: 1rem; }

.lease-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.lease-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lease-card-header h4 { font-size: 1rem; font-weight: 600; }
.lease-meta { font-size: 0.78rem; color: var(--text-light); margin-top: 0.15rem; display: block; }
.lease-card-actions { display: flex; gap: 0.4rem; }

.lease-card-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg);
}

.mini-card { display: flex; flex-direction: column; }
.mini-label { font-size: 0.72rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.3px; }
.mini-value { font-size: 1rem; font-weight: 600; margin-top: 0.1rem; }

.lease-detail { padding: 1.5rem; border-top: 1px solid var(--border); }

.empty-leases {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px dashed var(--border);
    color: var(--text-light);
}

/* ─── Schedule Tables ────────────────────────────────── */
.schedule-section-inline { overflow-x: auto; }

.schedule-section-inline h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.lease-info-bar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.totals-row {
    margin-bottom: 0;
}

.schedule-totals {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.schedule-totals th {
    background: var(--primary) !important;
    color: white !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.opening-row {
    background: var(--bg);
    font-weight: 600;
}

.journal-entries { margin-bottom: 1rem; }
.journal-entries h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; }

.journal-table { width: 100%; border-collapse: collapse; max-width: 500px; }
.journal-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    padding: 0.6rem 0.75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}
.journal-table td { padding: 0.5rem 0.75rem; font-size: 0.85rem; border-bottom: 1px solid var(--border); }
.dr { color: var(--accent); font-weight: 500; }
.cr { color: var(--danger); font-weight: 500; }

.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.schedule-table th {
    text-align: right;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    padding: 0.6rem 0.5rem;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.schedule-table th:first-child { text-align: center; }
.schedule-table td { text-align: right; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.schedule-table td:first-child { text-align: center; }
.schedule-table tbody tr:hover { background: rgba(0,119,182,0.03); }

/* ─── Modals ─────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-wide { max-width: 560px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 { font-size: 1.15rem; font-weight: 600; }

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s;
}

.modal-close:hover { background: var(--danger); color: white; }

/* ─── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 500px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ─── Coming Soon ────────────────────────────────────── */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.coming-soon p { color: var(--text-light); font-size: 1.1rem; margin-top: 0.5rem; }

/* ─── Login Screen ───────────────────────────────────── */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--bg);
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

.login-branding {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1b3a4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0,119,182,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 400px;
}

.login-logo-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logo-icon-lg {
    font-size: 2.5rem;
    color: var(--accent-light);
}

.login-logo-large h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.login-logo-large .pro {
    color: var(--accent-light);
    font-weight: 300;
}

.branding-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2.5rem;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
}

.feature-check {
    width: 24px;
    height: 24px;
    background: rgba(0,180,216,0.2);
    border: 1px solid rgba(0,180,216,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--accent-light);
    flex-shrink: 0;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.login-card-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.login-logo-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-logo-sm .logo-icon { font-size: 1.5rem; color: var(--accent); }
.login-logo-sm h2 { font-size: 1.2rem; font-weight: 700; color: var(--text); }
.login-logo-sm .pro { color: var(--accent); font-weight: 300; }

.login-subtitle {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.login-footer p {
    font-size: 0.75rem;
    color: var(--text-light);
}

.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.btn-full { width: 100%; }

@media (max-width: 900px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }
    .login-branding {
        display: none;
    }
}

/* ─── Header User Bar ────────────────────────────────── */
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.role-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.role-admin { background: var(--warning); color: var(--primary); }
.role-client { background: var(--accent-light); color: white; }

.btn-logout {
    padding: 0.4rem 0.9rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover { background: rgba(255,255,255,0.2); }

/* ─── Admin Panel ────────────────────────────────────── */
.admin-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.admin-header h2 { font-size: 1.3rem; font-weight: 700; }

.admin-table-wrapper { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.admin-table code {
    background: var(--bg);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.82rem;
}

.admin-table tr:hover { background: rgba(0,119,182,0.02); }

.text-muted { color: var(--text-light); font-size: 0.82rem; }

.modal-info {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ─── Client Login Display ───────────────────────────── */
.client-id-display {
    margin-bottom: 1.25rem;
}

.client-welcome-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(0,119,182,0.06), rgba(0,180,216,0.06));
    border: 1.5px solid rgba(0,119,182,0.15);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.1rem;
}

.client-welcome-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.client-welcome-text {
    display: flex;
    flex-direction: column;
}

.client-welcome-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.client-welcome-id {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

/* ─── Admin Table Links ──────────────────────────────── */
.client-link {
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.client-link:hover { text-decoration: underline; }

.btn-copy {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.3rem;
}

.btn-copy:hover { background: var(--bg); }

/* ─── Form Hints ─────────────────────────────────────── */
.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 0.3rem;
    font-family: monospace;
}

/* ─── Footer ─────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.82rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

/* ─── Search Input ───────────────────────────────────── */
.search-input {
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    min-width: 250px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.1);
}

/* ─── Workspace Toolbar ─────────────────────────────── */
.workspace-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

/* ─── Selection Bar ─────────────────────────────────── */
.selection-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.selection-count {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.selection-actions {
    display: flex;
    gap: 0.5rem;
}

/* ─── Lease Checkbox ────────────────────────────────── */
.lease-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.lease-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.lease-card-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lease-card.lease-selected {
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 3px rgba(0,119,182,0.08);
}

/* ─── Report View ───────────────────────────────────── */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.report-header h2 { font-size: 1.4rem; font-weight: 700; }

.report-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    header { padding: 1rem; }
    nav.tabs { padding: 0 1rem; }
    main { padding: 1rem; }
    .context-bar { padding: 0.75rem 1rem; }
    .summary-cards { grid-template-columns: 1fr 1fr; }
    .lease-card-summary { grid-template-columns: 1fr 1fr; }
    .search-input { min-width: 180px; }
}

@media (max-width: 480px) {
    .summary-cards { grid-template-columns: 1fr; }
    .context-bar { flex-direction: column; align-items: stretch; }
    .context-group { flex-wrap: wrap; }
    .workspace-toolbar { flex-direction: column; align-items: stretch; }
    .search-input { min-width: unset; width: 100%; }
}
