/* public/css/admin_tables.css */

.page-header {
    text-align: center;
    margin-bottom: 40px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.page-header p {
    font-size: 16px;
    color: #6c757d;
}

.btn-add {
    background-color: #198754;
    color: white;
    margin-top: 20px;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.admin-table-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background-color: #f8f9fa;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

table th {
    font-weight: 600;
    color: #343a40;
}

table tbody tr:hover {
    background-color: #f1f3f5;
}

.actions-cell button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
    padding: 5px;
}

.btn-edit { color: #ffc107; }
.btn-delete { color: #dc3545; }

/* Estilos para o link na sidebar */
.sidebar-view-public-btn {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border-radius: 6px;
    background-color: #e9ecef;
    color: #343a40;
    font-weight: 500;
    text-decoration: none;
}
.sidebar-view-public-btn:hover {
    background-color: #d1d5db;
}

/* Modal (reutilizado de outros estilos, mas com ajustes) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 1; transition: opacity 0.3s ease; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-content { background: #fff; padding: 25px; border-radius: 8px; width: 90%; max-width: 600px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #dee2e6; }
.close-modal-btn { background: none; border: none; font-size: 28px; color: #6c757d; cursor: pointer; line-height: 1; }
#post-form { padding-top: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #dee2e6; border-radius: 6px; font-size: 15px; }
.modal-footer { display: flex; justify-content: flex-end; padding-top: 15px; border-top: 1px solid #dee2e6; }
.btn-save { background-color: #0d6efd; color: white; padding: 10px 25px; border: none; border-radius: 6px; }