/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #000000; /* Black background like doge.gov */
    color: #FFFFFF;           /* White text for contrast */

    /* Use flex-column layout for vertical stacking */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ensure header, main, and footer stack vertically */
header {
    flex-shrink: 0; /* Prevent header from shrinking */
    width: 100%; /* Full width */
}

main {
    flex-grow: 1; /* Allow main content to take up remaining space */
    padding: 20px;
    box-sizing: border-box;
    width: 100%; /* Full width */
    max-width: 1200px; /* Optional: limit max width for readability */
    margin: auto; /* Center main content horizontally */
    background-color: #000000; /* Black background */
}

footer {
    flex-shrink: 0; /* Prevent footer from shrinking */
    width: 100%; /* Full width */
    background-color: #000000; /* Black background */
    color: #FFFFFF; /* White text */
    text-align: center;
    padding: 20px;
}

/* Calculator Container */
.calculator-container {
    background: #000000; /* Black background */
    padding: 20px;
    border-radius: 5px; /* Use border-radius from global.css */
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1); /* White shadow for contrast */
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF; /* White text */
}

/* Result Section */
#result-container {
    margin-top: 20px;
    font-size: 20px;
    padding: 10px;
    background-color: #1A1A1A; /* Dark gray for contrast on black */
    border: 1px solid #007BFF; /* Bright blue border */
    border-radius: 5px;
}

#result {
    font-size: 24px;
    font-weight: bold;
    color: #007BFF; /* Bright blue for emphasis */
    margin-top: 5px;
}

/* Body Part Buttons */
.body-part-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.body-part-btn {
    background-color: #007BFF; /* Bright blue */
    color: #FFFFFF; /* White text */
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.body-part-btn.selected {
    background-color: #0056b3; /* Darker blue for selected state */
    font-weight: bold;
}

.body-part-btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Form Inputs */
.condition-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.condition-name,
.condition-select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #333; /* Dark gray border */
    border-radius: 5px;
    box-sizing: border-box;
    width: calc(50% - 15px);
    background-color: #1A1A1A; /* Dark gray background */
    color: #FFFFFF; /* White text */
}

.condition-name:focus,
.condition-select:focus {
    border-color: #007BFF; /* Bright blue on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3); /* Bright blue shadow */
}

/* Completed Conditions Section */
#completed-conditions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333; /* Dark gray border */
    color: #FFFFFF; /* White text */
}

.completed-condition {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #1A1A1A; /* Dark gray for contrast on black */
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #333; /* Dark gray border */
}

.completed-condition p {
    margin: 0;
    font-size: 16px;
    color: #FFFFFF; /* White text */
}

/* Delete Button */
.delete-btn {
    background-color: #ff0000; /* Red for delete button */
    color: #FFFFFF; /* White text */
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #cc0000; /* Darker red on hover */
}

/* Styling for the container holding the bilateral checkbox */
.bilateral-container {
    display: flex;
    align-items: center; /* Aligns label and checkbox vertically */
    gap: 5px; /* Adds spacing between the checkbox and label */
    font-size: 14px;
    margin-left: 10px; /* Adds spacing from the condition text */
    color: #FFFFFF; /* White text */
}

/* Styling for the checkbox itself */
.bilateral-container input[type="checkbox"] {
    margin: 0; /* Removes default browser margins */
    cursor: pointer; /* Makes it clear the checkbox is clickable */
}

/* Styling for the label */
.bilateral-container label {
    display: flex;
    align-items: center; /* Aligns content vertically */
    color: #FFFFFF; /* White text */
    font-weight: normal; /* Ensures label font is consistent */
}

/* Error Note */
.error-note {
    color: #ff0000; /* Red for error */
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.hidden {
    display: none; /* Initially hide the error note */
}

/* Blog Link Styling */
.blog-link-container {
    margin-top: 40px;
    text-align: center;
}

.blog-link {
    display: inline-block;
    color: #007BFF; /* Bright blue for links */
    text-decoration: underline; /* Ensure it looks like a hyperlink */
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: none; /* Remove underline on hover */
}

.name-input-container {
    display: flex;
    align-items: center;
}

.condition-name-input {
    /* Ensure the input field is wide enough to display long names */
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    margin-right: 10px;
    background-color: #333;
    color: #FFFFFF;
    border: 1px solid #555;
}

.percentage-display {
    margin-left: 10px;
    color: #ffffff; /* Matches your white text theme */
    font-size: 1em;
}

/* VA Conditions Styling */
.va-condition {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background-color: #000000; /* Black background */
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Column Styling */
.condition-name, .condition-rating, .condition-bilateral {
    color: #FFFFFF; /* White text */
}

.condition-rating {
    color: #ff0000; /* Red font for rating */
    text-align: center;
}

.condition-bilateral {
    text-align: center;
}

/* Rating Container for VA Conditions */
.rating-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* What-If Dropdown */
.what-if-select {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 2px;
}

/* Highlight Hypothetical Ratings */
.condition-rating.what-if {
    color: #ff9900; /* Orange to indicate a what-if rating */
}

/* Rating Container for VA Conditions */
.rating-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Simulation Note */
.simulation-note {
    font-style: italic;
    color: #ff9900; /* Orange to indicate simulation */
    margin-left: 5px;
}

/* What-If Dropdown */
.what-if-select {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 2px;
}