* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background-color: #1877f2;
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
}

.header h1 {
    font-size: 20px;
    font-weight: 600;
}

.sidebar {
    width: 250px;
    background-color: #fff;
    height: calc(100vh - 60px);
    position: fixed;
    top: 60px;
    left: -250px;
    transition: left 0.3s ease;
    z-index: 900;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.sidebar-header h2 {
    font-size: 18px;
    color: #1c1e21;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 15px;
    background-color: transparent;
    color: #1c1e21;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.sidebar-btn i {
    margin-right: 10px;
    width: 20px;
}

.sidebar-btn:hover, .sidebar-btn.active {
    background-color: #e7f3ff;
    color: #1877f2;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 800;
}

.overlay.active {
    display: block;
}



.main-content.shifted {
    margin-left: 250px;
}

.content-section {
    display: none; /* Padrão: escondido */
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.content-section.active {
    display: block !important; /* Força a visibilidade */
}

/* Garante que o conteúdo não seja cortado */
.main-content {
    margin-top: 60px;
    margin-left: 0;
    padding: 20px;
    flex-grow: 1;
    max-width: 100%;
    overflow-x: auto;
    min-height: calc(100vh - 60px); /* Garante altura mínima */
}
.section-header {
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 20px;
    color: #1c1e21;
}

.upload-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.upload-form input[type="file"] {
    padding: 5px;
}

.upload-form button {
    background-color: #1877f2;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
}

.upload-form button:hover {
    background-color: #165eab;
}

.resultado {
    color: #65676b;
    margin-bottom: 15px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-container input, .filter-container select {
    padding: 8px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 14px;
    max-width: 150px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.delete-all-btn, .select-all-btn, .send-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.delete-all-btn {
    background-color: #e4e6eb;
    color: #1c1e21;
}

.delete-all-btn:hover {
    background-color: #d8dade;
}

.select-all-btn {
    background-color: #e7f3ff;
    color: #1877f2;
}

.select-all-btn:hover {
    background-color: #d0e4ff;
}

.send-btn {
    background-color: #1877f2;
    color: white;
}

.send-btn:hover {
    background-color: #165eab;
}

.send-btn:disabled {
    background-color: #ccd0d5;
    cursor: not-allowed;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f6f5;
    color: #65676b;
    font-weight: 600;
}

.delete-btn {
    background-color: #e4e6eb;
    color: #1c1e21;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: #d8dade;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.pagination button {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    background-color: #e4e6eb;
    color: #1c1e21;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #f0f2f5;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background-color: #d8dade;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
        left: -200px;
    }

    .main-content.shifted {
        margin-left: 200px;
    }

    .filter-container {
        flex-direction: column;
    }

    .filter-container input, .filter-container select {
        max-width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 500px) {
    .header h1 {
        font-size: 16px;
    }

    .sidebar {
        width: 180px;
        left: -180px;
    }

    .main-content.shifted {
        margin-left: 180px;
    }
}