/* --- Global & Typography --- */
body, html {
    font: normal normal normal 14px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #fff;
}

/* --- UCSD Branding --- */
#tdr_banner {
    background: transparent url(https://students.ucsd.edu/_resources/current_students/css/images/triton-banner.png) center top no-repeat;
    height: 52px;
    margin: 0 auto;
    max-width: 960px;
    width: 98%;
}

body.fluid #tdr_banner {
    max-width: none;
}

#navbar-list ul #current_students_nav a {
    background: transparent url(https://students.ucsd.edu/_resources/student_global/css/images/current_students_primary_nav.png) 2px 0 no-repeat;
    background-color: rgba(255, 255, 255, 0.4);
    text-indent: -9999px;
    width: 110px;
    display: block;
}

#navbar-list ul #current_students_nav a:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* --- Table & Form Layout --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th {
    font-weight: bold;
    color: #444;
    text-align: left;
    padding: 10px;
    vertical-align: top;
}

td {
    padding: 10px;
    vertical-align: top;
}

/* --- Unified Input Styling (250px Width) --- */
.input-wrapper {
    margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[name="datepicker"],
select {
    width: 250px !important; /* Uniform width for all main boxes */
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box; /* Ensures padding doesn't push width past 250px */
    display: block;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus, select:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* --- Validation & Error Messages --- */
/* Red text for both jQuery Validation and Thymeleaf errors */
.error-message,
div.error,
label.error {
    color: #d9534f; /* Professional red */
    font-size: 13px;
    font-weight: bold;
    margin-top: 5px;
    display: block;
    width: 250px; /* Keeps error text aligned with input width */
}

/* Red border on the input box when invalid */
input.error, select.error {
    border: 1px solid #d9534f !important;
    background-color: #fff8f8;
}

/* --- Buttons --- */
.btn-primary {
    background-color: #006bb6;
    border: 1px solid #005a99;
    color: #fff;
    padding: 8px 24px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary:hover {
    background-color: #005a99;
}

.btn-primary:disabled {
    background-color: #cccccc;
    border-color: #bbbbbb;
    cursor: not-allowed;
}

/* --- Helper Classes --- */
.vertspacer10 { margin-top: 10px; }
.vertspacer20 { margin-top: 20px; }
.vertspacer30 { margin-top: 30px; }

.privacy-statement-section {
    display: block;
    width: 72%;
    margin-top: 15px;
    color: #666;
    font-size: 12px;
}

.alert-info {
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* --- Responsive Fixes --- */
@media only screen and (max-width: 768px) {
    #navbar-list ul #current_students_nav a {
        width: auto;
    }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select {
        width: 100% !important; /* Full width