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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

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

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    animation: fadeIn 0.5s ease-in;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.3em;
    font-weight: 300;
}

.step-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.step-section.completed {
    opacity: 0.8;
    border: 3px solid #4caf50;
}

.step-section.active {
    animation: slideIn 0.5s ease-out;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8em;
    text-align: center;
    margin-right: 15px;
}

.step-header h2 {
    color: #333;
    font-size: 2em;
}

.step-content {
    padding: 20px 0;
}

.info-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.big-text {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.info-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.info-item .emoji {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.instruction {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #555;
}

.instruction-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.instruction-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.step-instruction {
    background: #fff9c4;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 5px solid #fbc02d;
}

.instruction-title {
    font-size: 1.3em;
    color: #f57f17;
    margin-bottom: 15px;
}

.instruction-steps {
    margin: 15px 0;
    padding-left: 25px;
}

.instruction-steps li {
    margin: 10px 0;
    line-height: 1.6;
}

.instruction-steps code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.upload-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.file-input-wrapper {
    margin-bottom: 20px;
}

.file-label {
    display: inline-block;
    padding: 15px 30px;
    background: #667eea;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background 0.3s;
}

.file-label:hover {
    background: #5568d3;
}

input[type="file"] {
    display: none;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.action-form {
    text-align: center;
    margin-top: 20px;
}

.result-box {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.result-box.ambition {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.result-box.final {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.result-box h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.co2-display {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin: 20px 0;
}

.co2-value {
    font-size: 3em;
    font-weight: bold;
    color: #e91e63;
}

.co2-unit {
    font-size: 1.2em;
    color: #666;
    margin-left: 10px;
}

.cost-display {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin: 20px 0;
}

.cost-display p {
    font-size: 1.5em;
    color: #1565c0;
    margin: 0;
}

.cost-display strong {
    font-size: 1.2em;
}

.cost-savings {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin: 20px 0;
}

.cost-label {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.cost-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #2e7d32;
    margin: 0;
}

.result-grid {
    margin: 20px 0;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    margin: 8px 0;
    background: white;
    border-radius: 5px;
}

.result-item.highlight {
    background: #f5f5f5;
    font-weight: 600;
}

.result-label {
    color: #666;
    font-size: 1em;
}

.result-value {
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
}

.result-item.highlight .result-value {
    color: #667eea;
    font-size: 1.2em;
}

.breakdown {
    margin-top: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin: 10px 0;
    background: white;
    border-radius: 8px;
    border-left: 5px solid #e91e63;
}

.breakdown-item.negative {
    border-left-color: #4caf50;
}

.breakdown-item .label {
    font-weight: 600;
    font-size: 1.1em;
}

.breakdown-item .value {
    font-weight: bold;
    color: #e91e63;
}

.breakdown-item.negative .value {
    color: #4caf50;
}

.net-total {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    border: 3px solid #667eea;
    font-weight: 600;
}

.net-label {
    font-size: 1.2em;
    color: #333;
}

.net-value {
    font-size: 1.3em;
    color: #667eea;
}

.impact-display {
    text-align: center;
    margin: 30px 0;
}

.impact-label {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.positive-impact .co2-value {
    color: #4caf50;
}

.negative-impact .co2-value {
    color: #f44336;
}

.equivalents {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 10px;
}

.equivalents h4 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

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

.equivalent-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
}

.emoji-big {
    font-size: 4em;
    display: block;
    margin-bottom: 10px;
}

.equiv-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #2e7d32;
    margin: 10px 0;
}

.equiv-label {
    font-size: 1.1em;
    color: #555;
}

.celebration {
    text-align: center;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    border-radius: 10px;
}

.celebration .big-text {
    font-size: 1.8em;
    color: #f57f17;
    margin-bottom: 15px;
}

.warning-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.warning-box p {
    margin: 10px 0;
    font-size: 1.1em;
}

.comparison-chart {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
}

.comparison-chart h4 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    font-weight: 600;
    min-width: 80px;
}

.bar-wrapper {
    flex: 1;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    height: 40px;
}

.bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: bold;
    transition: width 1s ease-out;
}

.bar-current {
    background: linear-gradient(90deg, #f44336 0%, #e91e63 100%);
}

.bar-ambition {
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
}

.help-text {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    text-align: center;
}

.help-text p {
    color: #1976d2;
    font-size: 0.95em;
}

footer {
    text-align: center;
    color: white;
    margin-top: 40px;
    padding: 20px;
    font-size: 1.1em;
}

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

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

.csv-preview {
    margin: 20px 0;
}

.csv-details {
    margin: 15px 0;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
}

.csv-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #667eea;
    padding: 10px;
    list-style: none;
    user-select: none;
}

.csv-details summary::-webkit-details-marker {
    display: none;
}

.csv-details summary::before {
    content: '▶ ';
    display: inline-block;
    transition: transform 0.2s;
}

.csv-details[open] summary::before {
    transform: rotate(90deg);
}

.csv-details summary:hover {
    color: #5568d3;
}

.csv-details .csv-table-wrapper {
    margin-top: 10px;
}

.csv-table-wrapper {
    max-height: 400px;
    overflow: auto;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.csv-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

.csv-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #5568d3;
}

.csv-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.csv-table tbody tr:hover {
    background: #f5f5f5;
}

.csv-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.csv-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

.csv-table .more-rows {
    text-align: center;
    font-style: italic;
    color: #666;
    background: #fff9c4 !important;
}

.file-name {
    font-size: 1em;
    color: #667eea;
    font-weight: 600;
    margin: 10px 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1em;
    }

    .step-section {
        padding: 20px;
    }

    .step-header h2 {
        font-size: 1.5em;
    }

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

    .co2-value {
        font-size: 2em;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1em;
    }

    .csv-table-wrapper {
        max-height: 300px;
    }

    .csv-table th,
    .csv-table td {
        padding: 8px;
        font-size: 0.9em;
    }
}
