/* ===========================
   General Body & Main
=========================== */
body, .main-content {
    background-color: #12121f; 
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h2 {
    font-weight: 600;
    margin-bottom: 20px;
}

/* ===========================
   Navbar
=========================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3947;
    padding: 10px 20px;
    color: white;
}

.navbar .nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .logo {
    height: 40px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
}

.navbar .nav-links a:hover {
    text-decoration: underline;
}

/* Mobile navbar: stack links */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .navbar .nav-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }
}

/* ===========================
   Dashboard Label + Buttons
=========================== */
.dashboard-label {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.dashboard-label .filter-buttons {
    display: flex;
    gap: 10px;      /* space between buttons */
}

.dashboard-label .filter-buttons button {
    background: #2a2a3d;
    color: white;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1;
    height: 26px;
    min-height: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-label .filter-buttons button.active {
    background: #6a5acd;
}

/* Responsive: stack buttons below label on small screens */
@media (max-width: 600px) {
    .dashboard-label {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-label .filter-buttons {
        margin-top: 4px;
    }
}

/* ===========================
   Dashboard Grid
=========================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin-bottom: 40px;
}

/* Medium screens (tablets) */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small screens (phones) */
@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Widget Cards
=========================== */
.widget-card {
    background-color: #1e1e2f;
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.2s;
    width: 100%;
    max-width: 100%;
}

.widget-card:hover {
    transform: translateY(-5px);
}

/* Canvas inside widgets */
.widget-card canvas {
    width: 100% !important;
    height: auto !important;
}

/* ===========================
   Last Events Table
=========================== */
table.dataTable {
    width: 100% !important;
    background-color: #1e1e2f;
    color: white;
}

table.dataTable th,
table.dataTable td {
    color: white;
}

table.dataTable th {
    background-color: #2c3947;
    font-weight: bold;
}

/* ===========================
   Footer
=========================== */
footer {
    background-color: #2c3947;
    color: white;
    text-align: center;
    padding: 10px;
}

/* ===========================
   Misc Responsive Adjustments
=========================== */
h3 {
    margin-bottom: 10px;
}

p {
    margin-top: 5px;
    font-size: 1em;
}
