/* =======================
   Global Styles
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #121212;
    color: #fff;
}

/* =======================
   Sidebar Menu
========================== */
.dashboard-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: #1b1b2b;
    padding-top: 20px;
    transition: width 0.3s;
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 15px 20px;
    text-align: left;
    transition: background 0.3s;
}

.sidebar li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    display: block;
}

/* =======================
   Main Dashboard Content
========================== */
.main-content {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
    transition: margin-left 0.3s;
    width: calc(100% - 250px);
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #282842;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

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

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

.btn-danger:hover {
    background: #a71d2a;
}

/* =======================
   Table Styles
========================== */
.table-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th, table td {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

table th {
    background: #29293d;
    font-weight: bold;
}

table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =======================
   Mobile Responsive
========================== */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar h2 {
        display: none;
    }

    .sidebar ul {
        padding: 10px;
    }

    .sidebar a {
        font-size: 12px;
    }

    .main-content {
        margin-left: 70px;
        width: calc(100% - 70px);
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn {
        width: 100%;
    }

    table th, table td {
        padding: 5px;
        font-size: 12px;
    }
}

/* =======================
   Apply Styles ONLY for Login Page
========================== */
.login-page {
    background-color: #121212;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Fullscreen Height */
    width: 100vw;  /* Fullscreen Width */
}

/* Center Login Box */
.login-container {
    width: 400px;
    background: #1b1b2b;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Form Inputs */
.input-group {
    width: 100%;
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    background: #29293d;
    color: white;
    border: none;
    border-radius: 5px;
    outline: none;
    text-align: center;
}

.input-group input::placeholder {
    color: #bbb;
}

.input-group input:focus {
    border: 2px solid #007bff;
}

/* Login Button */
.btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    background: #007bff;
    color: white;
}

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

/* =======================
   Responsive Design
========================== */
@media (max-width: 500px) {
    .login-container {
        width: 90%;
        padding: 30px;
    }

    .input-group input {
        font-size: 14px;
    }

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