/* public/css/blog_admin.css */

.main-content-wrapper { padding: 30px; background-color: #f8f9fa; }
.page-header { display: flex; justify-content: space-between; align-items: center; text-align: left; margin-bottom: 30px; background-color: #ffffff; padding: 25px; border-radius: 8px; border: 1px solid #dee2e6; }
.page-header h1 { font-size: 28px; font-weight: 600; margin-bottom: 5px; }
.page-header p { font-size: 16px; color: #6c757d; }
.admin-container { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 1024px) { .admin-container { grid-template-columns: 1fr 1.2fr; } }
.card { background-color: #ffffff; border-radius: 8px; border: 1px solid #dee2e6; padding: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.card h2 { margin-top: 0; margin-bottom: 25px; border-bottom: 1px solid #eee; padding-bottom: 15px; font-size: 20px; }

/* Formulário */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 14px; }
.form-group input[type="text"], .form-group input[type="url"], .form-group textarea { width: 100%; padding: 12px; border: 1px solid #ced4da; border-radius: 6px; font-size: 15px; font-family: 'Poppins', sans-serif; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #0d6efd; box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15); }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.form-row .form-group { flex: 1; min-width: 200px; }
.btn-primary { background-color: #0d6efd; color: white; padding: 12px 25px; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 500; transition: background-color 0.2s; }
.btn-primary:hover { background-color: #0b5ed7; }

.file-input-wrapper { display: flex; align-items: center; gap: 10px; }
.file-input-hidden { display: none; }
.btn.file-input-label { padding: 8px 15px; background-color: #e9ecef; color: #495057; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background-color 0.2s; }
.btn.file-input-label:hover { background-color: #d1d5db; }
.file-name-display { font-size: 14px; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lista de Posts Publicados */
#posts-list-container { max-height: 600px; overflow-y: auto; padding-right: 10px; }
.post-item { display: flex; align-items: flex-start; gap: 15px; padding: 15px 0; border-bottom: 1px solid #eee; }
.post-item:first-child { padding-top: 0; }
.post-item:last-child { border-bottom: none; }
.post-item-image { width: 100px; height: 75px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background-color: #f0f0f0; }
.post-item-info { flex-grow: 1; }
.post-item-info h3 { margin: 0 0 5px 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.post-item-info p { margin: 0; color: #6c757d; font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.category-badge { background-color: #e9ecef; padding: 3px 8px; border-radius: 4px; font-size: 12px; }
.btn-icon.btn-delete { background: none; border: none; font-size: 18px; color: #dc3545; cursor: pointer; padding: 5px; }
.btn-icon.btn-delete:hover { color: #a71d2a; }
.loading-placeholder, .empty-list, .error-message { text-align: center; padding: 40px 20px; color: #6c757d; font-size: 16px; }
.error-message { color: #dc3545; }

.btn-outline { background-color: transparent; border: 1px solid #ced4da; color: #495057; padding: 10px 20px; border-radius: 6px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.2s; }
.btn-outline:hover { background-color: #f8f9fa; border-color: #adb5bd; }

/* Notificação Customizada */
.notification { position: fixed; bottom: 25px; right: 25px; background-color: #2c3e50; color: white; font-weight: 500; padding: 16px 22px; border-radius: 8px; display: flex; align-items: center; gap: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.15); z-index: 1002; transform: translateY(150%); opacity: 0; visibility: hidden; transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, visibility 0.4s; }
.notification.show { transform: translateY(0); opacity: 1; visibility: visible; }
.notification .notification-icon { font-size: 20px; color: #27ae60; }

/* ESTILOS PARA O MODAL DE CONFIRMAÇÃO */
.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; transition: opacity 0.3s ease; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-content { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); text-align: center; max-width: 400px; width: 90%; transform: scale(0.95); transition: transform 0.3s ease; }
.modal-overlay:not(.hidden) .modal-content { transform: scale(1); }
.modal-title { font-size: 22px; color: #343a40; margin-top: 0; margin-bottom: 10px; }
#modal-text { color: #6c757d; margin-bottom: 25px; font-size: 16px; }
.modal-actions { display: flex; justify-content: center; gap: 15px; }
.modal-actions .btn { padding: 10px 25px; font-weight: 500; }
.btn-danger { background-color: #dc3545; color: white; }
.btn-secondary { background-color: #f1f1f1; color: #495057; border: 1px solid #ced4da; }