/* CSS Específico para Sistema de Notícias */

/* Newsletter Styles */
.newsletter-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.newsletter-filters .filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.newsletter-filters .filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.newsletter-filters .filter-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
}

.newsletter-filters .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.newsletter-filters .filter-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.newsletter-filters .search-box {
    position: relative;
    min-width: 250px;
}

.newsletter-filters .search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    z-index: 2;
}

.newsletter-filters .search-box input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.newsletter-filters .search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-alpha);
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.newsletter-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.newsletter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgb(0 0 0 / 0.15);
}

.newsletter-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.newsletter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsletter-content {
    padding: 1.5rem;
}

.newsletter-date {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.newsletter-excerpt {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.newsletter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-read-more {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
}

.newsletter-read-more:hover {
    background: var(--primary-dark);
}

.newsletter-external-link {
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.newsletter-external-link:hover {
    color: var(--primary-dark);
}

/* Responsividade Newsletter */
@media (max-width: 768px) {
    .newsletter-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .newsletter-filters .search-box {
        min-width: auto;
    }
    
    .newsletter-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .newsletter-card {
        margin: 0 1rem;
    }
}

/* Logos dos parceiros */
.suvinil-logo {
    height: 45px;
}

.atlas-logo {
    height: 35px;
}

/* Mosaico de Notícias */
.news-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex: 1;
}

/* Loading das notícias */
.news-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: #64748b;
}

.news-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

/* Card de notícia principal (maior) */
.news-card-main {
    grid-row: 1 / 3;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.news-card-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgb(0 0 0 / 0.15);
}

/* Cards de notícias secundárias (menores) */
.news-card-secondary {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 250px;
}

.news-card-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px -3px rgb(0 0 0 / 0.1);
}

/* Imagem da notícia */
.news-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.news-card-main .news-image {
    height: 350px;
}

.news-card-secondary .news-image {
    height: 140px;
}

/* Conteúdo da notícia */
.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-secondary .news-content {
    padding: 1rem;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-main .news-title {
    font-size: 1.5rem;
    -webkit-line-clamp: 3;
}

.news-card-secondary .news-title {
    font-size: 1rem;
    -webkit-line-clamp: 2;
}

.news-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.news-card-main .news-excerpt {
    -webkit-line-clamp: 4;
}

.news-card-secondary .news-excerpt {
    font-size: 0.875rem;
    -webkit-line-clamp: 2;
}

.news-read-more {
    color: #2563eb;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s ease;
    font-family: 'Inter', sans-serif;
    align-self: flex-start;
}

.news-read-more:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Footer das notícias */
.news-footer {
    text-align: center;
    margin-top: auto;
    padding-top: 1rem;
}

.btn-outline-primary {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-outline-primary:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Página de detalhes da notícia */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.news-detail-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.news-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.news-detail-content {
    padding: 3rem;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: #64748b;
    font-size: 0.875rem;
    font-family: 'Inter', sans-serif;
}

.news-detail-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 500;
}

.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.news-detail-text {
    color: #374151;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.news-detail-text p {
    margin-bottom: 1.5rem;
}

.news-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #2563eb;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
}

/* Página de todas as notícias */
.all-news-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: end;
}

.all-news-filters .filter-group {
    flex: 1;
}

.all-news-filters label {
    display: block;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.all-news-filters input,
.all-news-filters select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
}

.all-news-filters input:focus,
.all-news-filters select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Grid de todas as notícias */
.all-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.all-news-card {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.all-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgb(0 0 0 / 0.1);
}

.all-news-card .news-image {
    height: 200px;
}

.all-news-card .news-content {
    padding: 1.5rem;
}

.all-news-card .news-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 2;
}

.all-news-card .news-excerpt {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
}

/* Paginação */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.pagination-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.pagination-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botão de voltar */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #64748b;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    margin-bottom: 2rem;
}

.btn-back:hover {
    background: #475569;
    transform: translateY(-1px);
}
    
    .login-form .btn-full {
        flex: 0 0 auto;
        width: auto;
        padding: 0.625rem 1rem;
        margin-top: 1.375rem;
        font-size: 0.875rem;
        border-radius: 0.375rem;
        background: #f59e0b;
        color: #ffffff;
        font-weight: 600;
    }
    
    .login-form .btn-full:hover {
        background: #d97706;
    }
    
    .login-footer {
        margin-top: 1rem;
        padding-top: 1rem;
        text-align: center;
        border-top: 1px solid #e2e8f0;
    }
    
    .login-footer p {
        font-size: 0.875rem;
        margin: 0;
    }
    
    .news-section {
        padding: 1.5rem;
        min-height: 40vh;
    }
    
    .news-mosaic {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }
    
    .news-card-main {
        grid-row: auto;
    }
}

