/* layout.css - Estructura general del dashboard */

:root {
    --sidebar-width: 250px;
    --header-height: 70px;
    --footer-height: 60px;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-color);
    color: white;
    position: fixed;
    height: 100vh;
    transition: all 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 1.5rem 0;
    background-color: var(--logo-bg);
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.sidebar-brand img {
    width: 218px;
    height: 65px;
    object-fit: contain;
}

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    font-weight: 500;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: all 0.3s;
    padding-bottom: var(--footer-height);
}

.main-header {
    background: var(--bs-body-bg);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: var(--header-height);
}

.main-footer {
    background: var(--bs-body-bg);
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--footer-height);
    z-index: 900;
}

/* Sidebar toggle (responsive) */
.sidebar-toggle {
    display: none;
    font-size: 1.25rem;
    color: var(--hamburger-color);
    background: none;
    border: none;
    position: absolute;
    left: 1rem;
}

.user-dropdown .btn {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.user-dropdown .btn:hover {
    background-color: #252036;
    border-color: #252036;
}

/* Content wrapper */
.content-wrapper {
    flex: 1;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }
    .main-content {
        margin-left: 0;
        padding-bottom: 0;
    }
    .main-footer {
        position: static;
        left: 0;
        height: auto;
    }
    .sidebar-toggle {
        display: block;
    }
    .theme-switcher-full {
        display: none;
    }
    .theme-switcher-mini {
        display: block;
        margin-left: auto;
    }
}