/* ---------- GENERAL ---------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ede9ff;
    margin: 40px;
    color: #721c72;
}

/* ---------- HEADINGS ---------- */
h1 {
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    margin-top: 40px;
    color: #34495e;
}

/* ---------- LINKS ---------- */
a {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* ---------- CARD STYLE (COURSES) ---------- */
/* ---------- SCHEDULE COURSE BOX ---------- */
.course {
    background: #ede9ff;
    padding: 3px;
    border-radius: 6px;
    font-size: 10px;
    margin: 2px;

    max-height: 90px;
    overflow-y: auto;   /* ✅ allows scroll instead of hiding */
}

/* ---------- FORMS ---------- */
form {
    margin-top: 10px;
}

input,
select {
    padding: 8px;
    margin-top: 5px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* ---------- BUTTONS ---------- */
button {
    background: linear-gradient(135deg, #7a5cff, #5e3bee);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    transition: 0.2s;
}

button:hover {
    background: linear-gradient(135deg, #5e3bee, #4b2fd6);
}

/* ---------- LIST (RECOMMENDED COURSES) ---------- */
ul {
    list-style: none;
    padding: 0;
}

li {
    background: white;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

/* ---------- SEARCH BAR (TOP RIGHT) ---------- */
.top-search {
    position: absolute;
    top: 20px;
    right: 20px;
}

.top-search input {
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.top-search button {
    padding: 6px 10px;
}

/* ---------- HIGHLIGHT WHEN JUMPING ---------- */
:target {
    animation: highlight 4s ease;
}

@keyframes highlight {
    0% {
        background-color: #fff3cd;
    }

    100% {
        background-color: white;
    }
}


.container {
    max-width: 1200px;
    margin: auto;
}

/* ---------- TOP BAR ---------- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- BACK BUTTON ---------- */
.back-btn {
    background: #5e3bee;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}

.back-btn:hover {
    background: #4b2fd6;
}

/* ---------- CREDITS ---------- */
.credits {
    margin-top: 10px;
    color: #5e3bee;
}

/* ---------- FORM LAYOUT ---------- */
.semester-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

/* ---------- LOGIN PAGE ---------- */

.login-container {
    width: 350px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(94, 59, 238, 0.15);
    text-align: center;
}

.login-container h1 {
    color: #5e3bee;
    margin-bottom: 10px;
}

.subtitle {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Inputs */
.login-container input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Button */
.login-container button {
    width: 100%;
    margin-top: 15px;
}

/* Register link */
.register-link {
    margin-top: 15px;
    font-size: 13px;
}

.register-link a {
    color: #5e3bee;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Error message */
.error-msg {
    background: #ffe6e6;
    color: #cc0000;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
}

/* Make register button purple (if not already) */
.login-container button {
    background-color: #5e3bee;
}

.login-container button:hover {
    background-color: #4b2fd6;
}

/* ---------- SCHEDULE TABLE ---------- */

table {
    border-collapse: collapse;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, #7a5cff, #5e3bee);
    color: white;
    padding: 8px;
    font-size: 14px;
}

td {
    border: 1px solid #ddd;
    height: 40px; /* smaller rows */
    padding: 2px;
    text-align: center;
}