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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #c4d82e 0%, #8fb91a 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header, .panel, .stats-block, .trips-section {
    background: white;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2d3748;
    font-size: 2.5em;
    margin-bottom: 10px;
}

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

.logo-icon {
    flex-shrink: 0;
    border-radius: 14px;
}

@media (max-width: 600px) {
    .header {
        flex-direction: column;
        text-align: center;
    }
}

h2 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.subtitle {
    color: #718096;
    font-size: 1.1em;
}

.profile-label {
    color: #2d3748;
    font-size: 1.05em;
    font-weight: 600;
    margin-top: 6px;
}

.privacy-note {
    color: #38a169;
    font-size: 0.9em;
    margin-top: 8px;
    font-weight: 600;
}

.panel-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.panel-row:last-child {
    margin-bottom: 0;
}

.panel-row label {
    color: #4a5568;
    font-size: 0.9em;
    font-weight: 600;
}

.panel-row input[type="number"] {
    width: 90px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.panel-row select,
.panel-row input[type="file"] {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

button {
    background: #8fb91a;
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background: #7aa016;
}

button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

button.danger {
    background: #e53e3e;
}

button.danger:hover {
    background: #c53030;
}

.hint {
    color: #a0aec0;
    font-size: 0.85em;
    margin-top: 4px;
}

.link-button {
    background: none;
    border: none;
    padding: 0;
    color: #38a169;
    font-weight: 600;
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.link-button:hover {
    background: none;
    color: #2f855a;
}

#privacy-dialog {
    max-width: 520px;
    width: calc(100% - 40px);
    border: none;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#privacy-dialog::backdrop {
    background: rgba(45, 55, 72, 0.5);
}

#privacy-dialog h2 {
    margin-bottom: 16px;
}

#privacy-dialog p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 14px;
}

#privacy-dialog code {
    background: #f7fafc;
    padding: 1px 5px;
    border-radius: 4px;
}

.status-message {
    margin-top: 10px;
    color: #4a5568;
    font-size: 0.9em;
    min-height: 1.2em;
}

.status-message.error {
    color: #e53e3e;
    font-weight: 600;
}

#print-row {
    justify-content: flex-end;
    margin-bottom: 20px;
}

.fuel-price-banner {
    background: white;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #4a5568;
    font-size: 0.95em;
}

.trend {
    font-weight: 600;
    font-size: 0.9em;
}

.trend-up {
    color: #e53e3e;
}

.trend-down {
    color: #38a169;
}

.trend-flat {
    color: #a0aec0;
}

.trend-hint {
    color: #a0aec0;
    font-size: 0.85em;
}

.empty-state {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #718096;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.stat-label {
    color: #718096;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    color: #2d3748;
    font-size: 1.9em;
    font-weight: bold;
}

.stat-unit {
    color: #a0aec0;
    font-size: 0.7em;
    margin-left: 5px;
}

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

thead {
    background: #f7fafc;
}

th {
    padding: 12px;
    text-align: left;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

td {
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    color: #2d3748;
}

tr:hover {
    background: #f7fafc;
}

.efficiency-good {
    color: #38a169;
    font-weight: 600;
}

.efficiency-medium {
    color: #d69e2e;
    font-weight: 600;
}

.efficiency-low {
    color: #e53e3e;
    font-weight: 600;
}

.footer {
    text-align: center;
    color: white;
    margin-top: 30px;
    padding: 20px;
    opacity: 0.9;
}

.footer-link {
    color: white;
    text-decoration: underline;
}

.footer .disclaimer {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 6px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    table {
        font-size: 0.85em;
    }
    th, td {
        padding: 8px;
    }
    .panel-row {
        flex-direction: column;
        align-items: stretch;
    }
}
