/* ============================================
   REPS Compliance Report - Stylesheet
   ============================================ */

:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-hover: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --tb-blue: #0ea5e9;
    --tb-blue-light: #38bdf8;
    --tb-blue-glow: rgba(14, 165, 233, 0.12);
    --tb-indigo: #6366f1;
    --tb-indigo-light: #818cf8;
    --tb-indigo-glow: rgba(99, 102, 241, 0.12);
    
    /* Keep original variables for compatibility */
    --frute-blue: #0ea5e9;
    --frute-blue-light: #38bdf8;
    --frute-blue-glow: rgba(14, 165, 233, 0.12);
    
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-glow: rgba(239, 68, 68, 0.15);
    
    --border-light: rgba(0, 0, 0, 0.08);
    
    --font-display: 'Playfair Display', serif;
    --font-body: 'Sora', sans-serif;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Beautiful soft gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 90%, rgba(14, 165, 233, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
    z-index: -2;
}

/* Subtle geometric grid pattern overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--frute-blue);
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-right: 1px solid rgba(14, 165, 233, 0.15);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar .logo,
.sidebar .nav-item,
.sidebar .back-home-btn {
    color: #ffffff;
}

.sidebar .nav-item {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar .nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar .nav-item.active {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.1));
    color: var(--tb-blue-light);
    border-left: 3px solid var(--tb-blue);
}

.sidebar .back-home-btn {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar .back-home-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 32px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--tb-blue) 0%, var(--tb-indigo) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--frute-blue-glow);
    color: var(--frute-blue);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.back-home-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.back-home-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.back-home-btn svg {
    width: 18px;
    height: 18px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

/* Section */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.section-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
}

.year-selector label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.year-selector select {
    width: auto;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--tb-blue) 0%, var(--tb-indigo) 100%);
    color: white;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(14, 165, 233, 0.35);
}

.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

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

.btn-link {
    background: none;
    color: var(--frute-blue);
    padding: 0;
}

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

