/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f6fa;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    padding: 20px 15px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: #ecf0f1;
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.sidebar a:hover {
    background-color: #34495e;
}

.module-header {
    cursor: pointer;
    font-weight: bold;
    margin: 10px 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.submenu {
    display: none;
    margin-left: 10px;
}

.toggle-icon {
    font-weight: bold;
}

/* Main Content */
.main-content {
    margin-left: 270px;
    padding: 20px;
}

/* Success Message */
.success-msg {
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Responsive Design */
.hamburger {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 70px 20px 20px;
    }

    .hamburger {
        display: block;
    }
}

/* Form Styles */
.form-container {
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 30px auto;
}

.form-container h3 {
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    background-color: #fff;
    outline: none;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.button-group .btn {
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.button-group .btn:hover {
    background-color: #2c81ba;
}

/* Responsive Form Layout */
@media (max-width: 600px) {
    .form-container {
        padding: 20px;
    }

    .button-group {
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Login Page ===== */
.login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.login-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease;
}

.login-box:hover {
    transform: translateY(-3px);
}

.login-logo {
    width: 80px;
    margin-bottom: 20px;
}

.login-box h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.login-box input:focus {
    border-color: #3498db;
    box-shadow: 0 0 3px #3498db50;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.login-box button:hover {
    background-color: #2980b9;
}

.error-msg {
    color: #e74c3c;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 14px;
}

/* ===== Responsive for Login ===== */
@media (max-width: 500px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-logo {
        width: 70px;
    }

    .login-box h2 {
        font-size: 20px;
    }
}

/* ==== FORM STYLING ==== */
.card.student-info {
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 25px;
    max-width: 600px;
    margin-inline: auto;
}

.form-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

.results-table th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.results-table tr:hover {
    background-color: #f5faff;
}

.no-results {
    text-align: center;
    color: #e74c3c;
    font-weight: bold;
    margin-top: 20px;
}

.export-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.search-form input[type="text"] {
    padding: 10px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.search-form input[type="date"] {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.search-form input[type="text"],
.search-form input[type="date"] {
    width: 100%;
}

.section-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
}

.section-subtitle {
    color: #34495e;
    font-weight: 600;
    margin-bottom: 15px;
}

.table-container {
    margin-top: 30px;
}

/* Button Styling */
.btn-success {
    background-color: #27ae60;
}

.btn {
    background-color: #3498db;
    color: #fff;
    padding: 15px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn:hover {
    background-color: #2980b9;
}

a.edit-btn {
    color: #fff;
    background-color: #28a745;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

a.edit-btn:hover {
    background-color: #218838;
}
