
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styling */
body {
    background-color: white;
    color: #333;
    margin: 0;
    padding: 0;
}

/* ========================== */
/* HEADER SECTION */
/* ========================== */

/* Top bar styling */
.top-bar {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center elements vertically */
    background: whitesmoke;
    color: #333;
    padding: 13px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 2px solid #e5e5e5;
    transition: padding 0.3s ease;
    top: 0;
}

/* Content wrapper styling to prevent overlap */
.content-wrapper {
    padding-top: 60px;
    /* Adjust this value based on the height of your top bar */
}

/* Optional: Additional responsiveness for smaller screens */
@media (max-width: 768px) {
    .content-wrapper {
        padding-top: 50px;
        /* Adjust for smaller screens if needed */
    }
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #007BFF;
    transition: color 0.3s ease;
    gap: 10px;
}

.logo:hover {
    color: #0056b3;
}

a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover {
    color: #007BFF;
}

.top-bar-left {
    flex: 1;
}

/* General Layout */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Adjusted gap */
    padding: 0 10px;
    /* Reduce padding for tight layout */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-dropdown {
    cursor: pointer;
}

.profile-icon {
    color: black;
    transition: transform 0.3s ease, color 0.3s ease;
}
.profile-list{
    justify-content: center;
    text-align: center;
    line-height: 1.6;
}
.profile-icon:hover {
    transform: scale(1.15);
    color: #0056b3;
}

.countdown {
    font-weight: bold;
    color: black;
}

.student-name {
    font-size: 18px;
    cursor:text;
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    justify-content: center;
    text-align: center;
}

.student-class {
    font-size: 14px;
    color: #333;
    cursor:text;
    
} 

.btn-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: #28a745;
    border: none;
    border-radius: 30px;
    color: white;
    font-family: cursive;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    margin: 0 auto;
    /* Center horizontally */
    display: block;
}

.btn-logout:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.logout-icon {
    margin-left: 10px;
    font-size: 18px;
}

.logout-form {
    margin-top: -8px;
}
/* Profile Dropdown Container */
.profile-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Profile Icon Container */
.profile-icon-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Profile Image Styling */
.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    transition: border-color 0.3s ease;
}

/* Profile Icon (Dropdown arrow) */
.profile-icon {
    font-size: 16px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.profile-icon:hover {
    transform: rotate(180deg);
}

/* Profile Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(to bottom, #88BDBC, #A7D676, #F5F0E1);
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    width: 220px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.profile-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Menu List Styling */
.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background-color: #0056b3;
}

.menu-icon {
    font-size: 18px;
    color: #ffffff;
}

/* Divider */
.menu-divider {
    border: 0;
    height: 1px;
    background: #ffffff;
    margin: 10px 0;
}

/* Logout Button */
.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d93025;
    border: none;
    border-radius: 30px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    width: 90%;
    margin: 0 auto;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-logout:hover {
    background-color: #b71c1c;
    transform: scale(1.05);
}

.logout-icon {
    margin-left: 8px;
    font-size: 18px;
}

/* Profile Dropdown Hover Effect */
.profile-dropdown:hover {
    z-index: 1;
    transform: translateY(-3px);
    transition: transform 0.2s ease;
}

/* Modal Styles */
.logout-warning-modal {
    display: none;
    /* Hidden by default, change to 'block' when showing */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent background */
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    height: 180px;
    margin: 150px auto;
    text-align: center;
    border-radius: 20px;
}

.modal-message {
    text-align: center;
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
    padding-bottom: 35px;
    font-size: 16px;
    font-weight: bold;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    /* Align buttons side by side */
    justify-content: center;
    /* Center the buttons horizontally */
    gap: 10px;
    /* Space between buttons */
}

.modal-cancel {
    background-color: #f44336;
    /* Red background */
    color: white;
    display: inline-flex;
    /* Enables flexbox for inline buttons */
    align-items: center;
    /* Align text and icon vertically */
    justify-content: center;
    /* Center the content */
    gap: 8px;
    /* Space between text and icon */
    cursor: pointer;
    border: none;
    width: 140px;
    /* Adjusted width for better spacing */
    height: 40px;
    /* Ensure consistent button height */
    border-radius: 25px;
    /* Rounded corners */
    font-size: 16px;
    /* Adjust font size */
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
    margin-top: -8px;
}

