body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: row;
}

.sidebar_barber {
    width: 250px;
    min-height: 100vh;
    background-color: #343a40;
    padding: 20px;
    flex-shrink: 0;
}

.sidebar_barber a {
    display: block;
    color: white;
    padding: 10px;
    text-decoration: none;
    margin-bottom: 10px;
    border-radius: 5px;
}

.sidebar_barber a:hover,
.sidebar_barber a.active {
    background-color: #495057;
    font-weight: bold;
}

.content {
    flex: 1;
    padding: 20px;
    overflow-x: auto;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        height: auto;
    }

    .sidebar_barber {
        width: 100%;
        min-height: auto;
        height: auto;
        padding: 10px;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        background-color: #343a40;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sidebar_barber::-webkit-scrollbar {
        display: none;
    }

    .sidebar_barber h4,
    .sidebar_barber .mb-4 {
        display: none;
    }

    .sidebar_barber a {
        flex: 0 0 auto;
        height: auto;
        display: inline-block;
        white-space: nowrap;
        padding: 8px 14px;
        margin-right: 8px;
        font-size: 14px;
        background-color: #212529;
        color: white;
        border-radius: 6px;
        transition: background-color 0.2s;
    }

    .sidebar_barber a.active {
        background-color: #495057;
        font-weight: bold;
    }

    .content {
        padding: 15px;
    }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    img.preview {
        max-width: 100px;
        max-height: 100px;
    }
}

@media (max-width: 576px) {

    table th,
    table td {
        font-size: 12px;
        padding: 6px 8px;
    }

    img.preview {
        max-width: 70px;
        max-height: 70px;
    }
}

.sidebar_barber {
    background: #1e293b;
    color: white;
    padding: 1rem;
    height: 100vh;
}

.sidebar_barber a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
}

.sidebar_barber a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar_barber a.text-danger:hover {
    background: rgba(255, 0, 0, 0.1);
}
