/* ========================================
   ESTILOS GERAIS - IMOB SYSTEM
   ======================================== */

:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --background: #f4f7f6;
    --card: #ffffff;
    --text: #333333;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F9FAFB;
    display: flex;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* ========================================
   MENU LATERAL (SIDEBAR)
   ======================================== */
.sidebar {
    width: var(--sidebar-width);
    background-color: #ffffff;
    color: #4B5563;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    position: sticky;
    top: 0;
    z-index: 50;
    border-right: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.sidebar h2 {
    text-align: center;
    padding: 25px 20px;
    margin: 0;
    color: #1F2937;
    font-size: 1.5rem;
    font-weight: 800;
    border-bottom: 1px solid #E5E7EB;
    letter-spacing: -0.5px;
}

#menu-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.menu-item {
    margin: 4px 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 10px;
    color: #4B5563;
    font-weight: 500;
}

.menu-item:hover {
    background-color: #F3F4F6;
    color: #1F2937;
}

.menu-item.active {
    background-color: #EEF2FF;
    color: #6366F1;
    font-weight: 600;
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid #E5E7EB;
    background-color: #F9FAFB;
}

.user-info-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 700;
    color: #1F2937;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: #6B7280;
}

.logout-icon {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.logout-icon:hover {
    opacity: 1;
}

/* ========================================
   AREA DE CONTEUDO
   ======================================== */
#main-app-container {
    flex: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ========================================
   CARD E COMPONENTES GENERICOS
   ======================================== */
.card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-blue {
    background: var(--accent);
    color: white;
}

.btn-green {
    background: var(--success);
    color: white;
}

.btn-red {
    background: var(--danger);
    color: white;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        overflow-y: auto;
        height: auto;
    }

    .sidebar {
        display: none;
        width: 100%;
        height: auto;
        position: static;
    }

    .sidebar.active {
        display: flex;
        position: fixed;
        height: 100vh;
        top: 0;
        left: 0;
    }
}