body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

#wizard {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

h2 {
    color: #333;
}

#navigation {
    padding: 20px 20px 0;
}

.nav-button {
    margin-bottom: 3px;
    background-color: #ddd;
    border: none;
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.nav-button.active {
    background-color: #4CAF50;
    color: white;
}

#expensesTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

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

#expensesTable th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#expensesTable input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#totalPercentage {
    font-weight: bold;
    margin-bottom: 10px;
}

#totalPercentage.ok {
    color: green;
}

#error {
    color: red;
    margin-bottom: 10px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

#calculateButton {
    margin-top: 10px;
}

.next-button, .back-button {
    background-color: #008CBA;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.next-button:hover, .back-button:hover {
    background-color: #007B9A;
}

.back-button {
    background-color: #f44336;
    margin-right: 10px;
}

.back-button:hover {
    background-color: #d32f2f;
}

/* Add these styles to the existing CSS */

#inflationResult {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

#inflationResult h3 {
    margin-top: 0;
}

#inflationResult h2 {
    color: #4CAF50;
    font-size: 2em;
}

.reset-button {
    background-color: #FFA500;
}

.reset-button:hover {
    background-color: #FF8C00;
}

/* Add these styles to the existing CSS */

#calculationTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

#calculationTable th {
    background-color: #4CAF50;
    color: white;
}

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

#calculationTable tr:hover {
    background-color: #f5f5f5;
}

/* Media query for mobile screens */
@media screen and (max-width: 600px) {
    #calculationTable, #calculationTable tbody, #calculationTable tr {
        display: block;
    }
    
    #calculationTable thead {
        display: none;
    }
    
    #calculationTable tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 5px;
    }
    
    #calculationTable td {
        display: flex;
        flex-direction: column;
        border: none;
        position: relative;
        padding: 5px 0;
    }
    
    #calculationTable td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.85em;
        color: #666;
        margin-bottom: 3px;
    }

    #calculationTable td span {
        font-size: 1.1em;
        color: #333;
    }
}

.banner {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.banner h1 {
    margin: 0;
    font-size: 24px;
}

.flag-icon {
    width: 30px;
    height: 20px;
    margin-left: 10px;
    position: relative;
    background: linear-gradient(to bottom, #FF9933 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #138808 66.66%);
    border: 1px solid #ddd;
    display: inline-block;
}

.flag-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border: 2px solid #000080;
    border-radius: 50%;
    box-sizing: border-box;
}

.flag-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    background-color: #000080;
    border-radius: 50%;
}

.step {
    padding: 0 20px 20px;
}

.data-source {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}

.data-source a {
    color: #4CAF50;
    text-decoration: none;
}

.data-source a:hover {
    text-decoration: underline;
}

/* Remove dropdown/up arrows from number inputs */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; /* Standard syntax */
}

.instruction {
    margin-bottom: 20px;
    color: #666;
    font-style: italic;
}

.share-buttons {
    margin-top: 20px;
    text-align: center;
}

.share-buttons p {
    margin-bottom: 10px;
}

.share-button {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    color: white;
    text-align: center;
    border-radius: 50%;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.share-button:hover {
    opacity: 0.8;
}

.linkedin {
    background-color: #0077B5;
}

.facebook {
    background-color: #3B5998;
}

.whatsapp {
    background-color: #25D366;
}

.telegram {
    background-color: #0088cc;
}

.instagram {
    background: #f09433; 
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
    background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); 
}

.copy-button {
    background-color: #0077B5;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 4px;
}

.copy-button:hover {
    background-color: #006097;
}

/* Add these styles to the existing CSS */

.result-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.inflation-result {
    margin-bottom: 20px;
}

.inflation-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
}

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

.value {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
}

.explanation {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

.highlight {
    font-weight: bold;
    color: #4CAF50;
}

#inflationResult h3 {
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#calculationTable {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#calculationTable th {
    background-color: #4CAF50;
    color: white;
}

.share-buttons {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.share-buttons p {
    font-weight: bold;
    color: #333;
}

/* Add this to the existing .share-button styles */
.twitter {
    background-color: #1DA1F2;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: help;
}

.tooltip-icon {
    color: #666;
    font-size: 14px;
}


.info-icon {
    color: #666;
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
}

.info-icon:hover {
    color: #4CAF50;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal h3 {
    margin-top: 0;
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal .item {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

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

.modal .item:hover {
    background-color: #f9f9f9;
}

/* Mobile responsiveness */
@media screen and (max-width: 600px) {
    .modal-content {
        margin: 10% auto;
        width: 90%;
        padding: 15px;
    }
}
