/* ====================================
   🌱 BRR Business Dashboard Styles
   ADHD-Friendly Modular CSS
   Phoenix/Rebirth Theme - Waste to Value
   ==================================== */

/* ============ ATOMIC SECTION: BRR Brand Variables ============ */
:root {
    /* BRR Brand Colors - Phoenix/Rebirth Theme */
    --brr-green: #59c427;        /* New growth, rebirth */
    --brr-amber: #bc7c28;        /* Wood transformation */
    --brr-dark: #2d2d2d;         /* Rich earth */
    --brr-light-green: #7dd146;  /* Lighter growth */
    --brr-dark-amber: #a06622;   /* Aged wood */
    
    /* Progress Colors - Waste to Value Journey */
    --progress-start: #bc7c28;   /* Raw waste (amber) */
    --progress-middle: #8fa527;  /* Processing (amber-green blend) */
    --progress-end: #59c427;     /* Value created (green) */
    
    /* Semantic Colors Enhanced */
    --urgent: #e74c3c;
    --warning: var(--brr-amber);
    --success: var(--brr-green);
    --info: #3498db;
    

    /* Typography */
    --brand-font: 'Geologica', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============ ATOMIC SECTION: Base Styles ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--brand-font);
    /* Clean solid background inspired by logo */
    background: #f4f1eb; /* Light wood tone from logo */
    min-height: 100vh;
    padding: 20px;
    font-size: 18px;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Remove wood texture overlay */

