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

:root {
    --primary: #087e8b;
    --secondary: #05a8a3;
    --success: #4caf50;
    --danger: #f44336;
    --light: #f5f5f5;
    --dark: #333;
    --border: #ddd;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-color: #333;
    --text-secondary: #666;
    --text-tertiary: #999;
    --shadow: rgba(0,0,0,0.1);
    --heatmap-empty: #ebedf0;
    --heatmap-border: #ddd;
}

[data-theme="dark"] {
    --primary: #0fa4b3;
    --secondary: #06c5bf;
    --success: #66bb6a;
    --danger: #ef5350;
    --light: #1e1e1e;
    --dark: #e0e0e0;
    --border: #404040;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    --shadow: rgba(0,0,0,0.3);
    --heatmap-empty: #2a2a2a;
    --heatmap-border: #404040;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 24px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.auth-status {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 12px;
}

.auth-status.online {
    background: rgba(76, 175, 80, 0.3);
}

.auth-status.offline {
    background: rgba(244, 67, 54, 0.3);
}

.auth-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.auth-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    font-weight: 600;
}

.auth-buttons button:active {
    opacity: 0.8;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
    font-size: 14px;
}

.info-box {
    background: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 8px;
}

.info-box strong {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.info-box span {
    font-size: 16px;
    font-weight: bold;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px var(--shadow);
    transition: background-color 0.3s ease;
}

.card h2 {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 18px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-color);
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 164, 179, 0.2);
}

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

.quick-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.quick-buttons button {
    flex: 1;
}

