/* styles.css */

/* CSS Variables for Theme Consistency */
:root {
    --primary-color: #5563DE;
    --secondary-color: #8A2BE2;
    --hover-color: #334E68;
    --success-color: #32CD32;
    --success-hover: #2E8B57;
    --text-color: #333;
    --background-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --card-bg: #fff;
    --border-color: #ccc;
    --focus-color: #5563DE;
    --box-shadow-light: 0 8px 16px rgba(0, 0, 0, 0.25);
    --box-shadow-hover: 0 12px 20px rgba(0, 0, 0, 0.35);
}

/* Base Styles */
body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-gradient);
    color: var(--text-color);
}

/* Container styling: occupy 70% on desktops */
.container {
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive container adjustment */
@media (max-width: 992px) {
    .container {
        max-width: 90%;
    }
}

/* Card, form-section, and banking info styling */
.card,
.form-section,
.bank-info {
    background: var(--card-bg);
    border: none;
    border-radius: 10px;
    box-shadow: var(--box-shadow-light);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    margin: 1rem 0;
}

.card:hover,
.form-section:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

/* Headings */
h2,
h3,
h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Form labels with required star */
.form-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-label .required-star {
    color: red;
    margin-left: 2px;
}

/* Button styling */
.btn-primary,
.btn-success {
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Input fields and selects */
.form-control,
.form-select {
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    font-size: 1rem;
    border-radius: 4px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--focus-color);
    box-shadow: 0 0 8px rgba(85, 99, 222, 0.4);
    outline: none;
}

/* File input styling */
input[type="file"] {
    padding: 5px;
}

/* Banking info box specifics */
.bank-info {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bank-info h5 {
    margin-bottom: 10px;
}

/* Links with hover underline effect */
a {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Responsive adjustments for cards on small screens */
@media (max-width: 768px) {

    .card,
    .form-section,
    .bank-info {
        margin: 10px;
        padding: 15px;
    }
}

/* Utility links */
.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease, color 0.3s ease;
}

.forgot-link:hover {
    color: var(--hover-color);
    border-bottom: 1px solid var(--primary-color);
}

/* Form rows for multiple inputs like grades */
.row .col-md-4 {
    margin-bottom: 1rem;
}

/* Highlight messages */
.alert-success {
    color: var(--success-color);
    border: 1px solid var(--success-color);
    background-color: #e6ffe6;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.alert-error {
    color: red;
    border: 1px solid red;
    background-color: #ffe6e6;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}