/* Main Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

h1, h2, h3 {
    color: #8E3F65;
}

header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8E3F65;
    position: relative;
}

header:after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ECBE13;
}

.council-branding h2 {
    color: #8E3F65;
    margin-top: 5px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th {
    background-color: #8E3F65;
    color: white;
    text-align: left;
    padding: 12px;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
}

tr:nth-child(even) {
    background-color: rgba(236, 190, 19, 0.1);
}

/* ROI Adjustment Tables */
#adjustmentTable, #operationalTable {
    font-size: 0.95em;
}

#adjustmentTable th, #operationalTable th {
    text-align: center;
    font-size: 0.9em;
    padding: 10px 8px;
}

#adjustmentTable td, #operationalTable td {
    text-align: center;
}

#adjustmentTable tr:first-child td, #operationalTable tr:first-child td {
    background-color: rgba(142, 63, 101, 0.1);
}

#adjustmentTable tr:last-child td, #operationalTable tr:last-child td {
    background-color: rgba(236, 190, 19, 0.2);
}

/* Form Elements */
input {
    width: 100px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-calculate {
    background-color: #8E3F65;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-calculate:hover {
    background-color: #6d304e;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Tabs */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    margin-bottom: 20px;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 16px;
}

.tab button:hover {
    background-color: #ddd;
}

.tab button.active {
    background-color: #8E3F65;
    color: white;
}

.tab-with-export {
    float: left;
    position: relative;
    display: flex;
    align-items: center;
}

.tab-with-export .btn-export {
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    margin-left: 10px;
    font-size: 13px;
    padding: 6px 12px;
}

.tabcontent {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
    background-color: white;
}

/* Results Section */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.btn-export {
    background-color: #ECBE13;
    color: #333;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-export:hover {
    background-color: #d9ad12;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.btn-export:before {
    content: "";
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3E%3C/path%3E%3Cpolyline points='7 10 12 15 17 10'%3E%3C/polyline%3E%3Cline x1='12' y1='15' x2='12' y2='3'%3E%3C/line%3E%3C/svg%3E");
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.results {
    background-color: #f8eaf2;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.results:nth-child(even) {
    background-color: #fdf7e0;
}

.results h3 {
    margin-top: 0;
    border-bottom: 1px solid #8E3F65;
    padding-bottom: 10px;
}

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

/* Chart Containers */
.chart-container {
    height: 300px;
    margin-top: 20px;
    margin-bottom: 30px;
    position: relative;
}

/* Footer */
footer {
    background-color: #8E3F65;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #ECBE13;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.faie-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faie-logo {
    height: 40px;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .tab button {
        padding: 10px 12px;
        font-size: 14px;
    }

    .faie-branding {
        flex-direction: column;
        text-align: center;
    }
    
    .faie-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .btn-calculate {
        width: 100%;
    }
}
