:root {
    --primary-blue: #2c3e50;
    --secondary-blue: #3498db;
    --accent-green: #27ae60;
    --danger-red: #e74c3c;
    --light-gray: #ecf0f1;
    --dark-gray: #7f8c8d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 15px;
}

.calculator-container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.input-section {
    width: 100%;
}

.input-section h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 22px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
    width: 100%;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.calculate-btn {
    background-color: var(--secondary-blue);
    color: white;
}

.reset-btn {
    background-color: var(--dark-gray);
    color: white;
}

.results-section {
    width: 100%;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    text-align: center;
}

.summary-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-blue);
    margin: 8px 0;
}

.summary-label {
    color: var(--dark-gray);
    font-size: 13px;
}

.savings-highlight {
    background: linear-gradient(135deg, #f0f7ff, #e1f0ff);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border-left: 4px solid var(--secondary-blue);
}

.savings-badge {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.savings-badge span {
    color: var(--accent-green);
}

.time-saved {
    font-size: 15px;
}

.time-saved span {
    font-weight: 600;
    color: var(--primary-blue);
}

.chart-container {
    width: 100%;
    height: 250px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.results-table {
    width: 100%;
    overflow-x: auto;
    margin-top: 10px;
}

.results-table table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th, 
.results-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.results-table th {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    font-weight: 600;
}

@media (max-width: 480px) {
    .calculator-container {
        padding: 15px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .chart-container {
        height: 220px;
    }
    
    .results-table th, 
    .results-table td {
        padding: 8px 10px;
    }
}