/* === Estrutura Principal === */
.container {
    padding: 30px 15px;
    max-width: 100%;
    box-sizing: border-box;
}

h1 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* === Tabela === */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: unset;
    table-layout: auto;
    word-wrap: break-word;
}

td,
th {
    padding: 5px 7px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: normal;
    word-break: break-word;
}

thead {
    background-color: #007bff;
    color: white;
}

/* === Botões / Ações === */
.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.actions a,
.actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.actions i {
    pointer-events: none;
    font-size: 16px;
}

.btn {
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* === Formulários === */
label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    margin-top: 15px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
    background-color: white;
    appearance: none;
}

.form-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-actions,
.actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
    font-size: 14px;
}

/* === Export Buttons === */
.export-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* === Responsive === */
@media (max-width: 768px) {
    table {
        font-size: 13px;
    }

    .actions {
        gap: 6px;
        flex-wrap: wrap;
    }

    .btn,
    .actions a,
    .actions button {
        width: 36px;
        height: 36px;
        padding: 0;
        font-size: 14px;
    }

    .export-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .form-card {
        padding: 20px;
    }
}

.alert {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    color: white;
    font-weight: bold;
}

.alert-success {
    background-color: #28a745;
}

.alert-error {
    background-color: #dc3545;
}

.alert-warning {
    background-color: #ffc107;
    color: #000;
}

.sidebar a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

select[multiple] {
    height: auto;
    min-height: 100px;
}


.pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

.pagination li {
    display: inline;
}

.pagination a {
    padding: 8px 12px;
    background-color: #f0f0f0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.pagination li.active a {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #d0d0d0;
}

.pagination span {
    padding: 8px 12px;
    color: #999;
}