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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    line-height: 1.6;
}

.calculator-container {
    max-width: 700px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="date"]:focus {
    outline: none;
    border-color: #4a90e2;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

button {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

#calculate-btn {
    background-color: #2563eb;
    color: white;
}

#calculate-btn:hover {
    background-color: #444444;
}

#reset-btn {
    background-color: #e0e0e0;
    color: #666;
}

#reset-btn:hover {
    background-color: #d0d0d0;
}

.result {
    margin-top: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.result-entries {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-entry {
    padding: 12px;
    background-color: white;
    border-radius: 4px;
    border-left: 3px solid #4a90e2;
    text-align: left;
}

.entry-value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.entry-label {
    font-size: 13px;
    color: #888;
}

.error {
    margin-top: 20px;
    padding: 15px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    text-align: center;
    font-size: 14px;
}

.hidden {
    display: none;
}

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

    h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .entry-value {
        font-size: 16px;
    }

    .entry-label {
        font-size: 12px;
    }

    .button-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}

body.add-color-body{
    background-color: #EEEEEE !important;
}