.admin-login {
    background: linear-gradient(135deg, #004a8d 0%, #0071bc 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 74, 141, 0.2);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    max-width: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-header h1 {
    font-size: 24px;
    color: #004a8d;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #0071bc;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 188, 0.1);
}

/* Botões padrão */
button, input[type="submit"], input[type="button"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    cursor: pointer;
    transition: all 0.35s ease;
    border: none;
    font-weight: 600;
}

.btn-primary, .btn-add, .btn-save, input[type="submit"] {
    background: linear-gradient(135deg, #0071bc 0%, #005a9c 100%);
    color: white;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(0, 113, 188, 0.25);
}

.btn-primary:hover, .btn-add:hover, .btn-save:hover, input[type="submit"]:hover {
    background: linear-gradient(135deg, #005a9c 0%, #004a8d 100%);
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.35);
    transform: translateY(-2px);
}

.btn-primary:active, .btn-add:active, .btn-save:active, input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 113, 188, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #0071bc 0%, #005a9c 100%);
    color: white;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    font-size: 15px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 113, 188, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #005a9c 0%, #004a8d 100%);
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.4);
    transform: translateY(-2px);
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 6px;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
}

.login-footer a {
    color: #0071bc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: #004a8d;
    text-decoration: underline;
}

/* Estilos para a área administrativa após login */
.admin-panel {
    display: flex;
    min-height: 100vh;
    background-color: #f5f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #004a8d 0%, #003d6b 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 4px 0 15px rgba(0, 74, 141, 0.15);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    text-align: center;
}

.admin-sidebar .logo img {
    max-width: 100%;
    max-height: 60px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.admin-sidebar .logo h2 {
    font-size: 14px;
    margin: 0;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    letter-spacing: 0.3px;
}

.admin-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-menu li {
    margin-bottom: 0;
}

.admin-menu a {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    gap: 12px;
}

.admin-menu a:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    border-left-color: #29abe2;
}

.admin-menu a.active {
    background-color: rgba(255, 255, 255, 0.18);
    border-left-color: #29abe2;
    color: white;
    font-weight: 600;
}

.admin-menu i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}

.admin-content {
    flex: 1;
    padding: 40px;
    margin-left: 260px;
    background-color: #f5f7fa;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e8e8e8;
}

.admin-title {
    font-size: 26px;
    color: #004a8d;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user span {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    border-radius: 8px;
    padding: 9px 18px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.2);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #b91c1c 100%);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
}

.logout-btn:active {
    transform: translateY(0);
}

.admin-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 74, 141, 0.08);
    padding: 28px;
    margin-bottom: 28px;
    transition: all 0.35s ease;
    border: 1px solid #f0f0f0;
}

.admin-card:hover {
    box-shadow: 0 6px 20px rgba(0, 74, 141, 0.12);
    border-color: #e8e8e8;
}

.admin-card h2 {
    margin-top: 0;
    color: #004a8d;
    font-size: 19px;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estilos para o formulário de upload */
.upload-form {
    margin-bottom: 30px;
}

.file-list {
    margin-top: 30px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.file-item:hover {
    background-color: #f8f9fa;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.file-meta {
    font-size: 12px;
    color: #999;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.file-actions button {
    background-color: transparent;
    border: none;
    color: #0071bc;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

    color: #004a8d;
    background-color: rgba(0, 113, 188, 0.1);
}

.file-actions button.delete {
    color: #dc3545;
}

.file-actions button.delete:hover {
    color: #c82333;
    background-color: rgba(220, 53, 69, 0.1);
}

/* Estilos para o formulário de notícias */
.news-form {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select:hover,
.form-group textarea:hover {
    border-color: #d0d0d0;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071bc;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 188, 0.1);
}

.image-upload-area {
    position: relative;
}

#newsImage {
    display: block;
    width: 100%;
    padding: 25px;
    border: 2px dashed #0071bc;
    border-radius: 8px;
    background-color: #f0f7ff;
    cursor: pointer;
    transition: all 0.35s ease;
    font-size: 14px;
    color: #0071bc;
}

#newsImage:hover {
    background-color: #e8f1ff;
    border-color: #005a9c;
}

.image-preview {
    position: relative;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f7fa;
}
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.btn-remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(217, 83, 79, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-remove-image:hover {
    background-color: #c9302c;
    transform: scale(1.1);
}

/* Estilos para múltiplas imagens */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background-color: #f5f7fa;
    border-radius: 8px;
}

.image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e0e0e0;
    flex-shrink: 0;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-order {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 74, 141, 0.9);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 10px;
    font-style: italic;
}

.btn-remove-images {
    background-color: rgba(217, 83, 79, 0.9);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-remove-images:hover {
    background-color: #c9302c;
}

.form-group label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
    width: auto;
}

/* Estilos para a lista de notícias */
.news-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: white;
    border: 1.5px solid #e0e0e0;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s ease;
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #0071bc;
    color: #0071bc;
    background-color: rgba(0, 113, 188, 0.05);
}

