/* Reset and basic styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.header {
    background-color: #ffffff;
    width: 100%;
    padding: 15px 0;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    left: 0;
    z-index: 1000;
}

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

.header-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.header-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #0096FF;
}

.main-content {
    padding-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .header {
        position: relative;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .header-nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        padding-top: 20px;
    }

    .container {
        padding-top: 0;
    }
}


.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.content-wrapper {
        background-color: #f9f9f9;
        color: #333;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
}


.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 20px;
}

/* Sidebar styles */
.sidebar {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.sidebar h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.sidebar label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #555;
}

.sidebar input, 
.sidebar select, 
.sidebar button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1em;
}

.sidebar button {
    background-color: #28a745;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sidebar button:hover {
    background-color: #218838;
}

/* Results container */
.results-container {
    flex: 2;
}

/* Mobile tabs */
.mobile-tabs {
    display: none;
    margin-bottom: 20px;
    color: black;
}

.tab-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    background-color: #686868;
    cursor: pointer;
}

.tab-btn.active {
    background-color: #28a745;
    color: white;
}

/* Candidates wrapper */
.candidates-wrapper {
    display: flex;
    gap: 20px;
}

/* Candidate cards */
.candidate {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1;
}

.candidate-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.candidate-photo {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.candidate h3 {
    font-size: 1.4em;
    margin: 0;
}

.net-income-title {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 5px;
}

.net-income {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.positive-income {
    color: #28a745;
}

.negative-income {
    color: #c10013;
}

.chart {
    width: 100%;
    height: 350px;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .results-container {
        width: 100%;
    }

    .mobile-tabs {
        display: flex;
        justify-content: center;
    }

    .candidates-wrapper {
        flex-direction: column;
    }

    .candidate {
        display: none;
    }

    .candidate.active {
        display: block;
    }

    .chart {
        height: 300px;
    }
}

/* Existing CSS remains the same until the checkbox styling */

/* Checkbox group styling */
.checkbox-group {
    margin: 0px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: normal;
    color: #333;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-text {
    flex: 1;
}

/* Button styling */
button {
    background-color: #28a745;
    color: #ffffff;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

.footer-disclaimer {
    box-sizing: border-box;
    width: 100%; 
    margin: 20px;
    text-align: center;
    position: relative;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.1);
}