/* Ajustes adicionais para mobile até 768px */
@media (max-width: 768px) {
    .news-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .news-title-section {
        text-align: center;
    }
    
    .news-partners {
        justify-content: center;
        gap: 1rem;
    }
    
    .partner-logo {
        height: 35px;
    }
    
    .suvinil-logo {
        height: 40px;
    }
    
    .atlas-logo {
        height: 30px;
    }
    
    .news-header h2 {
        font-size: 1.5rem;
    }
    
    .news-footer .btn-outline-primary {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
    
    .all-news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .all-news-filters {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .all-news-container {
        padding: 1rem;
    }
    
    .all-news-header {
        padding: 1rem 0;
        text-align: center;
    }
    
    .all-news-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .all-news-header p {
        font-size: 0.9rem;
    }
    
    /* Página de detalhes */
    .news-detail-container {
        padding: 1rem;
        max-width: 100%;
    }
    
    .news-detail-content {
        padding: 1.5rem 1rem;
    }
    
    .news-detail-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .news-detail-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .news-detail-image {
        height: 250px;
    }
    
    /* Botões de navegação */
    .btn-outline-primary {
        width: 100%;
        justify-content: center;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .login-section .login-card {
        padding: 0.75rem;
        margin: 0;
    }
    
    .login-form {
        padding: 0.75rem;
        gap: 0.375rem;
    }
    
    .login-form .form-group label {
        font-size: 0.75rem;
    }
    
    .login-form .input-group input {
        padding: 0.5rem 2rem 0.5rem 1.75rem;
        font-size: 1rem; /* Evitar zoom no iOS */
    }
    
    /* Input de senha com espaço para o botão */
    .login-form .input-group input[type="password"] {
        padding-right: 2.5rem;
    }
    
    .login-form .input-group i {
        left: 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Botão de ver senha em telas pequenas - simples */
    .input-group .toggle-password {
        right: 0.5rem;
        font-size: 1rem;
        padding: 0.25rem;
        min-width: 32px;
        min-height: 32px;
    }
    
    .input-group .toggle-password:hover {
        color: #374151;
    }
    
    .login-form .btn-full {
        padding: 0.5rem 0.75rem;
        margin-top: 1.125rem;
        font-size: 0.8rem;
    }
    
    .login-section h1 {
        font-size: 1rem;
    }
    
    .news-section {
        padding: 0.75rem;
    }
    
    .news-header {
        margin-bottom: 1rem;
    }
    
    .news-header h2 {
        font-size: 1.25rem;
    }
    
    .news-mosaic {
        gap: 0.75rem;
    }
    
    .news-content {
        padding: 1rem;
    }
    
    .news-detail-content {
        padding: 1rem;
    }
    
    .news-detail-title {
        font-size: 1.125rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .news-detail-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .news-detail-image {
        height: 180px;
    }
    
    /* Melhorias para todas as notícias */
    .all-news-container {
        padding: 0.5rem;
    }
    
    .all-news-header h1 {
        font-size: 1.125rem;
    }
    
    .all-news-filters {
        padding: 0.75rem;
        margin: 0 0.5rem 1rem 0.5rem;
    }
    
    .all-news-filters input,
    .all-news-filters select {
        font-size: 1rem; /* Evitar zoom no iOS */
        padding: 0.75rem;
    }
    
    .all-news-grid {
        padding: 0 0.5rem;
        gap: 0.75rem;
    }
    
    .all-news-card .news-title {
        font-size: 0.95rem;
    }
    
    .all-news-card .news-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    /* Botões de navegação */
    .btn-outline-primary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        margin: 1rem 0;
    }
    
    .news-footer .btn-outline-primary {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Logos em telas muito pequenas */
    .news-partners {
        gap: 0.75rem;
    }
    
    .partner-logo {
        height: 30px;
    }
    
    .suvinil-logo {
        height: 35px;
    }
    
    .atlas-logo {
        height: 25px;
    }
    
    /* Melhorias específicas para páginas de notícias em 480px */
    .all-news-container {
        padding: 0.5rem;
    }
    
    .all-news-header {
        padding: 1rem 0.5rem;
        text-align: center;
    }
    
    .all-news-header h1 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .all-news-header p {
        font-size: 0.85rem;
    }
    
    .all-news-filters {
        padding: 0.75rem;
        margin: 0 0.5rem 1rem 0.5rem;
        border-radius: 0.75rem;
    }
    
    .all-news-filters input,
    .all-news-filters select {
        font-size: 1rem; /* Evitar zoom no iOS */
        padding: 0.75rem;
        border-radius: 0.5rem;
    }
    
    .all-news-grid {
        padding: 0 0.5rem;
        gap: 0.75rem;
    }
    
    .all-news-card {
        border-radius: 0.75rem;
        padding: 1rem;
    }
    
    .all-news-card .news-image {
        height: 150px;
        border-radius: 0.5rem;
    }
    
    .all-news-card .news-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }
    
    .all-news-card .news-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        margin-bottom: 0.75rem;
    }
    
    .all-news-card .news-date {
        font-size: 0.75rem;
    }
    
    /* Detalhes melhorados */
    .news-detail-card {
        border-radius: 0.75rem;
        margin: 0.5rem;
    }
    
    .news-detail-image {
        height: 180px;
    }
    
    .news-detail-meta {
        margin-bottom: 1rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .news-detail-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .news-detail-link {
        width: 90%;
        text-align: center;
        margin: 1rem 0;
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
    }
}

/* Regras globais para inputs de senha */
.input-group input[type="password"] {
    padding-right: 3rem !important;
}

/* Regras globais para botão toggle-password */
.input-group .toggle-password {
    position: absolute;
    right: 0rem;
    top: 38%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    z-index: 5;
    transition: color 0.2s ease;
}

.input-group .toggle-password:hover {
    color: #374151;
}

/* Remover CSS que força visibilidade do ícone */

/* Estado vazio */
.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.news-empty-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    opacity: 0.3;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.news-empty h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #94a3b8;
    font-family: 'Inter', sans-serif;
}

.news-empty p {
    font-family: 'Inter', sans-serif;
    color: #64748b;
}

/* Badge de status para admin */
.news-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.news-status-badge.active {
    background: #dcfce7;
    color: #166534;
}

.news-status-badge.inactive {
    background: #fef2f2;
    color: #991b1b;
}

/* Link externo indicator - só aparece quando há link */
.news-external-link {
    top: 1rem;
    left: 1rem;
    background: rgba(37, 99, 235, 0.9);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
}



/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card-main,
.news-card-secondary,
.all-news-card {
    animation: fadeInUp 0.4s ease-out;
}

.news-card-secondary:nth-child(2) {
    animation-delay: 0.1s;
}

.news-card-secondary:nth-child(3) {
    animation-delay: 0.2s;
}

.news-card-secondary:nth-child(4) {
    animation-delay: 0.3s;
}

.news-card-secondary:nth-child(5) {
    animation-delay: 0.4s;
}

/* Efeitos de loading skeleton */
.news-skeleton {
    background: #f1f5f9;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
}

.news-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Estilos para telas muito pequenas */
@media (max-width: 360px) {
    .login-news-container {
        overflow-x: hidden;
    }
    
    .news-header h2 {
        font-size: 1.1rem;
    }
    
    .news-title {
        font-size: 0.95rem;
    }
    
    .news-card-main .news-title {
        font-size: 1.1rem;
    }
} 

/* Modal de Notícias - Correções específicas */
.news-modal .modal-content {
    max-width: 800px;
    width: 90%;
}

.news-modal .modal-body {
    max-height: 70vh;
}

/* Campos do formulário ocupando toda a largura */
.news-modal .form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.news-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.news-modal .form-group input[type="text"],
.news-modal .form-group input[type="url"],
.news-modal .form-group input[type="datetime-local"],
.news-modal .form-group textarea,
.news-modal .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background-color: var(--white);
    font-family: inherit;
    box-sizing: border-box;
}

.news-modal .form-group input[type="text"]:focus,
.news-modal .form-group input[type="url"]:focus,
.news-modal .form-group input[type="datetime-local"]:focus,
.news-modal .form-group textarea:focus,
.news-modal .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Textarea com altura adequada */
.news-modal .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Botão de upload customizado */
.news-modal .file-upload-container {
    position: relative;
    width: 100%;
}

.news-modal .file-upload-container input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.news-modal .file-upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    justify-content: center;
}

.news-modal .file-upload-button:hover {
    background: var(--primary-dark);
}

.news-modal .file-upload-button i {
    font-size: 1rem;
}

.news-modal .file-name {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* Checkbox customizado */
.news-modal .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.news-modal .checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.news-modal .checkbox-group label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

/* Z-index alto para mensagens de erro */
.toast-container {
    z-index: 100000 !important;
}

.toast {
    z-index: 100001 !important;
}

/* Responsivo para modal de notícias */
@media (max-width: 768px) {
    .news-modal .modal-content {
        width: 95%;
        max-width: none;
    }
    
    .news-modal .modal-body {
        max-height: 80vh;
        padding: 1rem;
    }
    
    .news-modal .form-group {
        margin-bottom: 1rem;
    }
    
    .news-modal .form-group textarea {
        min-height: 100px;
    }
} 

/* Remover estilos conflitantes da tabela de admin */
.admin-news-container,
.admin-news-header,
.admin-news-filters,
.admin-news-table {
    /* Reset para usar o padrão do projeto */
    all: unset;
}

/* Garantir que a página de notícias use o layout padrão */
#news-page {
    padding: var(--spacing-lg);
}

#news-page .page-header {
    margin-bottom: var(--spacing-lg);
}

#news-page .page-header h1 {
    color: var(--text-color);
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

#news-page .page-header p {
    color: var(--text-muted);
    margin: 0;
}

/* Filtros seguindo o padrão */
#news-page .filters {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: var(--spacing-lg);
}

#news-page .filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    align-items: end;
}

#news-page .filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

#news-page .filter-group label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: var(--font-size-sm);
}

#news-page .filter-group select,
#news-page .filter-group input {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

#news-page .filter-group select:focus,
#news-page .filter-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
} 