/* RESET */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: #333;

    background:
linear-gradient(rgba(244,246,245,0.70), rgba(244,246,245,0.70)),
url("spup_background.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* FIXED HEADER */
.top-header {
    background: #f1f1f1;
    padding: 15px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;

    margin: 0;
}

/* FIXED NAVBAR */
.navbar {
    background: #0E6F3C;
    padding: 18px 60px;

    position: fixed;
    width: 100%;
    top: 80px;
    left: 0;
    z-index: 999;

    margin: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    margin-right: 35px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.navbar a:hover {
    color: #F2C94C;
}



/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 140px auto 40px auto;
}

/* LOGO */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-area img {
    width: 75px;
    margin-right: 15px;
    transform: scale(1.7);
}

.university-title h1 {
    font-size: 26px;
    color: #0B6B3A;
}

.university-title p {
    font-size: 12px;
    letter-spacing: 2px;
    color: #555;
}

.page-title-header{
    margin-left: auto;
    text-align: right;
}

.page-title-header h2{
    font-size: 20px;
    color: #0B6B3A;
    margin-bottom: 5px;
}

.page-title-header span{
    font-size: 14px;
    color: #666;
}

/* CARD (Default for other pages) */
.card {
    background: rgba(255,255,255,0.92);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* SECTION TITLE */
.section-title {
    font-size: 22px;
    color: #0B6B3A;
    margin-bottom: 25px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #F2C94C;
    position: absolute;
    left: 0;
    bottom: -8px;
}

/* =============================== */
/* REGISTRATION FORM IMPROVEMENT */
/* =============================== */

.container .card {
    max-width: 900px;
    margin: 0 auto;
    background: #f2f2f2;
    border-radius: 20px;
    box-shadow: none;
}

/* 2 COLUMN GRID */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-grid-full {
    grid-column: span 2;
}

/* INPUT STYLE (ONLY FOR FORM LOOK) */
/* APPLY SAME STYLE TO BOTH FORM TYPES */
.form-grid input,
.form-grid select,
.form-grid textarea,
.form-single input {
    background: #f2f2f2;
    border: 1px solid #ddd; /* ADD BORDER BACK */
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 15px;
    color: #444;
    width: 100%;
    transition: 0.2s ease;
}

/* FOCUS STYLE */
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.form-single input:focus {
    outline: none;
    border-color: #0E6F3C;
    box-shadow: 0 0 0 2px rgba(14,111,60,0.08);
    background: #fff;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
    border-color: #0E6F3C;
    box-shadow: 0 0 0 2px rgba(14,111,60,0.08);
}

.form-grid textarea {
    height: 120px;
    resize: none;
}

/* BUTTON */
button {
    background: #0B6B3A;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #084D29;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #0E6F3C;
    color: white;
    padding: 15px;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* Body: Full height layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the body takes full screen height */
    margin: 0;
}

/* Main content container should take up available space */
.container {
    flex: 1;
    padding: 20px;
}

/* Footer: Stays at the bottom */
footer {
    background-color: #0B6B3A;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    margin-top: auto; /* Ensures footer stays at the bottom */
}

/* Prevent long dropdown text from resizing the field */
.form-grid select {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Keep dropdown option text clean */
.form-grid option {
    white-space: normal;
}

/* Make long program names stay inside the box */
#college_school,
#program,
#major,
#grad_program {
    width: 100%;
    max-width: 100%;
}

.form-grid select:hover {
    overflow: visible;
}

/* Remove number input arrows (Chrome, Edge, Safari) */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* =============================== */
/* AUTH FORM (LOGIN / REGISTER) */
/* =============================== */

.auth-card {
    width: 380px;       /* same size feel as appointment */
    margin: 0 auto;
}

/* Use SAME input style as alumni form */
.form-single {
    display: grid;
    grid-template-columns: 1fr; /* ONE COLUMN */
    gap: 25px;                  /* SAME spacing as original */
    width: 100%;
}

/* Keep button consistent */
.auth-card button {
    width: auto; /* same as original alumni */
}

/* REMOVE HERO SPACE FOR AUTH PAGES */
.auth-container {
    margin-top: 160px; /* adjust if needed */
}

.chart-wrapper{
    position: relative;
    width: 100%;
    height: 38vh;
    min-height: 260px;
    max-height: 380px;
}

.chart-wrapper canvas{
    width: 100% !important;
    height: 100% !important;
}

.view-btn{
    display:inline-block;
    background:#0E6F3C;
    color:white !important;
    text-decoration:none;
    padding:10px 18px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    transition:0.3s ease;
    box-shadow:0 2px 6px rgba(0,0,0,0.12);
}

.view-btn:hover{
    background:#09552d;
    transform:translateY(-2px);
    box-shadow:0 4px 10px rgba(0,0,0,0.18);
}