body {
    margin: 0;
    padding: 0;
    font-family: "Times New Roman", serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background: linear-gradient(to right, #0f3460, #e94560);
}
.login-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-box h2 {
    margin-bottom: 20px;
}
.login-input-wrapper {
    display: flex;
    align-items: center;
    width: 50%;
    margin: 0 auto 10px;
    justify-content: center;
    position: relative;
}
.login-input-wrapper .icon {
    margin-right: 5px;
    color: #ccc;
    font-size: 16px;
}
.login-input-wrapper input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}
.login-input-wrapper .eye-icon {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #ccc;
    font-size: 16px;
}
.login-box button {
    width: 50%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    background-color: #28a745;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.login-box button:hover {
    background-color: #218838;
}
.forgot-password-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}
.forgot-password-btn:hover {
    background-color: #0056b3;
}
.login-message {
    color: red;
    font-size: 14px;
}
.protected-content {
    display: none;
    flex-grow: 1;
    background: linear-gradient(to right, #283048, #859398);
    padding: 20px;
    position: relative;
    overflow-y: auto;
}
.content-container {
    display: flex;
    height: calc(100% - 50px - 200px - 50px - 22px);
    padding-top: 5px;
    margin-top: 20px;
}
.notification-bar {
    position: absolute;
    bottom: 200px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    height: 50px;
    background: linear-gradient(to right, #00bfff, #ffb6c1);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.notification-bar p {
    margin: 0;
    white-space: nowrap;
    animation: marquee 10s linear infinite;
    font-size: 14px;
    color: #fff;
    padding: 0 20px;
}
@keyframes marquee {
    0% { transform: translateX(calc(100% - 20px)); }
    100% { transform: translateX(calc(-100% - 20px)); }
}
.menu-wrapper {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    display: inline-block;
}
.left-menu, .right-menu {
    flex: 1;
    margin: 10px;
}
.menu-button {
    width: calc(100% - 20px);
    margin: 5px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}
.menu-button:hover {
    background-color: #f0f0f0;
}
h1 {
    margin: 0;
    padding: 1px 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #283048;
    color: white;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}
.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 0 20px;
}
.header-title {
    text-align: left;
    margin-left: 10px;
}
.highlight-box {
    display: inline-block;
    text-align: left;
}
.user-info {
    display: flex;
    align-items: center;
    color: white;
    position: absolute;
    right: 134px;
}
.user-info span {
    margin-right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    border: 1px solid #c82333;
}
.user-info button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s ease;
}
.user-info button:hover {
    background-color: #c82333;
}
.footer {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}
.footer img {
    width: 100%;
    object-fit: cover;
    height: 200px;
}
.popup {
    display: none;
    position: fixed;
    left: 50%;
    width: 400px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 2px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translate(-50%, 0);
    top: 80px;
    color: #fff;
    border-radius: 10px;
    padding: 20px;
}
.popup iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.menu-popup {
    display: none;
    position: absolute;
    background-color: #d2b48c;
    border: 2px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    color: #000;
    border-radius: 10px;
    padding: 20px;
}
.menu-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-popup li {
    padding: 10px;
    border-bottom: 1px solid #444;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}
.menu-popup li:last-child {
    border-bottom: none;
}
.menu-popup li:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.feedback-popup, .password-popup, .recover-password-modal {
    display: none;
    position: fixed;
    left: 50%;
    width: 400px;
    background-color: #d2b48c;
    border: 2px solid #ccc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translate(-50%, 0);
    top: 80px;
    color: #000;
    border-radius: 10px;
    padding: 20px;
}
.feedback-popup textarea, .password-popup input, .recover-password-modal input {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: vertical;
}
.feedback-popup button, .password-popup button, .recover-password-modal button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    margin: 5px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
}
.feedback-popup button:hover, .password-popup button:hover, .recover-password-modal button:hover {
    background-color: #218838;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    background-color: yellow;
    color: black;
    border: none;
    padding: 5px 10px;
}
.assistant-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.assistant-icon {
    width: 120px;
    height: 120px;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
}
.assistant-icon:hover {
    transform: scale(1.1);
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.sidebar {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(to bottom, #1a1a1a, #333);
    color: #fff;
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}
.sidebar.active {
    right: 0;
}
.sidebar-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px 0 0 5px;
    z-index: 1001;
    transition: background-color 0.3s ease;
}
.sidebar-toggle:hover {
    background-color: #218838;
}
.sidebar h3 {
    margin-top: 0;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}
.online-users {
    white-space: nowrap;
    overflow: hidden;
    margin: 10px 0;
}
.online-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    animation: marquee 10s linear infinite;
}
.online-users li {
    display: inline-block;
    margin-right: 20px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    border-bottom: none;
    font-size: 12px;
}
.access-history-section {
    background: linear-gradient(to bottom, #00bfff, #ffb6c1);
    padding: 10px;
    border-radius: 5px;
    margin-top: 20px;
}
.access-history-section h3 {
    margin-top: 0;
    color: #333;
}
.access-history-section ul {
    color: #333;
    max-height: 200px;
    overflow-y: auto;
}
.access-history-section li {
    padding: 5px 0;
    border-bottom: 1px solid #444;
}
.access-history-section li:last-child {
    border-bottom: none;
}
.admin-controls {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.admin-controls select, .admin-controls button {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 12px;
    margin: 2px;
}
.dashboard-section {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}
.dashboard-section h3 {
    margin-top: 0;
    color: #fff;
}
.dashboard-section canvas {
    max-height: 150px;
}
.dashboard-section p {
    font-size: 12px;
}
.notification-section {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    display: none;
}
.notification-section h3 {
    margin-top: 0;
    color: #fff;
}
.notification-section p {
    margin: 5px 0;
    font-size: 12px;
}
.notification-section input {
    width: calc(100% - 20px);
    padding: 5px;
    margin: 5px 0;
    border-radius: 3px;
    border: 1px solid #ccc;
}
.notification-section button {
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 12px;
    margin: 2px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
}
.notification-section button:hover {
    background-color: #218838;
}
.feedback-section {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}
.feedback-section h3 {
    margin-top: 0;
    color: #fff;
}
.feedback-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #fff;
    max-height: 200px;
    overflow-y: auto;
}
.feedback-section li {
    padding: 5px 0;
    border-bottom: 1px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.feedback-section li:last-child {
    border-bottom: none;
}
.feedback-section li button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
}
.feedback-section li button:hover {
    background-color: #c82333;
}
.sidebar-footer {
    margin-top: 20px;
    background-color: #00bfff;
    padding: 10px;
    text-align: center;
    color: #fff;
    border-radius: 5px;
}
@media (max-width: 768px) {
    .login-box {
        padding: 15px;
        width: 90%;
        max-width: 300px;
    }
    .login-box h2 {
        font-size: 1.2rem;
    }
    .login-input-wrapper {
        width: 60%;
        margin: 0 auto 8px;
    }
    .login-input-wrapper .icon {
        font-size: 14px;
    }
    .login-input-wrapper input {
        padding: 8px;
        font-size: 14px;
    }
    .login-input-wrapper .eye-icon {
        font-size: 14px;
        right: 8px;
    }
    .login-box button {
        width: 60%;
        padding: 10px;
        font-size: 14px;
    }
    .forgot-password-btn {
        font-size: 10px;
        padding: 6px 12px;
    }
    .login-message {
        font-size: 12px;
    }
    .protected-content {
        padding: 10px;
    }
    h1 {
        font-size: 1rem;
        height: 40px;
    }
    .header-title span font {
        font-size: 1rem;
    }
    .header-title span font::before {
        content: "SMART A.I SCHOOL HUB";
    }
    .header-title span font::after {
        content: "";
    }
    .content-container {
        flex-direction: column;
        height: calc(100% - 40px - 100px - 30px - 22px);
        margin-top: 20px;
    }
    .notification-bar {
        height: 30px;
        bottom: 100px;
        width: calc(100% - 20px);
        left: 10px;
        right: 10px;
    }
    .notification-bar p {
        font-size: 12px;
    }
    .left-menu, .right-menu {
        margin: 2px 0;
    }
    .right-menu {
        margin-top: 5px;
    }
    .menu-wrapper {
        padding: 5px;
    }
    .menu-button {
        width: calc(100% - 10px);
        padding: 8px;
        font-size: 12px;
        margin: 2px 0;
    }
    .user-info {
        position: absolute;
        top: 40px;
        right: 10px;
    }
    .user-info span, .user-info button {
        font-size: 10px;
        padding: 3px 5px;
    }
    .sidebar {
        width: 100%;
        max-width: 200px;
        padding: 10px;
    }
    .sidebar-toggle {
        padding: 8px;
    }
    .sidebar h3 {
        font-size: 14px;
    }
    .online-users li {
        margin-right: 15px;
        padding: 5px 8px;
        font-size: 10px;
    }
    .access-history-section {
        padding: 8px;
        margin-top: 10px;
    }
    .access-history-section ul {
        max-height: 150px;
        font-size: 10px;
    }
    .admin-controls select, .admin-controls button {
        padding: 4px;
        font-size: 10px;
        margin: 1px;
    }
    .dashboard-section {
        margin-top: 10px;
        padding: 8px;
    }
    .dashboard-section canvas {
        max-height: 100px;
    }
    .dashboard-section p {
        font-size: 10px;
    }
    .notification-section {
        margin-top: 10px;
        padding: 8px;
    }
    .notification-section p {
        font-size: 10px;
    }
    .notification-section input {
        padding: 4px;
        font-size: 10px;
    }
    .notification-section button {
        padding: 4px;
        font-size: 10px;
    }
    .feedback-section {
        margin-top: 10px;
        padding: 8px;
    }
    .feedback-section ul {
        font-size: 10px;
    }
    .feedback-section li button {
        font-size: 8px;
        padding: 2px 4px;
    }
    .sidebar-footer {
        margin-top: 10px;
        padding: 8px;
        font-size: 10px;
    }
    .footer img {
        height: 100px;
    }
    .popup, .menu-popup, .feedback-popup, .password-popup, .recover-password-modal {
        width: 90%;
        max-width: 300px;
        top: 40px;
    }
    .close-btn {
        font-size: 16px;
        padding: 5px 8px;
    }
    .assistant-container {
        bottom: 10px;
        right: 10px;
    }
    .assistant-icon {
        width: 60px;
        height: 60px;
    }
    .menu-popup li {
        font-size: 12px;
        padding: 8px;
    }
}
@media (min-width: 769px) {
    .menu-popup {
        position: absolute;
        transform: none;
    }
}