
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.calculator-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(236, 106, 43, 0.1);
    margin-bottom: 40px;
}

h1 {
    color: #ec6a2b;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

h2 {
    color: #ec6a2b;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 3px solid #ec6a2b;
    padding-bottom: 10px;
}

h3 {
    color: #ec6a2b;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

select:focus, input:focus {
    outline: none;
    border-color: #ec6a2b;
}

button {
    width: 100%;
    padding: 15px;
    background: #ec6a2b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #d45a1f;
}

.result {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #ec6a2b 0%, #d45a1f 100%);
    border-radius: 8px;
    color: white;
    text-align: center;
    display: none;
}

.result.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result h3 {
    color: white;
    margin-top: 0;
    font-size: 1.1rem;
}

.result-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 10px 0;
}

.article-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(236, 106, 43, 0.1);
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th {
    background: #ec6a2b;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background: #fff5f0;
}

tr:last-child td {
    border-bottom: none;
}

.info-box {
    background: #fff5f0;
    border-left: 4px solid #ec6a2b;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .calculator-section, .article-section {
        padding: 20px;
    }

    .result-value {
        font-size: 2rem;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 10px;
    }
}
