:root {

    --cafe: #6F4E37;
    --cafe-dark: #4B352A;
    --crema: #F5E6CC;
    --blanco: #FFFFFF;
    --gris: #F8F9FA;

}

body {

    font-family: 'Segoe UI', sans-serif;
    background: var(--gris);
    margin: 0;
    padding: 0;

}

.logo {

    width: 100%;
    max-width: 120px;
    height: auto;

}

.btn-cafe {

    background: var(--cafe);
    color: white;
    border: none;
    transition: .3s;

}

.btn-cafe:hover {

    background: var(--cafe-dark);
    color: white;
    transform: translateY(-2px);

}

.sidebar {

    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #4B352A;
    overflow-y: auto;
    z-index: 1000;

}

.sidebar-logo {

    text-align: center;
    padding: 25px 15px;

}

.sidebar-logo img {

    width: 80px;

}

.sidebar-logo h5 {

    color: white;
    margin-top: 10px;

}

.sidebar-logo small {

    color: var(--crema);

}

.sidebar-menu {

    margin-top: 20px;

}

.sidebar-menu a {

    display: block;
    padding: 12px 20px;

    color: white;
    text-decoration: none;

    transition: .3s;

}

.sidebar-menu a:hover {

    background: var(--cafe-dark);

}

.content {

    margin-left: 280px;
    min-height: 100vh;

}

.topbar {

    background: #6F4E37;
    color: white;

    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    align-items: center;

    padding: 0 25px;

    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);

}

.topbar h5 {

    color: white;

    margin: 0;

    font-weight: 600;

}

.topbar .user-info strong {

    color: white;

}

.topbar .user-info small {

    color: var(--crema);

}

.topbar .dropdown-toggle {

    background: white;

    color: var(--cafe);

    border: none;

}

.topbar .dropdown-toggle:hover {

    background: var(--crema);

    color: var(--cafe-dark);

}

.user-box {

    display: flex;
    align-items: center;

}

.user-box img {

    width: 50px;
    height: 50px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid white;

}

.user-info {

    margin-left: 12px;

}

.user-info strong {

    display: block;

}

.main-content {

    padding: 30px;

}

.page-title {

    font-size: 30px;
    font-weight: 700;

}

.card-custom {

    border: none;

    border-radius: 20px;

    background: white;

    overflow: hidden;

    transition: .3s;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .08);

}

.card-custom:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 25px rgba(0, 0, 0, .15);

}

.auth-background {

    min-height: 100vh;

    background-image:
        linear-gradient(rgba(75, 53, 42, .60),
            rgba(75, 53, 42, .60)),
        url('/assets/img/backgrounds/login-bg.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

}

.auth-card {

    width: 100%;
    max-width: 550px;

    margin: auto;

    border: none;
    border-radius: 25px;

    background: rgba(255, 255, 255, .95);

    backdrop-filter: blur(8px);

    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);

}

.auth-container {

    min-height: 100vh;

}

.auth-image {

    background-size: cover;
    background-position: center;

    min-height: 100vh;

}

.sidebar-title {

    padding: 15px 20px;

    color: #d2b48c;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

}

.stat-card {

    border: none;

    border-radius: 20px;

    background: white;

    transition: .3s;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .08);

}

.stat-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 25px rgba(0, 0, 0, .15);

}

.stat-icon {

    width: 60px;
    height: 60px;

    border-radius: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(111, 78, 55, .12);

    color: var(--cafe);

    font-size: 30px;

    margin-bottom: 15px;

}

.stat-card h2 {

    font-size: 38px;

    font-weight: 700;

    color: var(--cafe-dark);

}

.auth-form {

    background: white;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

}

.form-control {

    min-height: 48px;

}

.input-group .btn {

    min-width: 55px;

}

.hero-section {

    min-height: 100vh;

    background-image:
        linear-gradient(rgba(0, 0, 0, .55),
            rgba(0, 0, 0, .55)),
        url('/assets/img/backgrounds/login-bg.jpg');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

}

.hero-overlay {

    min-height: 100vh;

}

.feature-card {

    background: white;

    border-radius: 15px;

    padding: 30px;

    text-align: center;

    height: 100%;

    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);

    transition: .3s;

}

.feature-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 25px rgba(0, 0, 0, .12);

}

.cta-section {

    background: var(--cafe);

}

footer {

    background: var(--cafe-dark);

    color: white;

    text-align: center;

    padding: 8px;

    font-size: 13px;

}

.mobile-menu-btn {

    display: none;

    background: transparent;

    border: none;

    color: white;

    font-size: 30px;

    cursor: pointer;

}

.sidebar-overlay {

    display: none;

}

.tabla-avatar {

    width: 50px;

    height: 50px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid #ddd;

}

.table td {

    vertical-align: middle;

}

.btn-group .btn {

    min-width: 40px;

}

.perfil-avatar {

    width: 160px;

    height: 160px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #ddd;

}

.tabla-avatar {

    width: 60px;

    height: 60px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid #ddd;

}

.btn-group .btn {

    min-width: 40px;

}

#tablaPersonas tbody tr:hover {

    background: rgba(111, 78, 55, .05);

}

html,
body {

    height: 100%;

}

.dashboard-wrapper {

    min-height: 100vh;

    display: flex;

}

.content {

    flex: 1;

    display: flex;

    flex-direction: column;

    min-height: 100vh;

}

.main-content {

    flex: 1;

}

@media (max-width: 992px) {

    .mobile-menu-btn {

        display: block;

    }

    .sidebar {

        position: fixed !important;

        top: 0;

        left: -280px;

        width: 280px;

        height: 100vh;

        z-index: 9999;

        transition: all .3s ease;

    }

    .sidebar.show {

        left: 0;

    }

    .sidebar-overlay.show {

        display: block;

        position: fixed;

        inset: 0;

        background: rgba(0, 0, 0, .5);

        z-index: 9998;

    }

    .content {

        margin-left: 0 !important;

        width: 100%;

    }

    .topbar {

        height: auto;

        padding: 10px 15px;

    }

    .main-content {

        padding: 15px;

    }

    .user-info {

        display: none;

    }

    .user-box {

        margin-left: auto;

    }

}

@media (max-width: 768px) {

    .system-title {

        font-size: 2rem;

    }

}