:root {
    --tr-primary: #1b3a5c;
    --tr-primary-light: #2c5580;
}

body {
    background: #f4f6f9;
}

/* Login */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tr-primary), var(--tr-primary-light));
}

.login-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

/* App layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 230px;
    background: var(--tr-primary);
    color: #fff;
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 1.2rem 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, .8);
    padding: .7rem 1.2rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-left-color: #fff;
    font-weight: 600;
}

.app-content {
    flex: 1;
    min-width: 0;
}

.topbar {
    background: #fff;
    padding: .7rem 1.2rem;
    border-bottom: 1px solid #e3e6ea;
}

/* Dashboard cards */
.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    height: 100%;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: .85rem;
}

/* Gallery */
.galeria-fotos img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    margin: 4px;
}

@media (max-width: 767px) {
    .sidebar {
        position: fixed;
        left: -230px;
        top: 0;
        bottom: 0;
        z-index: 1050;
        transition: left .2s ease;
    }

    .sidebar.open {
        left: 0;
    }
}
