/* ===============================
   GLOBAL APP LAYOUT
================================ */
.app-container {
    display: flex;
    min-height: 100vh;
    background: #f4f6f8;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ===============================
   SIDEBAR
================================ */
.sidebar {
    width: 230px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 16px;
    color: #128c7e; /* WhatsApp green */
}

.sidebar-menu {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-item {
    padding: 10px 12px;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease;
}

    .menu-item:hover {
        background: #f0f2f5;
    }

    .menu-item.active {
        background: #e7f7f5;
        color: #128c7e;
        font-weight: 500;
    }

/* ===============================
   MAIN CONTENT
================================ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Top bar */
.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
}

.page-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Content */
.content-wrapper {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Footer */
.app-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 10px 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* ===============================
   RESPONSIVE (MOBILE)
================================ */
@media (max-width: 768px) {
    .sidebar {
        position: absolute;
        z-index: 1000;
        height: 100vh;
        left: 0;
        top: 0;
        background: #fff;
    }

    .app-container.sidebar-collapsed .sidebar {
        transform: translateX(-100%);
    }
}

/* ===============================
   SIDEBAR TOGGLE
================================ */
.sidebar {
    transition: width 0.25s ease, transform 0.25s ease;
}

.app-container.sidebar-collapsed .sidebar {
    width: 0;
    overflow: hidden;
}

.app-container.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* Toggle button */
.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    margin-right: 12px;
    cursor: pointer;
    color: #128c7e;
}