/* ============ ATOMIC SECTION: Dashboard Container ============ */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* ============ ATOMIC SECTION: Header ============ */
.header {
    /* Clean solid BRR green from logo */
    background: var(--brr-green);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Remove header texture overlay */

/* Header Layout */
.header-logo {
    flex-shrink: 0;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    -webkit-user-drag: none;
    user-drag: none;
    user-select: none;
}

.header-content {
    flex: 1;
    text-align: center;
}

.header-spacer {
    width: 40px;
    flex-shrink: 0;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 8px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: bold;
}

.header p {
    font-size: 1.1em;
    opacity: 0.95;
    position: relative;
    font-weight: 500;
}

/* ============ ATOMIC SECTION: Main Layout ============ */
.main-content {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: grab;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.section.sortable-chosen {
    cursor: grabbing;
    transform: rotate(5deg);
    opacity: 0.8;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #dee2e6;
}

.section-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

/* ============ ATOMIC SECTION: Priority Colors ============ */
.priority-urgent { border-left: 8px solid #e74c3c !important; }
.priority-ongoing { border-left: 8px solid #f39c12 !important; }
.priority-completed { border-left: 8px solid #27ae60 !important; }
.priority-normal { border-left: 8px solid #6c757d !important; }

/* ============ ATOMIC SECTION: Buttons ============ */
.add-item-btn {
    width: 100%;
    padding: 15px;
    background: var(--brr-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(89, 196, 39, 0.3);
}

.add-item-btn:hover {
    background: var(--brr-light-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(89, 196, 39, 0.4);
}

.btn-primary {
    background: var(--brr-green);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(89, 196, 39, 0.3);
}

.btn-primary:hover {
    background: var(--brr-light-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(89, 196, 39, 0.4);
}

.btn-secondary {
    background: var(--brr-amber);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(188, 124, 40, 0.3);
}

.btn-secondary:hover {
    background: var(--brr-dark-amber);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(188, 124, 40, 0.4);
}

/* ============ ATOMIC SECTION: Checklists ============ */
.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    border-color: #4CAF50;
    transform: translateX(5px);
}

.checklist-item.completed {
    background: #d4edda;
    text-decoration: line-through;
    opacity: 0.7;
}

.checklist-checkbox {
    width: 25px;
    height: 25px;
    margin-right: 15px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.checklist-text {
    flex: 1;
    font-size: 1.1em;
    padding: 5px;
    border: none;
    background: transparent;
    outline: none;
}

.priority-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-left: 10px;
}

.urgent { background: #ffebee; color: #c62828; }
.high { background: #fff3e0; color: #ef6c00; }
.normal { background: #e8f5e8; color: #2e7d32; }

/* ============ ATOMIC SECTION: Timeline ============ */
.timeline-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.timeline-phase {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
    border-left: 6px solid #4CAF50;
    background: #f8f9fa;
    position: relative;
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.phase-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
}

.phase-dates {
    background: #e3f2fd;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: #1976d2;
}

.phase-progress {
    width: 100%;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

.milestones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.milestone {
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.milestone.completed { background: #d4edda; color: #155724; }
.milestone.urgent { background: #f8d7da; color: #721c24; }
.milestone.ongoing { background: #fff3cd; color: #856404; }

/* ============ ATOMIC SECTION: Google Drive Links ============ */
.drive-links {
    display: grid;
    gap: 15px;
}

.drive-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.drive-item:hover {
    border-color: #4285f4;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.2);
}

.drive-icon {
    font-size: 2em;
    margin-right: 15px;
}

.drive-info {
    flex: 1;
}

.drive-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #2c3e50;
}

.drive-description {
    color: #6c757d;
    font-size: 0.95em;
}

.drive-status {
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-active { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-review { background: #cce5ff; color: #004085; }

/* ============ ATOMIC SECTION: Notes ============ */
.notes-textarea {
    width: 100%;
    height: 200px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1em;
    resize: vertical;
}

/* ============ ATOMIC SECTION: Kanban Board ============ */
.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    min-height: 500px;
}

.kanban-column {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    min-width: 300px;
    flex-shrink: 0;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
}

.kanban-column:hover {
    border-color: #4CAF50;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
}

.column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #dee2e6;
}

.column-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
}

.column-count {
    background: #6c757d;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: bold;
}

.todo-column .column-count { background: #007bff; }
.progress-column .column-count { background: #ffc107; }
.done-column .column-count { background: #28a745; }

.kanban-cards {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kanban-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    touch-action: pan-y;
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.kanban-card.sortable-chosen {
    transform: rotate(5deg);
    opacity: 0.8;
    cursor: grabbing;
}

.kanban-card.active {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.card-priority-stripe {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: 12px 0 0 12px;
}

.priority-urgent .card-priority-stripe { background: #e74c3c; }
.priority-high .card-priority-stripe { background: #f39c12; }
.priority-normal .card-priority-stripe { background: #27ae60; }

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    flex: 1;
    margin-right: 10px;
    line-height: 1.4;
}

.card-emoji {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.card-priority-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8em;
    font-weight: bold;
    flex-shrink: 0;
}

.priority-urgent .card-priority-badge { background: #ffebee; color: #c62828; }
.priority-high .card-priority-badge { background: #fff3e0; color: #ef6c00; }
.priority-normal .card-priority-badge { background: #e8f5e8; color: #2e7d32; }

.card-description {
    color: #6c757d;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-subtasks {
    margin-bottom: 15px;
}

.subtask-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.subtask-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: #4CAF50;
}

.subtask-text {
    color: #495057;
}

.subtask-item.completed .subtask-text {
    text-decoration: line-through;
    opacity: 0.6;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.card-deadline {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85em;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
}

.deadline-urgent {
    background: #f8d7da !important;
    color: #721c24 !important;
}

.deadline-approaching {
    background: #fff3cd !important;
    color: #856404 !important;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-action-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.card-action-btn:hover {
    background: #e9ecef;
    transform: scale(1.1);
}

.drive-link-btn {
    background: #4285f4;
    color: white;
}

.drive-link-btn:hover {
    background: #3367d6;
}

.edit-card-btn {
    background: #17a2b8;
    color: white;
}

.edit-card-btn:hover {
    background: #138496;
}

.delete-card-btn {
    background: #dc3545;
    color: white;
}

.delete-card-btn:hover {
    background: #c82333;
}

.add-card-btn {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    border: 2px dashed #4CAF50;
    border-radius: 12px;
    color: #4CAF50;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-card-btn:hover {
    background: #4CAF50;
    color: white;
    border-style: solid;
    transform: translateY(-2px);
}

/* ============ ATOMIC SECTION: Daily Planner ============ */
.daily-planner {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.planner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e9ecef;
}

.planner-date {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-nav-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.date-nav-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.current-date {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
}

.planner-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.timer-display {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 10px 15px;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

.timer-display.active {
    border-color: #4CAF50;
    background: #e8f5e8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.timeline-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.time-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 80px;
}

.time-label {
    font-size: 0.9em;
    font-weight: bold;
    color: #6c757d;
    text-align: center;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 10px;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.time-slot {
    min-height: 60px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.time-slot:hover {
    border-color: #4CAF50;
    background: #e8f5e8;
}

.time-slot.occupied {
    border-style: solid;
    border-color: transparent;
}

.time-block {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin: 2px;
    border: 2px solid #e9ecef;
    cursor: grab;
    transition: all 0.3s ease;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.time-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.time-block.sortable-chosen {
    cursor: grabbing;
    transform: rotate(3deg);
    opacity: 0.8;
}

.time-block.active {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.block-priority-stripe {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    border-radius: 8px 0 0 8px;
}

.priority-focus .block-priority-stripe { background: #e74c3c; }
.priority-work .block-priority-stripe { background: #f39c12; }
.priority-break .block-priority-stripe { background: #17a2b8; }
.priority-personal .block-priority-stripe { background: #6f42c1; }

.block-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.block-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.block-text {
    flex: 1;
}

.block-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9em;
    line-height: 1.2;
}

.block-duration {
    font-size: 0.7em;
    color: #6c757d;
    margin-top: 2px;
}

.block-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.time-block:hover .block-actions {
    opacity: 1;
}

.block-action-btn {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.block-action-btn:hover {
    background: rgba(0,0,0,0.1);
    transform: scale(1.1);
}

.play-btn { color: #28a745; }
.edit-btn { color: #17a2b8; }
.delete-btn { color: #dc3545; }

.quick-blocks {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-block-btn {
    background: white;
    border: 2px dashed #4CAF50;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #4CAF50;
}

.quick-block-btn:hover {
    background: #4CAF50;
    color: white;
    border-style: solid;
    transform: translateY(-2px);
}

.activity-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.activity-type {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.activity-type:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.activity-type.selected {
    border-color: #4CAF50;
    background: #e8f5e8;
}

.activity-icon {
    font-size: 2em;
    margin-bottom: 8px;
}

.activity-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.activity-description {
    font-size: 0.8em;
    color: #6c757d;
}

/* ============ ATOMIC SECTION: Progress Tracker ============ */
.progress-tracker {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.progress-header {
    text-align: center;
    margin-bottom: 30px;
}

.overall-progress {
    /* Clean solid background with BRR brand color */
    background: var(--brr-green);
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
}

/* Remove progress background overlay */

.overall-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="80" r="2.5" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="50" r="1.2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

.overall-title {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.overall-percentage {
    font-size: 4em;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.overall-status {
    font-size: 1.4em;
    margin-bottom: 20px;
    opacity: 0.9;
}

.overall-progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.overall-progress-fill {
    height: 100%;
    /* Solid amber for transformation progress */
    background: var(--brr-amber);
    border-radius: 10px;
    transition: width 1s ease-in-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.overall-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Ensure cards/sections don't capture vertical swipes on Android Chrome/Brave */
.section, .progress-tracker, .kanban-board, .daily-planner, .resources-container {
    touch-action: pan-y;
}

.progress-stat {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 3px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #4CAF50;
}

.progress-stat.completed {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-color: #28a745;
}

.progress-stat.in-progress {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-color: #ffc107;
}

.progress-stat.not-started {
    background: linear-gradient(135deg, #f8d7da, #f1c2c7);
    border-color: #dc3545;
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.stat-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stat-progress {
    font-size: 2.5em;
    font-weight: bold;
    margin: 15px 0;
    color: #2c3e50;
}

.stat-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease-in-out;
    position: relative;
}

/* BRR-themed progress bars - Each showing different aspects of transformation */
.stat-bar-fill.checklist { 
    background: var(--brr-green);
}
.stat-bar-fill.kanban { 
    background: var(--brr-amber);
}
.stat-bar-fill.timeline { 
    background: var(--brr-dark-amber);
}
.stat-bar-fill.planner { 
    background: var(--brr-light-green);
}

.stat-details {
    font-size: 0.9em;
    color: #6c757d;
    line-height: 1.4;
}

.emoji-progress {
    font-size: 2em;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.emoji-filled {
    opacity: 1;
    transform: scale(1.1);
    animation: glow 1.5s ease-in-out infinite alternate;
}

.emoji-empty {
    opacity: 0.3;
    filter: grayscale(100%);
}

@keyframes glow {
    from { filter: brightness(1) drop-shadow(0 0 5px rgba(76, 175, 80, 0.5)); }
    to { filter: brightness(1.2) drop-shadow(0 0 10px rgba(76, 175, 80, 0.8)); }
}

.encouragement-message {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    animation: messageSlide 0.5s ease-in-out;
}

@keyframes messageSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5em;
    z-index: 10000;
    animation: celebrate 2s ease-in-out;
    pointer-events: none;
}

@keyframes celebrate {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.milestone-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #2c3e50;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 5px;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.deadline-status {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
}

.deadline-status.ahead {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #28a745;
}

.deadline-status.on-track {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 2px solid #ffc107;
}

.deadline-status.behind {
    background: linear-gradient(135deg, #f8d7da, #f1c2c7);
    color: #721c24;
    border: 2px solid #dc3545;
}

/* ============ ATOMIC SECTION: Modals ============ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.modal-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #6c757d;
}

.close-modal:hover {
    color: #495057;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #495057;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

.subtasks-list {
    max-height: 200px;
    overflow-y: auto;
}

.subtask-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.subtask-input {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* ============ ATOMIC SECTION: Notifications ============ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.notification.warning {
    background: #f39c12;
}

.notification.error {
    background: #e74c3c;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
}

/* ============ ATOMIC SECTION: Controls ============ */
.controls {
    background: #2c3e50;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.save-btn, .load-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn {
    background: #27ae60;
    color: white;
}

.load-btn {
    background: #3498db;
    color: white;
}

.save-btn:hover { background: #219a52; }
.load-btn:hover { background: #2980b9; }

.last-saved {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ============ ATOMIC SECTION: Drag & Drop ============ */
.sortable-ghost {
    opacity: 0.4;
}

.sortable-drag {
    transform: rotate(5deg);
}

/* ============ ATOMIC SECTION: Tab Navigation ============ */
.tab-navigation {
    background: white;
    border-bottom: 3px solid #e9ecef;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 70px;
}

.tab-group {
    display: flex;
    gap: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-group::-webkit-scrollbar {
    display: none;
}

.tab-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 14px 16px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    color: #6c757d;
    position: relative;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #495057;
    transform: translateY(-2px);
}

.tab-btn.active {
    color: #4CAF50;
    background: #e8f5e8;
    border-bottom-color: #4CAF50;
}

.tab-btn.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
}

/* ============ ATOMIC SECTION: Tab Content ============ */
.main-content {
    padding: 0;
    display: block; /* Override grid layout for tabs */
}

.tab-content {
    display: none;
    padding: 30px;
    min-height: 600px;
    touch-action: pan-y;
}

.tab-content.active {
    display: block;
}

.full-width {
    width: 100%;
    margin-bottom: 0;
}

.tasks-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.resources-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Override section styles within tabs */
.tab-content .section {
    margin-bottom: 30px;
}

.tab-content .section.full-width {
    grid-column: 1 / -1;
}

/* Ensure kanban board works within tabs */
.tab-content .kanban-board {
    margin-top: 0;
}

/* Ensure daily planner timeline uses correct container */
#plannerTimelineContainer {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

/* ============ ATOMIC SECTION: Tab-Specific Layouts ============ */

/* Progress Tab - Full width focus */
#progressTab .section {
    max-width: none;
    margin: 0;
}

#progressTab .progress-tracker {
    margin-top: 0;
}

/* Timeline Tab - Full width timeline */
#timelineTab .section {
    max-width: none;
    margin: 0;
}

/* Tasks Tab - Two sections layout */
#tasksTab .tasks-container {
    gap: 30px;
}

#tasksTab .section[data-section="checklists"] {
    margin-bottom: 30px;
}

#tasksTab .section[data-section="kanban"] {
    margin-bottom: 0;
}

/* Planner Tab - Full focus on time management */
#plannerTab .section {
    max-width: none;
    margin: 0;
}

#plannerTab .daily-planner {
    margin-top: 0;
}

/* Resources Tab - Two column layout */
#resourcesTab .resources-container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

#resourcesTab .section[data-section="notes"] .notes-textarea {
    min-height: 400px;
}

/* ============ ATOMIC SECTION: Tab Indicators ============ */
.tab-btn::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

/* Notification dots for tabs with updates */
.tab-btn[data-notifications]::after {
    background: #dc3545;
    animation: pulse 2s infinite;
}

.tab-btn.active[data-notifications]::after {
    background: #28a745;
}

/* Tab priority indicators */
.tab-btn[data-priority="urgent"] {
    border-left: 4px solid #e74c3c;
}

.tab-btn[data-priority="high"] {
    border-left: 4px solid #f39c12;
}

.tab-btn[data-priority="normal"] {
    border-left: 4px solid #4CAF50;
}

/* ============ ATOMIC SECTION: Focus Mode ============ */
.focus-mode-btn {
    background: var(--brr-amber);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: auto;
    height: 36px;
}

.focus-mode-btn:hover {
    background: var(--brr-dark-amber);
    transform: translateY(-1px);
}

.focus-mode-btn.active {
    background: #e74c3c;
    animation: focusPulse 2s infinite;
}

@keyframes focusPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6); }
}

/* Focus Mode - Hide everything except active content */
.focus-mode .tab-navigation .tab-group {
    display: none;
}

.focus-mode .quick-sidebar {
    transform: translateX(-100%);
}

.focus-mode .header {
    display: none;
}

.focus-mode .controls {
    display: none;
}

.focus-mode .tab-content {
    padding: 20px;
    margin: 0;
}

.focus-mode .section-header {
    display: none;
}

/* ============ ATOMIC SECTION: Quick Sidebar ============ */
.quick-sidebar {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 60px; /* Start collapsed */
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: width 0.3s ease;
    border: none; /* add border only when expanded */
    overflow: hidden;
}

.quick-sidebar.expanded {
    width: 280px !important;
    border: 3px solid var(--brr-green);
}

.sidebar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid #e9ecef;
    background: var(--brr-green);
    color: white;
    border-radius: 12px 12px 0 0;
    position: relative;
    cursor: pointer;
}

.sidebar-title {
    font-weight: bold;
    font-size: 1.1em;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quick-sidebar.expanded .sidebar-title {
    opacity: 1;
    visibility: visible;
}

/* Collapsed: show vertical label so it's not blank */
.quick-sidebar:not(.expanded) .sidebar-title {
    opacity: 1;
    visibility: visible;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

.sidebar-toggle {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.4em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* Collapsed state - show expand icon */
.quick-sidebar:not(.expanded) .sidebar-toggle::before {
    content: '📊';
    font-size: 1.2em;
}

.quick-sidebar.expanded .sidebar-toggle::before {
    content: '📌';
    font-size: 1.2em;
}

.sidebar-content {
    padding: 0;               /* no padding when collapsed */
    opacity: 0;
    visibility: hidden;
    max-height: 0;            /* collapse height */
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
}

.quick-sidebar.expanded .sidebar-content {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;       /* enough to show all content */
    padding: 20px;            /* restore padding when expanded */
}

.quick-progress {
    margin-bottom: 20px;
    text-align: center;
}

.mini-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.mini-progress-fill {
    height: 100%;
    background: var(--brr-green);
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
}

.mini-progress-text {
    font-weight: bold;
    color: #4CAF50;
    font-size: 1.1em;
}

.quick-links {
    margin-bottom: 20px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.quick-link-item:hover {
    background: #e8f5e8;
    border-left-color: #4CAF50;
    transform: translateX(5px);
}

.quick-link-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.quick-link-title {
    font-weight: bold;
    font-size: 0.9em;
    color: #2c3e50;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-action-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-action-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    transform: translateY(-2px);
}

/* ============ ATOMIC SECTION: Progress Insights ============ */
.progress-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.insight-card {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.insight-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.insight-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

.insight-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.insight-text {
    opacity: 0.9;
    line-height: 1.4;
    font-size: 0.95em;
}

/* Accessibility improvements */
.progress-stat {
    position: relative;
}

.progress-stat::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.progress-stat.completed::before {
    background: #28a745;
    content: '✓';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
}

.progress-stat.in-progress::before {
    background: #ffc107;
    content: '⚡';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.progress-stat.not-started::before {
    background: #dc3545;
    content: '!';
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
}

/* ============ ATOMIC SECTION: Wood Waste Metrics ============ */
.wood-waste-metrics {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    border: 3px solid rgba(89, 196, 39, 0.2);
    position: relative;
    overflow: hidden;
}

/* Remove wood grain overlay */

.metrics-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.metrics-header h3 {
    color: var(--brr-dark);
    font-size: 1.8em;
    margin-bottom: 8px;
    font-weight: bold;
}

.metrics-header p {
    color: var(--brr-amber);
    font-size: 1.1em;
    font-weight: 600;
    font-style: italic;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.metric-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 3px solid transparent;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: all 0.3s ease;
}

.metric-card.primary::before { background: var(--brr-green); }
.metric-card.secondary::before { background: var(--brr-amber); }
.metric-card.success::before { background: var(--brr-light-green); }
.metric-card.revenue::before { background: #f39c12; }

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.metric-card:hover::before {
    height: 8px;
}

.metric-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.metric-value {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--brr-dark);
    margin-bottom: 5px;
    line-height: 1;
}

.metric-label {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.metric-target {
    font-size: 0.9em;
    color: var(--brr-amber);
    font-weight: 500;
    font-style: italic;
}

.metrics-notes {
    background: rgba(89, 196, 39, 0.1);
    border-radius: 15px;
    padding: 20px;
    border-left: 5px solid var(--brr-green);
}

.note-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 15px;
}

.note-item:last-child {
    margin-bottom: 0;
}

.note-icon {
    font-size: 1.3em;
    flex-shrink: 0;
}

.note-text {
    color: var(--brr-dark);
    font-size: 0.95em;
    line-height: 1.4;
    font-weight: 500;
}

/* ============ ATOMIC SECTION: Export Options ============ */
.export-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.export-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 3px solid rgba(89, 196, 39, 0.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.export-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brr-green);
    transition: all 0.3s ease;
}

.export-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: rgba(89, 196, 39, 0.3);
}

.export-card:hover::before {
    height: 6px;
}

.export-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.export-info {
    flex: 1;
}

.export-title {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--brr-dark);
    margin-bottom: 5px;
}

.export-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

.export-card button {
    margin: 0;
    padding: 12px 20px;
    flex-shrink: 0;
}

/* ============ ATOMIC SECTION: Responsive Design ============ */
@media (max-width: 768px) {
    /* Hide Quick Access completely on mobile */
    .quick-sidebar { display: none !important; }
    .tab-navigation {
        padding: 8px 10px;
        gap: 6px;
        min-height: unset;
        flex-wrap: wrap;
    }

    .tab-group {
        display: flex;
        flex-wrap: wrap;
        overflow: visible;
        gap: 6px;
        width: 100%;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 0.95em;
        min-width: 0;
        flex: 1 1 calc(50% - 6px);
        text-align: center;
    }

    .tab-controls {
        order: 3;
        width: 100%;
        justify-content: flex-end;
        padding: 4px 0 0;
    }
    
    .focus-mode-btn {
        padding: 6px 10px;
        font-size: 0.8em;
        height: 32px;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    .resources-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tasks-container {
        gap: 20px;
    }
    
    /* Mobile sidebar adjustments – compact FAB-style when collapsed */
    .quick-sidebar {
        top: auto;
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        border-radius: 24px;
    }

    .quick-sidebar:not(.expanded) .sidebar-title {
        display: none;
    }

    .quick-sidebar .sidebar-header {
        padding: 8px;
        border-radius: 24px;
    }

    .quick-sidebar.expanded {
        width: 90vw !important;
        height: 70vh;
        bottom: 10px;
        right: 10px;
        border-radius: 16px;
    }

    .quick-sidebar.expanded .sidebar-content {
        max-height: calc(70vh - 60px);
        padding: 16px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 8px;
    }
    
    .quick-action-btn {
        padding: 10px;
        font-size: 1em;
    }
    
    /* Progress insights mobile */
    .progress-insights {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .insight-card {
        padding: 15px;
        gap: 12px;
    }
    
    .insight-icon {
        font-size: 2em;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .section {
        padding: 20px;
    }

    .kanban-board {
        flex-direction: column;
    }
    
    .kanban-column {
        min-width: 100%;
    }

    .planner-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .planner-controls {
        justify-content: center;
    }
    
    .activity-types {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline-container {
        gap: 10px;
    }
    
    .time-column {
        min-width: 60px;
    }

    .overall-percentage {
        font-size: 3em;
    }
    
    .overall-title {
        font-size: 1.8em;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-icon {
        font-size: 2.5em;
    }
}
