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

body {
    font-family: 'Inter', 'Roboto', system-ui, sans-serif;
    background-color: #004d40;
    color: #222222;
    line-height: 1.5;
    min-height: 100vh;
    padding: 20px 16px;
    font-size: 16px;
}

.calculator-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px;
}

.container {
    max-width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 32px;
    padding: 30px;
    background-color: #004d40;
    border-radius: 12px;
}

.header-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.header h1 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
}

.header p {
    font-size: 18px;
    color: #b2dfdb;
}

.section-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid rgba(13, 78, 78, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    padding: 24px;
}

.config-section {
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid rgba(13, 78, 78, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 24px;
    margin-bottom: 32px;
}

.config-section h2 {
    color: #00332e;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

.config-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .config-inputs {
        grid-template-columns: 1fr;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    font-size: 16px;
    color: #00332e;
    display: block;
    margin-bottom: 8px;
}

.input-group input {
    padding: 8px 12px;
    border: 1px solid #999;
    background-color: #f8f8f8;
    color: #222222;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Inter', 'Roboto', system-ui, sans-serif;
    display: block;
    width: 100%;
}

.input-group input:focus {
    outline: none;
    border-color: #004d40;
    box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.2);
}

.value-prompt {
    padding: 20px;
    background-color: #f0fdf8;
    border-left: 4px solid #00796b;
    border-radius: 6px;
    font-style: italic;
    color: #555555;
}

.tasks-section,
.tier-2-section {
    margin-bottom: 32px;
}

.tier-header {
    background-color: #f0fdf8;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 0;
}

.tier-header h2 {
    color: #00332e;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tier-header p {
    color: #555555;
    font-size: 16px;
}

.tasks-container {
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid rgba(13, 78, 78, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.task-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 16px 20px;
    background-color: #004d40;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    align-items: center;
    text-align: left;
    border-radius: 6px 6px 0 0;
}

.task-header > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.2;
    white-space: nowrap;
}

.task-header .task-info-header {
    justify-content: flex-start;
    text-align: left;
}

.task-header .time-saved-header,
.task-header .effort-header,
.task-header .hours-input-header,
.task-header .hours-saved-header {
    text-align: center;
    justify-content: center;
}

.task-item {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    background-color: #ffffff;
    transition: background-color 0.2s;
    min-height: 70px;
}

.task-item:hover {
    background-color: #f0fdf8;
}

.task-item:last-child {
    border-bottom: none;
}

@media (max-width: 968px) {
    .task-header {
        display: none;
    }

    .task-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
        min-height: auto;
    }

    .task-info {
        margin-bottom: 15px;
    }

    .task-meta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        align-items: center;
    }

    .time-savings {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .time-savings::before {
        content: "⚡ Typical Gain";
        font-size: 12px;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
    }

    .difficulty-badge {
        width: 100%;
        text-align: center;
    }

    .difficulty-badge::before {
        content: "⚙️ Setup Effort: ";
        font-size: 12px;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
        display: block;
        margin-bottom: 5px;
    }

    .task-input {
        width: 100%;
    }

    .task-input-container {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
        justify-content: center;
    }

    .task-input-container::before {
        content: "⌚ Hrs / Wk";
        font-size: 12px;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
    }

    .hours-saved-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .hours-saved-container::before {
        content: "🎯 Saved Hrs";
        font-size: 12px;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
    }
}

.task-info {
    flex: 1;
}

.task-name {
    font-weight: 600;
    font-size: 16px;
    color: #00332e;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 2px;
    border-radius: 3px;
}

.info-btn:hover {
    opacity: 1;
    background-color: #f0f0f0;
}

.task-description {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin-top: 4px;
}

.time-savings {
    text-align: center;
    min-width: 100px;
}

.time-savings-value {
    font-weight: 600;
    color: #00796b;
    font-size: 16px;
}

.time-savings-value.medium-low {
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    display: inline-block;
}

.time-savings-value.unknown {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    display: inline-block;
}

.difficulty-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}

.difficulty-low {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.difficulty-medium {
    background-color: #fff8e1;
    color: #f57c00;
}

.difficulty-high {
    background-color: #ffebee;
    color: #c62828;
}

.task-input {
    padding: 8px 12px;
    border: 1px solid #999;
    background-color: #f8f8f8;
    color: #222222;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    font-family: 'Inter', 'Roboto', system-ui, sans-serif;
    width: 120px;
}

.task-input:focus {
    outline: none;
    border-color: #004d40;
    box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.2);
}

.hours-saved {
    text-align: center;
    min-width: 100px;
    font-weight: 600;
    color: #00796b;
    font-size: 16px;
}

.tier-2-section .tier-header {
    background-color: #f0fdf8;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 0;
}

.tier-2-toggle {
    background: linear-gradient(135deg, #bf8e29 0%, #a67821 100%);
    border: none;
    color: #ffffff;
    padding: 20px 30px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
    width: 100%;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tier-2-toggle:hover {
    background: linear-gradient(135deg, #a67821 0%, #8a5f1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toggle-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

.toggle-subtitle {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.9;
}

.tier-2-content {
    display: none;
}

.tier-2-content.show {
    display: block;
}

.summary-section {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(13, 78, 78, 0.8);
}

.summary-section h2 {
    color: #00332e;
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

.summary-grid {
    display: flex;
    justify-content: space-between;
    text-align: center;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .summary-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

.summary-item {
    flex: 1;
    padding: 16px;
    background-color: #f0fdf8;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.summary-label {
    font-weight: 600;
    color: #00332e;
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    color: #00796b;
    display: block;
}

.total-savings {
    margin-top: 20px;
    padding: 20px;
    background-color: #f0fdf8;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #00796b;
}

.total-savings-label {
    font-weight: 600;
    color: #00332e;
    font-size: 18px;
    margin-bottom: 8px;
}

.total-savings-value {
    font-size: 28px;
    font-weight: bold;
    color: #00796b;
}

.footer {
    background-color: #004d40;
    color: #ffffff;
    text-align: center;
    padding: 16px;
    margin-top: 40px;
    font-size: 14px;
}

.footer p {
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .calculator-wrapper {
        padding: 10px 8px;
    }

    .task-meta {
        width: 100%;
    }

    .task-input {
        width: 100%;
    }
}