/* GLOBAL */
body {
    margin: 0;
    background: #0f0f11;
    color: #e5e5e5;
    font-family: "Segoe UI", Arial, sans-serif;
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: #1a1c1f;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #2a2c31;
    transition: transform 0.3s ease;
}

.sidebar .logo {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #4da3ff;
}

.sidebar a {
    color: #e5e5e5;
    text-decoration: none;
    padding: 12px 0;
    display: block;
    font-size: 15px;
}

.sidebar a:hover {
    color: #4da3ff;
}

/* MOBILE SIDEBAR COLLAPSE */
.sidebar.collapsed {
    transform: translateX(-260px);
}

.menu-toggle {
    display: none;
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1a1c1f;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #2a2c31;
    color: #e5e5e5;
    cursor: pointer;
}

/* MAIN CONTENT */
.main {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

h1 {
    margin-top: 0;
    font-size: 26px;
    color: #4da3ff;
}

/* CARDS */
.card {
    background: #1a1c1f;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #2a2c31;
    margin-bottom: 20px;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #2a2c31;
}

table tr:hover {
    background: #232529;
}

/* RESPONSIVE TABLES */
@media (max-width: 700px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    table tr {
        margin-bottom: 15px;
        background: #1a1c1f;
        padding: 10px;
        border-radius: 6px;
    }

    table td {
        border: none;
        padding: 8px 0;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #9a9a9a;
        display: block;
    }
}

/* MOBILE BREAKPOINT */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    body {
        flex-direction: column;
    }

    .sidebar {
        position: absolute;
        height: 100%;
        z-index: 10;
    }

    .main {
        padding-top: 60px;
    }
}