/* Compliance Status Card */
.compliance-status-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(14, 165, 233, 0.03) 100%);
    border: 1px solid rgba(14, 165, 233, 0.12);
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.status-indicator {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-indicator svg {
    width: 32px;
    height: 32px;
}

.status-indicator.pending {
    background: var(--warning-glow);
    color: var(--warning);
}

.status-indicator.success {
    background: var(--success-glow);
    color: var(--success);
}

.status-indicator.danger {
    background: var(--danger-glow);
    color: var(--danger);
}

.status-indicator.non-compliant {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.status-indicator.compliant {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.status-content {
    flex: 1;
}

.status-content h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.status-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Status Text Styling */
.status-non-compliant {
    color: #ef4444 !important;
    font-weight: 700;
}

.status-compliant {
    color: #10b981 !important;
    font-weight: 700;
}

.status-in-progress {
    color: var(--warning) !important;
    font-weight: 600;
}

/* Deficit Info */
.deficit-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 8px;
    border-left: 3px solid #ef4444;
}

.deficit-info.compliant {
    background: rgba(16, 185, 129, 0.08);
    border-left-color: #10b981;
}

.deficit-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.deficit-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ef4444;
}

.deficit-info.compliant .deficit-value {
    color: #10b981;
}

.deficit-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-progress {
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 8;
}

.progress-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease;
    filter: drop-shadow(0 0 6px rgba(0, 212, 170, 0.5));
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--tb-blue), var(--tb-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.metrics-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

/* Material Participation Badge */
.material-participation-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 32px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.material-participation-badge svg {
    flex-shrink: 0;
}

.material-participation-badge.achieved {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.material-participation-badge.achieved svg {
    color: var(--success);
}

.metric-card {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.metric-card:hover {
    border-color: var(--tb-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.12);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.metric-icon svg {
    width: 24px;
    height: 24px;
}

.metric-card.qualifying .metric-icon {
    background: var(--success-glow);
    color: var(--success);
}

.metric-card.other-jobs .metric-icon {
    background: var(--frute-blue-glow);
    color: var(--frute-blue);
}

.metric-card.excluded .metric-icon {
    background: var(--danger-glow);
    color: var(--danger);
}

.metric-card.properties-count .metric-icon {
    background: var(--warning-glow);
    color: var(--warning);
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.metric-target, .metric-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* AI Assistant Card */
.ai-assistant-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(99, 102, 241, 0.04) 100%);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.ai-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.ai-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--tb-indigo) 0%, var(--tb-blue) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.ai-avatar svg {
    width: 28px;
    height: 28px;
}

.ai-header h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.ai-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ai-chat {
    background: var(--bg-tertiary);
    border-radius: 16px;
    overflow: hidden;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
}

.chat-message {
    margin-bottom: 16px;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.chat-message.ai .message-content {
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.chat-message.user .message-content {
    background: var(--frute-blue-glow);
    border: 1px solid rgba(45, 127, 249, 0.3);
    padding: 16px 20px;
    border-radius: 16px;
    border-top-right-radius: 4px;
    margin-left: 40px;
}

.chat-input-area {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.chat-input-area textarea {
    flex: 1;
    padding: 14px 18px;
    resize: none;
    min-height: 52px;
    max-height: 120px;
}

.chat-input-area .btn {
    padding: 14px 18px;
}

/* Breakdown Section */
.breakdown-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.breakdown-section.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

.breakdown-card {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, rgba(14, 165, 233, 0.02) 100%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.breakdown-card h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: 10px;
}

.breakdown-item .property-name {
    font-weight: 500;
}

.breakdown-item .hours-value {
    font-weight: 600;
    color: var(--tb-blue);
}

.empty-state {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Hours Bar */
.hours-bar {
    display: flex;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    transition: width 0.5s ease;
}

.bar-segment.management {
    background: var(--success);
}

.bar-segment.investor {
    background: var(--danger);
}

.hours-legend {
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-item .dot.management {
    background: var(--success);
}

.legend-item .dot.investor {
    background: var(--danger);
}

/* Monthly Chart */
.breakdown-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.month-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--tb-blue) 0%, var(--tb-indigo) 100%);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s ease;
    position: relative;
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
}

.month-bar::after {
    content: attr(data-month);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Recent Activities Table */
.recent-activities {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.section-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-subheader h3 {
    font-size: 1.1rem;
}

.activities-table, .full-activities-table {
    border-radius: 12px;
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 100px 1.5fr 2fr 80px 120px 100px;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.full-activities-table .table-header {
    grid-template-columns: 100px 1.5fr 2fr 80px 140px 1.5fr 80px;
}

.table-body {
    max-height: 400px;
    overflow-y: auto;
}

.activity-row {
    display: grid;
    grid-template-columns: 100px 1.5fr 2fr 80px 120px 100px;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: background var(--transition-fast);
}

.full-activities-table .activity-row {
    grid-template-columns: 100px 1.5fr 2fr 80px 140px 1.5fr 80px;
}

.activity-row:hover {
    background: var(--bg-tertiary);
}

.activity-row .col-hours {
    font-weight: 600;
}

.activity-row .col-type {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.activity-row .col-type.qualifying {
    background: var(--success-glow);
    color: var(--success);
}

.activity-row .col-type.excluded {
    background: var(--danger-glow);
    color: var(--danger);
}

.activity-row .col-evidence {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--frute-blue);
    font-size: 0.85rem;
}

/* Time range display in activity rows */
.activity-row .time-range {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.activity-row .col-date {
    line-height: 1.3;
}

.empty-row {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* Activity Filters */
.activity-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.filter-group select {
    width: auto;
    min-width: 150px;
}

.activity-totals {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.total-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.total-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--success);
}

.total-value.excluded {
    color: var(--danger);
}

/* Subsection Headers */
.subsection-header {
    margin-bottom: 1.25rem;
}

.subsection-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.subsection-header .subsection-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.property-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    transition: all var(--transition-fast);
}

.property-card:hover {
    border-color: var(--frute-blue);
    transform: translateY(-2px);
}

.property-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.property-card .property-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.property-card .property-type {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.property-card .property-address {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.property-card-stats {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.property-stat {
    text-align: center;
}

.property-stat .stat-value {
    display: block;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--tb-blue);
}

.property-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.add-property-card {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-property-card:hover {
    border-color: var(--tb-blue);
    color: var(--tb-blue);
    background: var(--tb-blue-glow);
}

.add-property-card .add-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px dashed currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-property-card .add-icon svg {
    width: 24px;
    height: 24px;
}

/* Evidence Section */
.evidence-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.category-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-card:hover {
    border-color: var(--frute-blue);
    transform: translateY(-2px);
}

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--tb-blue-glow), var(--tb-indigo-glow));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tb-blue);
}

.category-icon svg {
    width: 24px;
    height: 24px;
}

.category-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.category-card .count {
    font-size: 0.75rem;
    color: var(--tb-blue);
    font-weight: 500;
}

.evidence-upload-area {
    margin-bottom: 32px;
}

.upload-zone {
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.upload-zone:hover {
    border-color: var(--tb-blue);
    background: var(--tb-blue-glow);
}

.upload-zone .upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--tb-blue);
}

.upload-zone .upload-icon svg {
    width: 100%;
    height: 100%;
}

.upload-zone h4 {
    margin-bottom: 8px;
}

.upload-zone p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-zone .supported-types {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.evidence-list-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.evidence-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.evidence-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.evidence-item .file-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--frute-blue);
}

.evidence-item .file-preview {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--frute-blue);
    overflow: hidden;
    flex-shrink: 0;
}

.evidence-item .file-preview.image-preview {
    padding: 0;
}

.evidence-item .file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.evidence-item .file-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.evidence-item .file-name {
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evidence-item .file-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.evidence-item .file-category {
    margin-top: 4px;
}

.evidence-category-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.75rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 120px;
}

.evidence-category-select:hover {
    border-color: var(--frute-blue);
}

.evidence-category-select:focus {
    outline: none;
    border-color: var(--frute-blue);
    box-shadow: 0 0 0 3px rgba(45, 127, 249, 0.15);
}

.evidence-category-select option {
    background: var(--bg-secondary);
    color: var(--text-light);
    padding: 8px;
}

.evidence-item .file-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 6px;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.empty-evidence {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

/* Report Section */
.report-preview-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 24px;
    border: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Enhanced Report Cover Header */
.report-cover-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--tb-blue);
}

.report-branding {
    display: flex;
    align-items: center;
    gap: 16px;
}

.report-company {
    display: flex;
    flex-direction: column;
}

.report-company .company-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tb-blue);
}

.report-company .company-tagline {
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}

.report-credentials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.report-credentials .credential {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tb-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 32px;
}

.report-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--tb-blue) 0%, var(--tb-indigo) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}