.filter-btn.active {
    background: linear-gradient(135deg, #0071bc 0%, #005a9c 100%);
    color: white;
    border-color: #0071bc;
    box-shadow: 0 3px 10px rgba(0, 113, 188, 0.2);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-item {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background-color: white;
    transition: all 0.35s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 74, 141, 0.06);
}

.news-item:hover {
    box-shadow: 0 6px 16px rgba(0, 74, 141, 0.12);
    border-color: #0071bc;
    transform: translateY(-2px);
}

.news-item.is-highlight {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #fffef7 100%);
    border-width: 2px;
}

.news-image {
    position: relative;
    width: 200px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-highlight {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
}

.news-info h3 {
    margin: 0 0 12px 0;
    color: #004a8d;
    font-size: 17px;
    font-weight: 700;
}

.news-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.meta-date,
.meta-author,
.meta-published {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-content-preview {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.news-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 145px;
}

.news-actions button {
    background-color: white;
    border: 1.5px solid #e0e0e0;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s ease;
    color: #0071bc;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.news-actions button:hover {
    border-color: #0071bc;
    background-color: rgba(0, 113, 188, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 113, 188, 0.15);
}

.news-actions button.delete-news {
    color: #dc3545;
    border-color: #e8c5c5;
}

.news-actions button.delete-news:hover {
    background-color: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.15);
}

.no-items {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 15px;
}

/* Estilos para formulários padrão */
.form-standard {
    margin-bottom: 30px;
}

.list-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input,
.category-filter {
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.search-input:focus,
.category-filter:focus {
    outline: none;
    border-color: #0071bc;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 188, 0.1);
}

.search-input {
    flex: 1;
    min-width: 200px;
}

.category-filter {
    min-width: 150px;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.35s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.item-card:hover {
    border-color: #0071bc;
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.12);
    transform: translateY(-3px);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.item-header h3 {
    margin: 0;
    color: #0071bc;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.category-badge {
    background: linear-gradient(135deg, #0071bc 0%, #005a9c 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0, 113, 188, 0.2);
    letter-spacing: 0.3px;
}

.item-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.item-description {
    color: #555;
    font-size: 14px;
    margin: 12px 0;
    line-height: 1.5;
}

.item-link {
    margin: 12px 0;
}

.item-link a {
    color: #0071bc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.item-link a:hover {
    color: #005a9c;
    text-decoration: underline;
    gap: 10px;
}

.item-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1.5px solid #e0e0e0;
}

.delete-instrument {
    background-color: white;
    border: 1.5px solid #dc3545;
    color: #dc3545;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s ease;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delete-instrument:hover {
    background-color: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
}

.no-link {
    color: #999;
    font-size: 13px;
    font-style: italic;
}

/* Estilos para membros do comitê */
.comite-form {
    margin-bottom: 30px;
}

.photo-upload-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.photo-preview-container {
    text-align: center;
}

.photo-preview-container img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 113, 188, 0.2);
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
}

.btn-remove-photo {
    background-color: white;
    border: 1.5px solid #dc3545;
    color: #dc3545;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s ease;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    display: inline-block;
}

.btn-remove-photo:hover {
    background-color: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
}

.member-admin-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.35s ease;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.member-admin-card:hover {
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.12);
    border-color: #0071bc;
    transform: translateY(-3px);
}

.member-admin-photo {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #0071bc, #005a9c);
    border: 2px solid #e0e0e0;
}

.member-admin-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-admin-info h3 {
    margin: 0 0 10px 0;
    color: #0071bc;
    font-size: 16px;
    font-weight: 600;
}

.member-admin-info p {
    margin: 6px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.member-admin-info .info-label {
    font-weight: 600;
    color: #333;
    margin-right: 6px;
}

.member-actions {
    display: flex;
    gap: 10px;
}

.btn-edit-member,
.btn-delete-member {
    padding: 8px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s ease;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: white;
}

.btn-edit-member {
    color: #0071bc;
    border-color: #0071bc;
}

.btn-edit-member:hover {
    background-color: rgba(0, 113, 188, 0.08);
    box-shadow: 0 3px 10px rgba(0, 113, 188, 0.15);
    transform: translateY(-2px);
}

.btn-delete-member {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-delete-member:hover {
    background-color: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
}

.members-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.no-members-message {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 15px;
    font-style: italic;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #0071bc 0%, #005a9c 100%);
    color: white;
    border-radius: 12px;
    gap: 15px;
    box-shadow: 0 3px 12px rgba(0, 113, 188, 0.25);
    transition: all 0.35s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.35);
}

.stat-item i {
    font-size: 32px;
    opacity: 0.9;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0071bc 0%, #005a9c 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 3px 12px rgba(0, 113, 188, 0.25);
}

.btn-action:hover {
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.35);
    transform: translateY(-3px);
}

/* Responsividade */
@media (max-width: 768px) {
    .admin-panel {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px 0;
    }
    
    .admin-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .admin-user {
        width: 100%;
        justify-content: space-between;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        width: 100%;
        height: 200px;
    }
    
    .news-actions {
        flex-direction: row;
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .member-admin-card {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .member-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
    
    .member-admin-photo {
        width: 80px;
        height: 80px;
    }
    
    .photo-preview-container img {
        max-width: 150px;
        max-height: 150px;
    }
}

/* Quill Editor Styling */
.quill-editor {
    background-color: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    min-height: 300px;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ql-toolbar {
    border-top-left-radius: 11px;
    border-top-right-radius: 11px;
    border-bottom: 1.5px solid #e0e0e0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    padding: 12px;
}

.ql-toolbar button:hover,
.ql-toolbar button.ql-active {
    color: #0071bc;
}

.ql-container {
    border-bottom-left-radius: 11px;
    border-bottom-right-radius: 11px;
    font-size: 14px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ql-editor {
    padding: 18px;
    font-family: inherit;
    min-height: 250px;
    line-height: 1.6;
}

.ql-editor.ql-blank::before {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* ============ ESTILOS PARA GERENCIAMENTO DE USUÁRIOS ============ */

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.user-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
}

.user-card:hover {
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.12);
    border-color: #0071bc;
    transform: translateY(-3px);
}

.user-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1.5px solid #e0e0e0;
    gap: 10px;
}

.user-card-header h3 {
    margin: 0;
    color: #0071bc;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.user-status {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.user-status.active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    box-shadow: 0 2px 6px rgba(21, 87, 36, 0.2);
}

.user-status.inactive {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    box-shadow: 0 2px 6px rgba(114, 28, 36, 0.2);
}

.user-card-body {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.6;
}

.user-card-body p {
    margin: 8px 0;
    color: #666;
}

.user-card-body strong {
    color: #333;
    font-weight: 600;
}

.user-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1.5px solid #e0e0e0;
    padding-top: 15px;
}

.btn-small {
    flex: 1;
    min-width: 75px;
    padding: 8px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    color: #0071bc;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-small:hover {
    background-color: rgba(0, 113, 188, 0.08);
    border-color: #0071bc;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 113, 188, 0.15);
}

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

.btn-small.btn-danger:hover {
    background-color: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.15);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.3s ease;
    border: 1.5px solid #e0e0e0;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #0071bc;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.close {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #0071bc;
    background-color: rgba(0, 113, 188, 0.1);
    border-radius: 6px;
}

.modal-content .form-group {
    margin-bottom: 18px;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.modal-content .form-group input,
.modal-content .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background-color: #f9fafb;
    transition: all 0.3s ease;
}

.modal-content .form-group input:focus,
.modal-content .form-group select:focus {
    outline: none;
    border-color: #0071bc;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 188, 0.1);
}

.modal-content .form-group input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.modal-content button {
    margin-top: 15px;
}

.modal-content .btn-primary,
.modal-content .btn-secondary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-content .btn-primary {
    background: linear-gradient(135deg, #0071bc 0%, #005a9c 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(0, 113, 188, 0.25);
}

.modal-content .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 113, 188, 0.35);
    transform: translateY(-2px);
}

