/* /home/ubuntu/reg261_tool_rewrite/style.css */

body {
    font-family: sans-serif;
    background-color: #f4f6f8; /* Light gray background */
    margin: 0;
    padding: 1rem;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #2c3e50; /* Dark blue-gray */
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

h2 {
    color: #34495e; /* Slightly lighter blue-gray */
    border-bottom: 2px solid #ecf0f1; /* Light gray border */
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

h3 {
    color: #2c3e50;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

h4 {
    color: #34495e;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

form div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    /* Removed margin-bottom: 0.2rem; */
    font-size: 1rem;
}

/* Add margin below input/select to make space for error message */
form div > input,
form div > select {
    margin-bottom: 0.2rem; 
}

input:focus,
select:focus {
    border-color: #3498db; /* Blue border on focus */
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

input[type="text"][disabled] {
    background-color: #eee;
    cursor: not-allowed;
}

button {
    padding: 0.7rem 1.3rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#addSegmentBtn {
    background-color: #3498db; /* Blue */
    color: white;
    margin-top: 0.5rem;
}

#addSegmentBtn:hover {
    background-color: #2980b9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

#addSegmentBtn:disabled {
    background-color: #bdc3c7; /* Gray when disabled */
    cursor: not-allowed;
    opacity: 0.7;
}

#assessBtn {
    background-color: #2ecc71; /* Green */
    color: white;
    width: 100%;
    margin-top: 1.5rem;
}

#assessBtn:hover {
    background-color: #27ae60;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.remove-segment-btn {
    background-color: #e74c3c; /* Red */
    color: white;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    float: right;
}

.remove-segment-btn:hover {
    background-color: #c0392b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.segment {
    border: 1px solid #e0e0e0;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.segment-header {
    margin-bottom: 0.8rem;
    overflow: hidden; /* Clear float */
}

.segment-header strong {
    font-size: 1.1rem;
    color: #34495e;
}

.disrupted-label {
    display: flex;
    align-items: center;
    margin-top: 0.8rem;
    font-weight: normal;
}

.segment-disrupted {
    margin-right: 0.5rem;
    width: auto; /* Override default input width */
    margin-bottom: 0; /* Override default input margin */
}

.error {
    color: #e74c3c; /* Red */
    font-size: 0.85rem;
    min-height: 1.2em; /* Reserve space to prevent layout shifts */
    margin-top: 0.2rem;
    display: block; /* Ensure it takes space even when empty if min-height is used */
}

#loadingIndicator {
    text-align: center;
    padding: 2rem;
    font-style: italic;
    color: #7f8c8d; /* Gray */
}

#assessmentResult {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #ecf0f1; /* Light gray-blue background */
    border: 1px solid #bdc3c7; /* Gray border */
    border-radius: 6px;
}

#assessmentResult h3 {
    margin-top: 0;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 0.5rem;
}

#assessmentResult p,
#assessmentResult ul {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

#assessmentResult ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

#assessmentResult hr {
    border: none;
    border-top: 1px dashed #bdc3c7;
    margin: 1rem 0;
}

#assessmentResult em {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        padding: 0.5rem;
    }
    .container {
        margin: 1rem auto;
        padding: 1rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.2rem;
    }
    button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    input[type="text"],
    input[type="number"],
    select {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}




#header-logo {
    display: block;
    max-width: 300px; /* Adjust as needed */
    height: auto;
    margin: 0 auto 1rem auto; /* Center the logo */
}

.disclaimer-text {
    font-size: 0.9rem;
    color: #555;
    background-color: #f9f9f9;
    border-left: 4px solid #3498db; /* Blue accent */
    padding: 0.8rem 1rem;
    margin: 1.5rem 0;
    line-height: 1.4;
}

.disclaimer-text a {
    color: #2980b9;
    text-decoration: none;
}

.disclaimer-text a:hover {
    text-decoration: underline;
}




.cta-section {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background-color: #e8f0fe; /* Light blue background */
    border: 1px solid #a8c7fa; /* Blue border */
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cta-section p {
    margin-bottom: 0.5rem;
}

.cta-section strong {
    color: #174ea6; /* Darker blue */
}

.cta-section a {
    color: #1a73e8; /* Standard blue link color */
    font-weight: bold;
    text-decoration: none;
}

.cta-section a:hover {
    text-decoration: underline;
}

