/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-image: url("/lms/static/images/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ================= BACKGROUND ================= */
.bg {
    
    
}

/* ================= LOGIN ================= */
.login-container {
    max-width: 400px;
    width: 90%;
    margin: 60px auto;
}

.card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 15px;
}

/* ================= BUTTONS ================= */
.btn-primary {
    background-color: #28a745;
    border-color: #28a745;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    transform: scale(1.05);
}

/* ================= NAVBAR ================= */
.navbar {
    background: linear-gradient(to right, #007bff, #00c6ff);
    margin-bottom: 20px;
}

/* ================= SIDEBAR ================= */
.sidebar {
    min-height: 100vh;
    background-color: #f8f9fa;
    padding: 10px;
}

.sidebar .nav-link {
    color: #333;
    padding: 10px;
    border-radius: 5px;
    display: block;
    margin-bottom: 5px;
}

.sidebar .nav-link.active {
    background-color: #28a745;
    color: white;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

/* ================= TABLE ================= */
table {
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    overflow-x: auto;
    display: block;
}

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

/* ?? Mobile (up to 576px) */
@media (max-width: 576px) {

    body {
        font-size: 14px;
    }

    .login-container {
        margin: 30px auto;
    }

    .navbar {
        text-align: center;
    }

    .sidebar {
        min-height: auto;
        width: 100%;
    }

    .card {
        padding: 10px;
    }

    table {
        font-size: 12px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ?? Tablet (576px - 768px) */
@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    .sidebar {
        min-height: auto;
    }

    .card {
        padding: 12px;
    }

    table {
        font-size: 13px;
    }
}

/* ?? Laptop (768px - 992px) */
@media (max-width: 992px) {

    body {
        font-size: 16px;
    }

    .login-container {
        max-width: 500px;
    }
}

/* ?? Large Screens */
@media (min-width: 1200px) {

    .container {
        max-width: 1140px;
    }

    body {
        font-size: 17px;
    }
}