/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    overflow-x: hidden;
    padding: 20px;
}





/* Wrapper for sidebar and main content */
.wrapper {
    display: flex;
    width: 100%;
    margin-top: 60px; /* Space for the fixed header */
}

/* Header Styling */
.main-header {
    background-color: #fff;
    color: #333;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hamburger {
    display: none; /* Hide by default, show on mobile */
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.logo h1 {
    font-size: 22px;
    color: #007bff;
    margin: 0;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    font-size: 14px;
    background-color: #f5f5f5;
}

.search-bar input::placeholder {
    color: #aaa;
}

.notification {
    position: relative;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* Enhanced Sidebar Menu */
.sidebar {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    width: 260px;
    padding: 20px;
    height: calc(100vh - 60px); /* Adjust height for header */
    position: fixed;
    top: 60px; /* Start below the header */
    left: 0;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform: translateX(0); /* Show sidebar by default on larger screens */
}

/* User Info Section */
.user-info {
    margin-bottom: 30px;
    text-align: center;
    color: #ecf0f1;
}

.welcome-text {
    display: block;
    font-size: 18px;
    color: #ecf0f1;
    margin-bottom: 20px;
    text-align: center;
}

/* Sidebar Button Styles */
.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    margin: 15px 0;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.sidebar-btn i {
    margin-right: 10px;
    font-size: 20px;
    z-index: 1;
}

.sidebar-btn span {
    z-index: 1;
}

.sidebar-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75px;
    width: 50px;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transform: skewX(-45deg);
    transition: all 0.5s ease;
    
}

.sidebar-btn:hover {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.sidebar-btn:hover::before {
    left: 130%;
    transform: skewX(-45deg);
}

/* Sidebar Header */
/* Sidebar Header for Home Button */
.sidebar-header {
    margin-bottom: 20px;
}

.menu-item {
    display: block;
    font-size: 16px;
    font-weight: 500;
    padding: 15px 25px; /* Increased padding for better width */
    color: #fff; /* Keeping the existing white text color */
    background-color: #1abc9c; /* Keeping the same green background color */
    border-radius: 25px; /* Rounded corners for the button */
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    width: 100%; /* Makes the button take full width inside its container */
}


/* Menu Section Enhancements */
.menu-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 14px;
    text-transform: uppercase;
    color: #bdc3c7;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 4px solid #1abc9c;
    letter-spacing: 0.05em;
    font-weight: bold;
}

/* Menu Item Styles */
.menu-items {
    list-style: none;
    padding-left: 0;
}

.menu-items li {
    margin-bottom: 10px;
}

.menu-items li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    background: #34495e;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.menu-items li a i {
    margin-right: 12px;
    font-size: 18px;
    color: #1abc9c;
    transition: transform 0.3s ease;
}

.menu-items li a:hover {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.menu-items li a:hover i {
    transform: rotate(360deg);
}

/* Active Menu Item */
.menu-item.active {
    background-color: #1abc9c;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 'New' Badge Style */
.badge.new {
    background-color: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 12px;
    margin-left: 10px;
    text-transform: uppercase;
}

/* Miscellaneous Adjustments */
.menu-items li a span {
    font-size: 12px;
    color: #bdc3c7;
}

.menu-items li a:hover span {
    color: #fff;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    padding-bottom: 0px;
    background-color: white;
    margin-left: 260px;
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    position: relative;
    z-index: 1;
    transition: margin-left 0.3s ease; /* Add transition */
}

/* Centered Banner with Fixed Position */
.banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1000px;
    z-index: 2; /* Ensure banner appears above other content */
}

/* Adjusting Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100vw; /* Full width of the viewport */
    height: auto; /* Maintain aspect ratio */
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Slideshow Images */
.slideshow-container img {
    width: 100vw; /* Set image width to 100% of the viewport */
    height: auto; /* Maintain the aspect ratio of 1280x720 */
    object-fit: cover; /* Ensure the image covers the width */
    display: block;
}


/* Slideshow styles */
.mySlides {
    display: none;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

.dot {
    height: 5px;
    width: 5px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
  
}

.dot.active {
    background-color: #717171;
}



/* Table Styles - Aesthetic Enhancements */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table thead {
    background: linear-gradient(135deg, #007bff, #6a5acd);
    color: white;
    animation: gradient-animation 5s ease infinite;
}

table thead th {
    padding: 15px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

table tbody tr {
    border-bottom: 1px solid #ddd;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

table tbody tr:hover {
    background: linear-gradient(135deg, #007bff, #6a5acd);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

table tbody tr:hover td {
    color: white;
}

table tbody td {
    padding: 15px;
    font-size: 14px;
    color: #333;
    transition: color 0.3s ease;
}

table tbody td a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

table tbody tr:hover td a {
    color: white;
}

/* Mobile Styles */
@media (max-width: 768px) {
   

    .main-content {
        margin-left: 0;
        margin-top: 10px;
        padding: 0px;
        transition: margin-left 0.3s ease; /* Smooth transition */
    }

    table thead th, table tbody td {
        font-size: 12px;
        padding: 10px;
    }

    .hamburger {
        display: block; /* Show hamburger on mobile */
    }

    .logo h1 {
        display: none; /* Hide logo to save space */
    }

    .search-bar {
        display: none; /* Hide search bar on mobile */
    }

    /* Adjust sidebar for mobile */
    .sidebar {
        transform: translateX(-260px); /* Hide sidebar off-screen */
    }

    .sidebar.open {
        transform: translateX(0); /* Slide in the sidebar */
    }

    .sidebar {
        width: 260px;
        padding: 20px;
        height: calc(100vh - 60px); /* Adjust height for header */
        top: 60px; /* Ensure it remains below the header */
        left: 0;
    }

    /* Shift main content when sidebar is open */
    .sidebar.open ~ .main-content {
        margin-left: 260px;
    }

    .menu-item {
        padding: 10px 15px;
        font-size: 14px;
    }

    .section-title {
        font-size: 12px;
        padding-left: 8px;
        border-left: 3px solid #1abc9c;
    }

    /* Adjust button sizes on mobile */
    .sidebar-btn {
        padding: 10px 20px;
        font-size: 15px;
    }

    .sidebar-btn i {
        font-size: 18px;
    }

    .welcome-text {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

/* Additional Enhancements */

/* Focus States for Accessibility */
.sidebar-btn:focus {
    outline: 2px dashed #2980b9;
    outline-offset: 4px;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .exam-box {
        width: 150px; /* Smaller size on mobile */
    }

    .exam-icon {
        width: 60px;
        height: 50px;
    }
}




/* Dots Styling */
.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease, transform 0.3s ease;
    cursor: pointer; /* Make them clickable */
}

.dot.active {
    background-color: #717171;
    transform: scale(1.2); /* Enlarge the active dot */
}

.dot:hover {
    background-color: #555;
    transform: scale(1.1); /* Slight enlargement on hover */
} 