.report-logo svg {
    width: 36px;
    height: 36px;
}

.report-title-area h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.report-title-area .report-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.report-title-area .report-year {
    color: var(--tb-blue);
    font-weight: 600;
}

.report-prepared {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-prepared .prepared-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.report-prepared .prepared-firm {
    font-weight: 600;
    color: #374151;
}

.report-prepared .prepared-date {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Report Introduction */
.intro-section .intro-text {
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 16px;
}

.legal-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.05));
    border-radius: 10px;
    border-left: 3px solid var(--tb-blue);
}

.legal-notice svg {
    color: var(--tb-blue);
    flex-shrink: 0;
}

.legal-notice span {
    font-size: 0.85rem;
    color: #4b5563;
}

.report-section {
    margin-bottom: 32px;
}

.report-section h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.summary-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.summary-item .label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.summary-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
}

.summary-item.status .value {
    color: var(--tb-blue);
}

/* Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
}

.check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon svg {
    width: 20px;
    height: 20px;
}

.check-icon.pending {
    background: #fef3c7;
    color: #f59e0b;
}

.check-icon.success {
    background: #d1fae5;
    color: #10b981;
}

.check-icon.danger {
    background: #fee2e2;
    color: #ef4444;
}

.check-text {
    flex: 1;
    font-weight: 500;
}

.check-value {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Report Table */
.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f3f4f6;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 600;
}

