body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ced4da;
    margin-bottom: 10px;
}

.btn {
    padding: 12px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
}

.btn-primary {
    background-color: #7c4dff;
}

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

.btn-success {
    background-color: #28a745;
}

.btn-info {
    background-color: #17a2b8;
}

.btn:hover {
    opacity: 0.85;
}

.calculator-container {
    background-color: #fff;
    width: 100%;
    max-width: 480px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.calculator-title {
    font-size: 20px;
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 15px;
    margin-top: 0;
    margin-bottom: 20px;
    background: linear-gradient(to right, #7c4dff, #b388ff);
    border-radius: 10px;
}

.calculator-title i {
    margin-right: 8px;
}

.input-group {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.section-title {
    color: #7c4dff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #7c4dff;
    padding-bottom: 8px;
}

.help-text {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: -5px;
    margin-bottom: 10px;
}

#button-container {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#button-container .btn {
    flex: 1;
}

#result {
    border: 2px solid #7c4dff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    background-color: #ede7f6;
    display: none;
}

#result h3 {
    color: #7c4dff;
    margin-top: 0;
    text-align: center;
    border-bottom: 1px solid #7c4dff;
    padding-bottom: 10px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.result-row:last-child {
    border-bottom: none;
}

.result-label {
    color: #555;
}

.result-value {
    font-weight: bold;
    color: #333;
}

.file-display {
    background: linear-gradient(135deg, #7c4dff, #b388ff);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 15px 0;
}

.file-display .big-number {
    font-size: 42px;
    font-weight: bold;
    display: block;
}

.file-display .label {
    font-size: 14px;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.stat-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.stat-box .value {
    font-size: 24px;
    font-weight: bold;
    color: #7c4dff;
    display: block;
}

.stat-box .label {
    font-size: 12px;
    color: #666;
}

.cost-section {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.cost-section h4 {
    margin-top: 0;
    color: #2e7d32;
    border-bottom: 1px solid #c8e6c9;
    padding-bottom: 8px;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
    font-size: 14px;
}

td, th {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #7c4dff;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

.disclaimer-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

#new-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.smaller-button {
    width: 45%;
    padding: 8px;
    font-size: 12px;
}

.copy-section {
    margin-top: 20px;
}

@media (max-width: 600px) {
    .calculator-container {
        margin: 10px;
        padding: 15px;
    }

    #button-container {
        flex-direction: column;
    }

    .file-display .big-number {
        font-size: 32px;
    }

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

    .stat-box .value {
        font-size: 20px;
    }
}