.modal-logout {
    background-color: #4CAF50;
    /* Green background */
    color: white;
    display: inline-flex;
    /* Enables flexbox for inline buttons */
    align-items: center;
    /* Align text and icon vertically */
    justify-content: center;
    /* Center the content */
    gap: 8px;
    /* Space between text and icon */
    cursor: pointer;
    border: none;
    width: 140px;
    /* Adjusted width for better spacing */
    height: 40px;
    /* Ensure consistent button height */
    border-radius: 25px;
    /* Rounded corners */
    font-size: 16px;
    /* Adjust font size */
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
}

/* Optional: Add hover effects for better UX */
.modal-cancel:hover {
    background-color: #d32f2f;
}

.modal-logout:hover {
    background-color: #388e3c;
}

/* Media Queries for Responsiveness */

/* Default Styles - Apply general styling here */

/* For desktops and large screens */
@media (min-width: 1281px) {
    .container {
        padding: 20px;
        font-size: 16px;
    }
}

/* For laptops and large tablets (1024px to 1280px) */
@media (max-width: 1280px) and (min-width: 1025px) {
    .container {
        padding: 18px;
        font-size: 15px;
    }
}

/* For tablets (768px to 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 16px;
        font-size: 14px;
    }
}

/* For large smartphones and small tablets (481px to 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .container {
        padding: 14px;
        font-size: 13px;
    }
}

/* For small smartphones (320px to 480px) */
@media (max-width: 480px) and (min-width: 321px) {
    .container {
        padding: 12px;
        font-size: 12px;
    }
}

/* For very small mobile devices (max-width: 320px) */
@media (max-width: 320px) {
    .container {
        padding: 10px;
        font-size: 11px;
    }
}

/* Responsive for Heights */