.report-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.report-table .empty-row td {
    text-align: center;
    color: #9ca3af;
    padding: 32px;
}

.report-table .notes-cell {
    max-width: 200px;
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-log-section {
    background: #f0f9ff;
    padding: 24px;
    border-radius: 12px;
}

.activity-log-section h3 {
    color: #0369a1;
}

.activity-log-section .report-table {
    font-size: 0.9rem;
}

.activity-log-section .report-table th {
    background: #e0f2fe;
    color: #0369a1;
}

.section-note {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.evidence-summary {
    display: flex;
    gap: 24px;
}

.evidence-stat {
    text-align: center;
    padding: 16px 32px;
    background: #f9fafb;
    border-radius: 10px;
}

.evidence-stat .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--tb-blue);
}

.evidence-stat .stat-label {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Detailed Notes Section */
.notes-section {
    background: #fffbeb;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.notes-section h3 {
    color: #b45309;
}

.detailed-notes {
    max-height: 400px;
    overflow-y: auto;
}

.notes-placeholder {
    text-align: center;
    padding: 32px;
    color: #92400e;
    font-style: italic;
}

.activity-note-item {
    padding: 16px;
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid var(--tb-blue);
}

.activity-note-item .note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.activity-note-item .note-date {
    font-weight: 600;
    color: #374151;
}

.activity-note-item .note-hours {
    font-size: 0.85rem;
    color: var(--tb-blue);
    font-weight: 600;
}

.activity-note-item .note-property {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.activity-note-item .note-task {
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.activity-note-item .note-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
    white-space: pre-wrap;
}

/* Compliance Section */
.compliance-section {
    background: #f0fdf4;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.compliance-section h3 {
    color: #047857;
}

.compliance-content p {
    margin-bottom: 12px;
    color: #374151;
}

.compliance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compliance-list li {
    position: relative;
    padding: 10px 0 10px 32px;
    color: #4b5563;
    line-height: 1.5;
    border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.compliance-list li:last-child {
    border-bottom: none;
}

.compliance-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Report Footer */
.report-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 16px;
}

.footer-disclaimer {
    flex: 2;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.6;
}

.footer-disclaimer strong {
    color: #374151;
}

.footer-contact {
    flex: 1;
    text-align: right;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-contact strong {
    color: var(--tb-blue);
}

.footer-page {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.footer-page span {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    width: 90%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
    font-size: 1.3rem;
}

.btn-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-body .form-group.half {
    flex: 1;
    margin-bottom: 0;
}

.modal-body label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Hours Warning */
.hours-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    font-size: 0.85rem;
}

.hours-warning svg {
    flex-shrink: 0;
    color: #ef4444;
}

.hours-warning.show {
    display: flex;
}

/* Time input styling */
input[type="time"] {
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    width: 100%;
    transition: all var(--transition-fast);
}

input[type="time"]:focus {
    outline: none;
    border-color: var(--frute-blue);
    box-shadow: 0 0 0 4px var(--frute-blue-glow);
}

/* Read-only hours input */
#activityHours[readonly] {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.modal-note {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
}

/* Address Autocomplete */
.address-autocomplete-wrapper {
    position: relative;
}

.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    margin-top: 4px;
}

.address-suggestions.active {
    display: block;
}

.address-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.address-suggestion:last-child {
    border-bottom: none;
}

.address-suggestion:hover,
.address-suggestion.selected {
    background: var(--frute-blue-glow);
}

.address-suggestion .suggestion-icon {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.address-suggestion .suggestion-icon svg {
    width: 18px;
    height: 18px;
    color: var(--frute-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.address-suggestion .suggestion-text {
    flex: 1;
}

.address-suggestion .suggestion-main {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.address-suggestion .suggestion-secondary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.address-suggestion .suggestion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.address-suggestion .suggestion-source {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--frute-blue-glow);
    color: var(--frute-blue);
    padding: 2px 8px;
    border-radius: 10px;
}

.address-suggestion .suggestion-type {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--success-glow);
    color: var(--success);
    padding: 2px 8px;
    border-radius: 10px;
}

.address-suggestion .suggestion-units {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--warning-glow);
    color: #b87a00;
    padding: 2px 8px;
    border-radius: 10px;
}

.address-suggestion mark {
    background: rgba(45, 127, 249, 0.2);
    color: var(--frute-blue);
    padding: 0 2px;
    border-radius: 2px;
}

.address-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.address-loading {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.address-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--frute-blue-glow);
    border-top-color: var(--frute-blue);
    border-radius: 50%;
    margin-left: 8px;
    animation: addressSpin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes addressSpin {
    to { transform: rotate(360deg); }
}

/* Auto-filled field highlight */
input.auto-filled,
select.auto-filled {
    animation: autoFillPulse 0.5s ease 2;
    border-color: var(--success) !important;
    box-shadow: 0 0 0 3px var(--success-glow) !important;
}

@keyframes autoFillPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px var(--success-glow);
    }
    50% {
        box-shadow: 0 0 0 6px var(--success-glow);
    }
}

