
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: #ffffff;
}

/* Layout */
.app-layout {
    display: flex;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 240px;
    min-width: 240px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.2s ease, min-width 0.2s ease;
}

.sidebar.collapsed {
    width: 0;
    min-width: 0;
    border-right: 0;
}

/* Sidebar Links */
.sidebar-menu {
    padding: 15px 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    margin-bottom: 4px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
}

.sidebar-link i {
    font-size: 18px;
}

.sidebar-link:hover {
    background-color: #e9ecef;
    color: #212529;
}

/* Logout */
.sidebar-footer {
    margin-top: auto;
    padding: 10px;
    border-top: 1px solid #dee2e6;
}

.logout-link {
    color: #dc3545;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 25px;
    background-color: #ffffff;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    text-align: center;
    padding: 12px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        min-width: 200px;
    }

    .main-content {
        padding: 15px;
    }
}