.modal-content .btn-secondary {
    background-color: white;
    color: #666;
    border: 1.5px solid #e0e0e0;
}

.modal-content .btn-secondary:hover {
    border-color: #0071bc;
    color: #0071bc;
    background-color: rgba(0, 113, 188, 0.05);
}

.message {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.message.success {
    display: block;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1.5px solid #b1dfbb;
    box-shadow: 0 2px 8px rgba(21, 87, 36, 0.15);
}

.message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    display: block;
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Estilos para as novas funcionalidades de notícias */
.news-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-edit-news,
.btn-delete-news {
    padding: 8px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: white;
}

.btn-edit-news {
    background: linear-gradient(135deg, #0071bc 0%, #005a9c 100%);
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 113, 188, 0.15);
}

.btn-edit-news:hover {
    box-shadow: 0 4px 12px rgba(0, 113, 188, 0.25);
    transform: translateY(-1px);
}

.btn-delete-news {
    background-color: white;
    color: #dc3545;
    border-color: #dc3545;
}

.btn-delete-news:hover {
    background-color: #dc3545;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
    transform: translateY(-1px);
}

.news-image-placeholder {
    width: 200px;
    height: 150px;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f0f0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    border: 2px dashed #e0e0e0;
}

.btn-close {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    border: 1.5px solid #e0e0e0 !important;
}

.btn-close:hover {
    background-color: #e8e8e8 !important;
    border-color: #d0d0d0 !important;
}

#editNewsContentEditor {
    min-height: 300px;
}

.modal-content .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-content .form-row .form-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .modal-content .form-row {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .news-image,
    .news-image-placeholder {
        width: 100%;
    }
    
    .news-actions {
        justify-content: flex-start;
    }
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}