/* Toast */
#toastContainer {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success .toast-icon { color: var(--success); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.error .toast-icon { color: var(--danger); }
.toast.info .toast-icon { color: var(--frute-blue); }

.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Evidence List Updates */
.evidence-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.evidence-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metrics-grid.two-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .breakdown-section {
        grid-template-columns: 1fr;
    }
    
    .breakdown-section.two-cols {
        grid-template-columns: 1fr;
    }
    
    .evidence-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .app-container {
        flex-direction: column;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .compliance-status-card {
        flex-direction: column;
        text-align: center;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header, .activity-row {
        font-size: 0.8rem;
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .col-task, .col-evidence, .col-notes {
        display: none;
    }
    
    .evidence-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .report-preview-card {
        padding: 24px;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-filters {
        flex-direction: column;
    }
}

/* ============================================
   Dashboard Type Selector
   ============================================ */

.dashboard-type-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.dashboard-type-overlay.active {
    display: flex;
}

.dashboard-type-selector {
    background: var(--bg-secondary);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    padding: 48px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.selector-header {
    text-align: center;
    margin-bottom: 40px;
}

.selector-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--tb-blue) 0%, var(--tb-indigo) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.25);
}

.selector-logo svg {
    width: 36px;
    height: 36px;
}

.selector-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.selector-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

.dashboard-type-options {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.type-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.type-divider span {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 12px 16px;
    border-radius: 20px;
}

.type-option {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 32px;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.type-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.type-option[data-type="str"]:hover {
    border-color: #f59e0b;
    background: linear-gradient(to bottom, white, rgba(245, 158, 11, 0.05));
}

.type-option[data-type="ltr"]:hover {
    border-color: var(--tb-blue);
    background: linear-gradient(to bottom, white, rgba(14, 165, 233, 0.05));
}

.type-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.type-icon svg {
    width: 28px;
    height: 28px;
}

.str-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.ltr-icon {
    background: var(--tb-blue-glow);
    color: var(--tb-blue);
}

.type-content {
    flex: 1;
}

.type-content h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.type-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.type-features {
    list-style: none;
    margin-bottom: 20px;
}

.type-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.type-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

.type-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.type-badge.ltr-badge {
    background: var(--tb-blue-glow);
    color: var(--tb-blue);
}

.select-type-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.select-type-btn svg {
    width: 18px;
    height: 18px;
}

.selector-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.selector-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.selector-footer strong {
    color: var(--text-secondary);
}

/* Dashboard Type Badge in Sidebar */
.dashboard-type-badge {
    margin: 16px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-light);
}

.dashboard-type-badge.str-active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.15));
    border-color: rgba(245, 158, 11, 0.3);
}

.dashboard-type-badge.ltr-active {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(14, 165, 233, 0.18));
    border-color: rgba(14, 165, 233, 0.3);
}

.badge-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.badge-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-type {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.str-active .badge-type {
    color: #d97706;
}

.ltr-active .badge-type {
    color: var(--tb-blue);
}

.switch-dashboard-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-muted);
}