button {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Required field indicator */
label.required-field::after {
    content: " *";
    color: #d32f2f;
    font-weight: bold;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
    background: #066270;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    font-size: 13px;
}

.btn-secondary:active {
    background: #048a82;
}

.btn-danger {
    background: var(--danger);
    color: white;
    font-size: 13px;
}

.btn-danger:active {
    background: #da190b;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:active {
    background: #388e3c;
}

.trips-list {
    max-height: 400px;
    overflow-y: auto;
}

.trip-item {
    background: var(--bg-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.trip-item .trip-info {
    flex: 1;
}

.trip-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.trip-cost {
    font-weight: bold;
    color: var(--primary);
    font-size: 16px;
}

.trip-delete {
    background: var(--danger);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.stats-overview {
    grid-template-columns: 1fr 1fr;
}

.stats-overview .stats-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.stat-box .label {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.stat-box .value {
    font-size: 24px;
    font-weight: bold;
}

.stat-savings {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--success), #66bb6a) !important;
}

.stat-savings.negative {
    background: linear-gradient(135deg, #e53935, #ef5350) !important;
}

.stat-savings .value {
    font-size: 32px;
}

.savings-summary {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.progress-bar {
    background: #ddd;
    height: 8px;
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    background: var(--success);
    height: 100%;
    transition: width 0.3s ease;
    width: 0%;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
}

.message.positive {
    background: #c8e6c9;
    color: #2e7d32;
}

.message.negative {
    background: #ffcdd2;
    color: #c62828;
}

.export-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.export-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.export-buttons button {
    flex: 1;
    min-width: 120px;
    font-size: 13px;
}

.hidden {
    display: none;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--success);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-weight: 600;
    font-size: 16px;
    z-index: 9999;
    max-width: 90%;
    animation: slideUp 0.3s ease forwards;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

@keyframes slideUp {
    to {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    to {
        transform: translateX(-50%) translateY(120px);
        opacity: 0;
    }
}

.toast.hide {
    animation: slideDown 0.3s ease forwards;
}

/* Auth Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-color);
}

.modal-close-btn:hover {
    color: var(--primary);
}

.modal-close-btn:active {
    background: var(--border);
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: background-color 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        padding-top: 16px;
        border-radius: 16px;
    }
}

.modal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.modal-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.modal-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.modal-form {
    display: none;
}

.modal-form.active {
    display: block;
}

.modal-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    font-family: inherit;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 126, 139, 0.1);
}

@media (max-width: 600px) {
    .modal-form input {
        font-size: 16px;
        padding: 14px;
    }
}

.modal-buttons {
    display: flex;
    gap: 8px;
}

.modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
}

@media (max-width: 600px) {
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .modal-buttons button {
        min-height: 48px;
        font-size: 16px;
    }
}

.modal-btn-primary {
    background: var(--primary);
    color: white;
}

.modal-btn-primary:active {
    opacity: 0.9;
}

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

.modal-btn-secondary:active {
    opacity: 0.9;
}

/* Dark Mode Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-color);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.theme-toggle label {
    margin: 0;
    flex: 1;
    cursor: pointer;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-switch.active {
    background: var(--primary);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

/* Settings Modal */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.settings-form input {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.settings-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 164, 179, 0.2);
}

.settings-help {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: -8px;
    margin-bottom: 12px;
}

/* Heatmap Styles */
.heatmap-container {
    margin-top: 16px;
    overflow-x: auto;
}

.heatmap-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.heatmap-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.heatmap-month {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    background: var(--bg-color);
    transition: background-color 0.3s ease;
}

.heatmap-month-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    text-align: center;
}

.heatmap-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.heatmap-day-header {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    color: var(--text-tertiary);
    padding: 4px;
}

.heatmap-day {
    aspect-ratio: 1;
    border-radius: 3px;
    background: var(--heatmap-empty);
    border: 1px solid var(--heatmap-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.heatmap-day:hover {
    border-color: var(--primary);
    transform: scale(1.1);
}

.heatmap-day.empty {
    background: var(--heatmap-empty);
    color: var(--text-tertiary);
}

.heatmap-day.level-1 {
    background: #c6e48b;
}

.heatmap-day.level-2 {
    background: #7bc96f;
}

.heatmap-day.level-3 {
    background: #239a3b;
}

.heatmap-day.level-4 {
    background: #196127;
}

.heatmap-day.level-invalid {
    background: #8a8a8a;
    color: var(--text-secondary);
    border-color: #707070;
}

[data-theme="dark"] .heatmap-day.level-invalid {
    background: #4a4a4a;
    color: var(--text-secondary);
    border-color: #606060;
}

.heatmap-legend {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
}

.heatmap-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.heatmap-legend-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid var(--border);
}

/* Trip Tooltip */
.trip-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 10000;
    pointer-events: none;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
}

.trip-tooltip.visible {
    display: block;
}

.trip-tooltip-header {
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.trip-tooltip-item {
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.trip-tooltip-route {
    flex: 1;
    word-break: break-word;
}

.trip-tooltip-cost {
    font-weight: bold;
    color: #4caf50;
    white-space: nowrap;
}

.trip-tooltip-invalid {
    opacity: 0.6;
}

.trip-tooltip-invalid .trip-tooltip-cost {
    color: #ff9800;
}

/* Year Overview */
.year-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.month-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow);
    border-color: var(--primary);
}

.month-card.current-month {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(8, 126, 139, 0.05), rgba(5, 168, 163, 0.05));
    border-width: 2px;
}

.month-card.no-trips {
    opacity: 0.5;
}

.month-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.month-trips {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 4px;
}

.month-cost {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.month-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.month-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.year-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.year-selector button {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.2s;
}

.year-selector button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.year-selector span {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
}

.state-map-container {
    background: var(--bg-color);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .state-map-container {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.5) 0%, rgba(30, 30, 30, 0.3) 100%);
}

.state-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px var(--shadow);
}

.state-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 164, 179, 0.2);
}

.state-card.no-trips {
    opacity: 0.5;
    background: var(--bg-color);
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.state-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.state-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.state-count {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 4px;
}

.state-label {
    font-size: 10px;
    color: var(--text-tertiary);
}

.states-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    font-size: 12px;
}

/* Achievements/Badges */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.badge {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge.unlocked {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(76, 175, 80, 0.1) 100%);
}

.badge.locked {
    opacity: 0.4;
    filter: grayscale(100%);
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.badge-icon {
    font-size: 40px;
    margin-bottom: 8px;
    display: block;
}

.badge-name {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.badge-description {
    font-size: 10px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.badge-progress {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 6px;
}

.badge.unlocked .badge-progress {
    color: var(--success);
}

.badge-unlock-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.3) 0%, transparent 70%);
    animation: unlockPulse 0.6s ease-out;
    pointer-events: none;
}

@keyframes unlockPulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    .info-row {
        grid-template-columns: 1fr;
    }

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

    .stats {
        grid-template-columns: 1fr;
    }

    .stats-overview {
        grid-template-columns: 1fr;
    }

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

@supports (padding: max(0px)) {
    body {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    .container {
        padding: 16px 0;
    }
}

.header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.header-icon-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.header-auth-btn {
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.heatmap-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.heatmap-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.heatmap-nav-btn {
    padding: 8px 12px;
    font-size: 13px;
}

.heatmap-month-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.legend-box-empty {
    background: #ebedf0;
}

.legend-box-level-1 {
    background: #c6e48b;
}

.legend-box-level-2 {
    background: #7bc96f;
}

.legend-box-level-3 {
    background: #239a3b;
}

.legend-box-level-4 {
    background: #196127;
}

.stats-validity-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.stats-validity-column {
    flex: 1;
}

.muted-label {
    color: #999;
    margin-bottom: 4px;
}

.value-strong {
    font-weight: 600;
    color: var(--dark);
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.section-subtitle-lg {
    margin-bottom: 16px;
}

.section-subtitle-muted {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.stat-box-green {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    border-radius: 8px;
}

.stat-box-blue {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border-radius: 8px;
}

.label-muted-light {
    color: rgba(255,255,255,0.8);
}

.value-light {
    color: white;
}

.carbon-comparison {
    margin-top: 16px;
    padding: 12px;
    background: var(--light);
    border-radius: 8px;
    font-size: 12px;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.comparison-row.last {
    margin-bottom: 0;
}

.comparison-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.comparison-value {
    font-weight: 600;
}

.carbon-footprint-message {
    margin-top: 12px;
    padding: 12px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 8px;
    color: #2e7d32;
    font-size: 12px;
    line-height: 1.4;
    display: none;
}

.trips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trips-actions {
    display: flex;
    gap: 8px;
}

.heading-reset {
    margin: 0;
}

.filter-btn {
    font-size: 12px;
    padding: 6px 12px;
}

.empty-state {
    color: #999;
    text-align: center;
    padding: 20px;
}

.quick-buttons-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.multi-select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.help-text {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.help-text-inline {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: -8px;
    margin-bottom: 16px;
}

.btn-full {
    width: 100%;
}

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

.modal-input {
    margin-bottom: 12px;
}

.modal-note {
    display: block;
    color: #999;
    margin-bottom: 12px;
}

.modal-title {
    margin-bottom: 20px;
    color: var(--primary);
}

.quick-buttons-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.divider {
    margin: 16px 0;
    border: none;
    border-top: 1px solid var(--border);
}

.help-text-small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 4px;
}

.help-text-tight {
    margin-top: -4px;
}

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

.modal-input {
    margin-bottom: 12px;
}

.modal-note {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 12px;
}

.modal-title {
    margin-bottom: 20px;
    color: var(--primary);
}

.modal-buttons-spaced {
    margin-top: 20px;
}

.modal-buttons.spaced {
    margin-top: 20px;
}

.help-text-tight {
    margin-top: -4px;
}

.field-spacing-top {
    margin-top: 16px;
}

.field-spacing-top-sm {
    margin-top: 12px;
}

.section-spacing-md {
    margin-bottom: 16px;
}