/* Short height devices (e.g., foldable phones or small window heights) */
@media (max-height: 600px) {
    .container {
        padding: 10px;
        font-size: 12px;
        overflow-y: auto;
    }

    .top-bar {
        padding: 8px 10px;
        font-size: 14px;
    }

    .btn-logout {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Medium-height devices (601px to 800px) */
@media (min-height: 601px) and (max-height: 800px) {
    .container {
        padding: 12px;
        font-size: 14px;
    }

    .btn-logout {
        font-size: 14px;
    }
}

/* Tall devices (e.g., desktop monitors or tablets in portrait) */
@media (min-height: 801px) {
    .container {
        padding: 20px;
        font-size: 16px;
    }

    .btn-logout {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Orientation-specific media queries */

/* Landscape orientation (wider screens) */
@media (orientation: landscape) {
    .container {
        padding: 16px;
        font-size: 15px;
    }

    .top-bar {
        padding: 10px 20px;
    }

    .btn-logout {
        font-size: 14px;
    }
}

/* Portrait orientation (taller screens) */
@media (orientation: portrait) {
    .container {
        padding: 18px;
        font-size: 14px;
    }

    .top-bar {
        padding: 12px 16px;
    }

    .btn-logout {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Default Dropdown Menu Styling */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(to bottom, #88BDBC, #A7D676, #F5F0E1);
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    width: 220px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.profile-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Responsive Dropdown for Large Screens (Desktops) */
@media (min-width: 1025px) {
    .dropdown-menu {
        width: 240px;
        font-size: 14px;
        padding: 15px 0;
    }
}

/* Responsive Dropdown for Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .dropdown-menu {
        width: 200px;
        font-size: 13px;
        padding: 10px;
    }
}

/* Responsive Dropdown for Large Smartphones */
@media (max-width: 768px) and (min-width: 481px) {
    .dropdown-menu {
        width: 180px;
        font-size: 12px;
        padding: 8px;
    }

    .menu-item {
        padding: 8px 10px;
    }
}

/* Responsive Dropdown for Small Smartphones */
@media (max-width: 480px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 5px 0;
        font-size: 12px;
    }

    .menu-item {
        padding: 10px;
        text-align: center;
    }

    .profile-dropdown:hover .dropdown-menu {
        transform: none;
        opacity: 1;
        display: block;
    }
}

/* Dropdown Responsiveness for Very Small Screens */
@media (max-width: 320px) {
    .dropdown-menu {
        font-size: 11px;
        padding: 5px;
    }

    .menu-item {
        padding: 8px;
        text-align: center;
    }
}

/* Adjustments for Dropdown on Short-Height Screens */
@media (max-height: 600px) {
    .dropdown-menu {
        max-height: 200px;
        overflow-y: auto;
        padding: 10px;
    }
}

/* Dropdown Responsiveness for Landscape Orientation */
@media (orientation: landscape) {
    .dropdown-menu {
        width: 200px;
        padding: 10px 0;
        font-size: 13px;
    }

    .menu-item {
        padding: 8px 12px;
    }
}

/* Dropdown Responsiveness for Portrait Orientation */
@media (orientation: portrait) {
    .dropdown-menu {
        width: 100%;
        padding: 10px;
    }

    .menu-item {
        padding: 10px;
    }
}


/* ========================== */
/* HOME PAGE STYLING */
/* ========================== */

.home-container {
    margin-bottom: -20px;
    padding: 80px;
    text-align: left;
    position: relative;

    overflow: hidden;
    /* Ensures content stays within bounds */
}

.home-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 100% 110%;
    background-repeat: no-repeat;
    filter: blur(5px);
    /* Adjust the blur amount */
    z-index: -1;
    /* Keeps the pseudo-element behind the content */
}

.home-container h1 {
    text-align: center;
    font-size: 50px;
    /* Heading size */
    color: rgb(0, 0, 0);
    margin-top: -60px;
    margin-bottom: 51px;
    font-family: cursive;
}

.card-container {
    display: grid;
    /* Using grid for layout */
    grid-template-columns: repeat(2, 1fr);
    /* Creates 2 equal columns */
    justify-items: center;
    /* Aligns items to the center */
    margin-top: 23px;
    gap: 10px;
    /* Reduced gap between cards to 10px */
}

.card {
    background: rgb(230, 229, 229);
    border-radius: 30px;
    height: 140px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    width: 40%;
    /* Increased the width to 60% */
    text-align: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.6);
}

.card img {
    margin-top: 20px;
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

.card-title {
    font-size: 20px;
    /* Title size */
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.card-description {
    font-size: 16px;
    /* Description text size */
    color: #555;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        /* Two columns for medium screens */
        gap: 10px;
        /* Set gap to 10px for medium screens */
    }
}

@media (max-width: 768px) {
    .home-container {
        padding: 80px 15px;
        /* Padding for smaller screens */
    }

    .home-container h1 {
        font-size: 26px;
        /* Heading size for smaller screens */
    }

    .card-container {
        grid-template-columns: 1fr;
        /* Single column on smaller screens */
        gap: 10px;
        /* Set gap to 10px for mobile */
    }

    .card {
        width: 100%;
        /* Cards take full width on small screens */
        padding: 15px;
    }

    .card-title {
        font-size: 18px;
        /* Adjust title size */
    }

    .card-description {
        font-size: 14px;
        /* Adjust description text size */
    }
}

/* ========================== */
/* TABLE WRAPPER */
/* ========================== */

/* Apply a blur effect to the entire table container */
.table-wrapper {
    margin-top: 15px;
    overflow-x: auto;
}


/* Modernize the table's look */
.table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    background-color: #ffffff;
}

/* Style for table headers */
.table th {
    background-color: #84809b;
    color: white;
    padding: 12px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    font-size: 16px;
}

/* Style for table rows */
.table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

/* Striped rows for better readability */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
}

/* Hover effect for table rows */
.table tbody tr:hover {
    background-color: #e9f7ff;
    cursor: pointer;
}

/* Form controls with enhanced design */
.form-control,
.form-select {
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    width: 100%;
}

/* Custom styling for the labels */
label {
    font-weight: bold;
    font-size: 14px;
}

.form-detail {
    font-size: 14px;
    color: #555;
}

/* Additional styling for row layout */
.row {
    margin-bottom: 20px;
}

/* ========================== */
/* LOGIN PAGE */
/* ========================== */

.container {
    width: 90%;
    /* max-width: 400px; */
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
}

.container1 {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 50px auto;
}

.login-box {
    text-align: center;
}

.login-box h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #007bff;
}

.error-box {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: left;
    font-size: 14px;
}

.error-box ul {
    list-style: none;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: #007bff;
}

.btn {
    display: inline-block;
    width: 190px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: white;
    background-color: lightgray;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* ========================== */
/* RESPONSIVE DESIGN */
/* ========================== */

@media (max-width: 768px) {
    .top-bar {
        flex-wrap: wrap;
        text-align: center;
    }

    .form-detail {
        font-size: 14px;
    }

    .logo {
        font-size: 18px;
    }

    .profile-icon {
        width: 30px;
        height: 30px;
    }

    .btn-logout {
        font-size: 12px;
        padding: 6px 10px;
    }

    .countdown {
        font-size: 12px;
    }

    .card {
        width: 150px;
    }

    .card-image {
        width: 80px;
        height: 80px;
    }

    .card-title {
        font-size: 16px;
    }

    .table {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 8px 16px;
    }
}

.form-detail {
    background: #f1f1f1;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
}