.switch-dashboard-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.switch-dashboard-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive Dashboard Type Selector */
@media (max-width: 768px) {
    .dashboard-type-selector {
        padding: 32px 24px;
    }
    
    .selector-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-type-options {
        flex-direction: column;
    }
    
    .type-divider {
        padding: 16px 0;
    }
    
    .type-option {
        padding: 24px;
    }
    
    .dashboard-type-badge {
        margin: 12px;
        padding: 10px 12px;
    }
    
    .badge-label {
        display: none;
    }
}

/* ============================================
   REPS CERTIFICATION CARD STYLES
   ============================================ */

.reps-certification-card {
    background: white;
    border-radius: 20px;
    border: 2px solid var(--border-light);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.certification-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.certification-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.certification-icon svg {
    width: 28px;
    height: 28px;
    color: #10b981;
}

.certification-title h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.certification-subtitle {
    font-size: 0.9rem;
    opacity: 0.75;
    margin: 0;
}

.certification-body {
    padding: 36px;
}

.certification-intro {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--border-light);
}

.certification-intro p {
    margin: 0;
}

.certification-statements {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 36px;
}

.certification-statement {
    display: flex;
    gap: 18px;
    padding: 22px 26px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
}

.certification-statement:hover {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, rgba(16, 185, 129, 0.02) 100%);
    transform: translateX(4px);
}

.statement-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tb-blue) 0%, var(--tb-indigo) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.certification-statement p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.certification-statement strong {
    color: var(--tb-blue);
    font-weight: 700;
}

.cert-year {
    font-weight: 600;
}

/* Certification Signature Section */
.certification-signature {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 2px dashed var(--border-light);
}

.certification-signature .signature-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    margin-bottom: 28px;
}

.signature-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signature-field label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signature-field input {
    border: none;
    border-bottom: 2px solid var(--border-light);
    padding: 14px 0;
    font-size: 1.15rem;
    font-family: 'Georgia', serif;
    font-style: italic;
    background: transparent;
    transition: all 0.3s ease;
    color: var(--text-primary);
    width: 100%;
}

.signature-field input:focus {
    border-bottom-color: var(--tb-blue);
    outline: none;
}

.signature-field input::placeholder {
    color: #cbd5e1;
    font-style: italic;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.signature-field.date-field input {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1rem;
}

/* Certification Consent */
.certification-consent {
    padding: 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
}

.certification-consent .consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
}

.certification-consent .consent-checkbox input {
    display: none;
}

.certification-consent .checkmark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.certification-consent .checkmark::after {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.certification-consent .consent-checkbox input:checked + .checkmark {
    background: #10b981;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.certification-consent .consent-checkbox input:checked + .checkmark::after {
    opacity: 1;
    transform: scale(1);
}

.certification-consent .consent-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-primary);
    font-weight: 500;
}

/* Certification Warning */
.certification-warning {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    margin: 0 36px 36px 36px;
}

.certification-warning svg {
    width: 22px;
    height: 22px;
    color: #d97706;
    flex-shrink: 0;
}

.certification-warning span {
    font-size: 0.9rem;
    color: #92400e;
    font-weight: 500;
}

.certification-warning.hidden {
    display: none;
}

/* Certification Complete State */
.reps-certification-card.certified {
    border-color: rgba(16, 185, 129, 0.3);
}

.reps-certification-card.certified .certification-header {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

.reps-certification-card.certified .certification-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(16, 185, 129, 0.4) 100%);
}

.reps-certification-card.certified .certification-warning {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.reps-certification-card.certified .certification-warning svg {
    color: #10b981;
}

.reps-certification-card.certified .certification-warning span {
    color: #065f46;
}

/* Responsive Certification */
@media (max-width: 768px) {
    .certification-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }
    
    .certification-body {
        padding: 24px;
    }
    
    .certification-signature .signature-row {
        grid-template-columns: 1fr;
    }
    
    .certification-warning {
        margin: 0 24px 24px 24px;
    }
    
    .certification-statement {
        padding: 18px 20px;
    }
}

