/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #343a40;
    color: #ffffff;
}

.header .logo {
    font-weight: bold;
    font-size: 20px;
}

.header h5 {
    margin: 0;
    font-size: 18px;
}

.header .btn {
    background-color: #007bff;
    border: none;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    border-right: 1px solid #ddd;
    padding-top: 20px;
    transition: transform 0.3s ease-in-out;
    z-index: 8;
}

.sidebar h4 {
    text-align: center;
    margin: 0;
    padding: 15px 0;
    font-size: 20px;
    color: #343a40;
    border-bottom: 1px solid #ddd;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    border-bottom: 1px solid #ddd;
}

.sidebar ul li a {
    display: block;
    padding: 10px 20px;
    color: #343a40;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease-in-out;
}

.sidebar ul li a:hover,
.sidebar ul li .active {
    background-color: #007bff;
    color: #ffffff;
}

.sidebar ul li a.text-danger {
    color: #dc3545;
}

.sidebar ul li a.text-danger:hover {
    background-color: #f8d7da;
    color: #dc3545;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 20px;
    
    min-height: 100vh;
    transition: margin-left 0.3s ease-in-out;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    
}

.card {
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 16px;
    margin-bottom: 10px;
}

.card-text {
    font-size: 24px;
    font-weight: bold;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 10px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        height: 100%;
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-icon {
        display: inline-block;
        font-size: 24px;
        cursor: pointer;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .card-text {
        font-size: 20px;
    }

    .card-title {
        font-size: 14px;
    }

    .table-responsive {
        overflow-x: auto;
    }
}

@media (max-width: 576px) {
    .header h5 {
        font-size: 14px;
    }

    .header .btn {
        font-size: 12px;
    }

    .card-text {
        font-size: 18px;
    }
}

/*css for ai teaher*/
/* Floating Button */
#ai-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0d6efd;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Chat Window */
#ai-chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    overflow: hidden;
}

/* Header */
#ai-chat-header {
    background: #0d6efd;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

/* Body */
#ai-chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

/* Footer */
#ai-chat-footer {
    display: flex;
    border-top: 1px solid #ddd;
}

#ai-chat-footer input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

#ai-chat-footer button {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}
