footer{
	display: none;
}
.contest-hero {
    padding: 0.75rem 0 2rem;
    position: relative;
    z-index: 1;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #198754 0%, rgb(103 65 7) 14.286%, rgb(51, 46, 30) 14.286%, rgb(51, 46, 30) 28.571%, #106b41 28.571%, rgb(50, 49, 73) 42.857%, rgb(44, 51, 119) 42.857%, rgb(44, 51, 119) 57.143%, #0863e9 57.143%, rgb(36, 54, 162) 71.429%, rgb(26, 57, 192) 71.429%, #a03eea 85.714%, rgb(17, 60, 204) 85.714%, #219500 100%)
}
.article-meta{
    display: none !important;
}
.contest-hero h1{
  position: relative;
  z-index: 2;
  font-size: 2.4rem;
  color: #FFF;
  margin-bottom: 0.5rem !important;
  margin-top: -1.5em;
}
.contest-hero p{
	color: #FFF;
	font-size: 20px;
}

    /* Reset de estilos específicos para a modal */
    #custom-articles-container * {
        box-sizing: border-box;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    


    #custom-articles-container .close-custom-modal {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        font-size: 1.4rem;
        border: none;
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s ease;
    }

    #custom-articles-container .close-custom-modal:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    #custom-articles-container .search-container-all-articles {
        padding: 15px 15px;
        background: #f0f4ff;
        border-bottom: 1px solid #dee2e6;
    }

    #custom-articles-container .search-wrapper {
	display: flex;
    gap: 10px;
    margin-bottom: 15px;
    margin: 0 auto;
    }
    
    #custom-articles-container .search-wrapper input {
        flex: 1;
        padding: 12px 18px;
        border: 1px solid #ddd;
        border-radius: 30px;
        font-size: 15px;
        outline: none;
        transition: border-color 0.3s;
    }

    #custom-articles-container .search-wrapper input:focus {
        border-color: #4361ee;
        box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2);
    }

    /* 1) Botão de Search azul */
    #custom-articles-container .search-wrapper button#search-btn {
      background: #0d6efd;        /* azul bootstrap */
      color: #fff;
    }
    #custom-articles-container .search-wrapper button#search-btn:hover {
      background: #0050c7;        /* tom mais escuro no hover */
    }

    /* 2) Botões de atalho (shortcut) em roxo */
    #custom-articles-container .shortcut-buttons .shortcut-btn {
      background: #A03EEA;        /* roxo */
      color: #fff;
      border: none;
      padding: 8px 16px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: 500;
      transition: background 0.3s;
    }
    #custom-articles-container .shortcut-buttons .shortcut-btn:hover {
      background: #7209b7;        /* roxo mais escuro no hover */
    }

        

    /* ARTICLES GRID STYLES */
    #custom-articles-container .articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
        padding: 10px 0;
    }
    
    #custom-articles-container .article-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    #custom-articles-container .article-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    #custom-articles-container .article-image-container {
      width: 100%;
      aspect-ratio: 1 / 1;    /* força proporção 1:1 */
      position: relative;
      overflow: hidden;
    }

    #custom-articles-container .article-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    #custom-articles-container .article-card:hover .article-image {
        transform: scale(1.05);
    }
    
    #custom-articles-container .level-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: rgba(255, 255, 255, 0.9);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    #custom-articles-container .level-badge.level-1 {
        background: #7209b7;
        color:white;
    }
    
    #custom-articles-container .level-badge.level-2 {
        background: #ffa045;
        color:white;
    }
    
    #custom-articles-container .level-badge.level-3 {
        background: #0ca443;
        color:white;
    }
    

    #custom-articles-container .article-content {
        padding: 16px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    #custom-articles-container .article-title {
        font-weight: 600;
        font-size: 16px;
        color: #333;
        margin-bottom: 8px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0;
    }
    
    #custom-articles-container .article-meta {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: #888;
        margin-top: auto;
    }
    
    #custom-articles-container .article-date {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    
    #custom-articles-container .card-actions {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        flex-direction: column;
    }
    
    #custom-articles-container .card-actions button {
        flex: 1;
        padding: 10px;
        border-radius: 8px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: none;
        font-weight: 500;
    }
    

    /* LIST VIEW STYLES */
    #custom-articles-container .articles-grid.list-view {
        display: block;
    }
    
    #custom-articles-container .articles-grid.list-view .article-card {
        flex-direction: row;
        height: auto;
    }
    
    #custom-articles-container .articles-grid.list-view .article-image-container {
        width: 180px;
        height: auto;
        flex-shrink: 0;
    }
    
    #custom-articles-container .articles-grid.list-view .article-content {
        flex-grow: 1;
        padding: 20px;
    }
    
    #custom-articles-container .articles-grid.list-view .article-title {
        -webkit-line-clamp: 1;
    }
    
    
    #custom-articles-container .articles-grid.list-view .card-actions {
        margin-top: 10px;
    }
    
    /* Footer Styles */
.custom-articles-footer {
    background: #4361ee;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1em;
    z-index: 1;
}
    
    #custom-articles-container .stats-container {
    display: flex;
    gap: 15px;
    font-size: 17px;
    color: #FFF;
    }
    
    #custom-articles-container .view-toggle {
        display: flex;
        gap: 5px;
    }
    
    #custom-articles-container .view-option {
        background: #eef2ff;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #4361ee;
        font-size: 16px;
        transition: all 0.2s;
    }
    
    #custom-articles-container .view-option:hover {
        background: #e0e7ff;
    }
    
    #custom-articles-container .view-option.active {
        background: #4361ee;
        color: white;
    }

    /* Loading and End Message */
    #custom-articles-container .loading-container {
        padding: 25px;
        text-align: center;
        display: none;
    }

    #custom-articles-container .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(67, 97, 238, 0.1);
        border-left-color: #4361ee;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 15px;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    #custom-articles-container .loading-text {
        color: #666;
        font-weight: 500;
    }

    #custom-articles-container .end-message {
        text-align: center;
        padding: 25px;
        color: #666;
        font-style: italic;
        display: none;
    }

    /* Scrollbar styling */
    #custom-articles-container .custom-articles-body::-webkit-scrollbar {
        width: 8px;
    }

    #custom-articles-container .custom-articles-body::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    #custom-articles-container .custom-articles-body::-webkit-scrollbar-thumb {
        background: #b8c2cc;
        border-radius: 4px;
    }

    #custom-articles-container .custom-articles-body::-webkit-scrollbar-thumb:hover {
        background: #a0aec0;
    }

    /* Responsividade */
    @media (max-width: 1200px) {
        #custom-articles-container .articles-grid {
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        }
    }

    @media (max-width: 992px) {
        #custom-articles-container .custom-articles-modal {
            width: 100%;
        }
        
        #custom-articles-container .articles-grid {
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        }
        
        #custom-articles-container .articles-grid.list-view .article-image-container {
            width: 150px;
        }
    }

    @media (max-width: 768px) {

        
        #custom-articles-container .search-container-all-articles {
            padding: 12px 20px;
        }
        
        #custom-articles-container .search-wrapper {
            flex-direction: column;
        }
        
        #custom-articles-container .articles-grid {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }
        
        #custom-articles-container .article-image-container {
            height: auto;
        }
        
        #custom-articles-container .articles-grid.list-view .article-card {
            flex-direction: column;
        }
        
        #custom-articles-container .articles-grid.list-view .article-image-container {
            width: 100%;
            height: auto;
        }
        
        #custom-articles-container .card-actions button {
            padding: 8px;
            font-size: 13px;
        }
    }

    @media (max-width: 576px) {
    	#custom-articles-container{
    		max-width: 100%;
    	}
        #custom-articles-container .articles-grid {
            grid-template-columns: 1fr;
        }
    
        
        .custom-articles-footer {
            flex-direction: column;
            gap: 15px;
            align-items: flex-start;
        }
    }
/* Adicione ao CSS existente */
.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-controls button {
    background: #eef2ff;
    border: none;
    border-radius: 17%;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4361ee;
    transition: all 0.2s;
    width: 30px;
    height: 30px;    
}
.view-toggle{
	display: none !important;
}

.pagination-controls button:hover {
    background: #e0e7ff;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    margin: 0 10px;
    font-size: 17px;
    color: #FFF;
    font-weight: bold;
}
/* Estilo do botão de limpar filtros */
#clear-filters-btn {
    background-color: #f44336 !important; /* Vermelho */
    color: #FFF;
}

/* Hover effect */
#clear-filters-btn:hover {
    background-color: #d32f2f !important;
    color: #FFF;
}

#clear-filters-btn:disabled {
    background-color: #e57373 !important; 
    cursor: not-allowed;
}
/* Estilo para a mensagem de "sem resultados" */
.no-results {
    background-color: #f8d7da; /* Cor de fundo suave */
    color: #721c24; /* Texto em vermelho escuro */
    border: 1px solid #f5c6cb; /* Borda suave em vermelho claro */
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
}

/* Efeito de hover */
.no-results:hover {
    background-color: #f5c6cb; /* Fundo mais claro quando passa o mouse */
    color: #5a1a1a; /* Cor de texto mais forte */
    cursor: pointer;
}

/* Responsividade */
@media (max-width: 768px) {
#custom-articles-container{
    		max-width: 100%;
    	}	
    .no-results {
        font-size: 14px;
        padding: 12px;
    }
}

.added-btn{
    border: 1px solid #EAEAEA !important;
    cursor: not-allowed !important;
    background: #e6fff3 !important;
}
.added-btn:hover{
    color: #000 !important;
}

/* Estilos gerais */
.search-container-all-articles {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 25px;
}

.search-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input-group {

    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    right: 15px;
    color: #6c757d;
    font-size: 18px;
}

#article-search-modal {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
  min-width: 250px;
  max-width: 250px;    
}
.search-wrapper input {
  min-width: 250px;
  max-width: 250px;
}


#article-search-modal:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
}

.btn-primary {
    background-color: #4a6cf7;
    color: white;
}

.btn-primary:hover {
    background-color: #3a5ce5;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f1f3f9;
    color: #495057;
}

.btn-secondary:hover {
    background-color: #e2e6f1;
    transform: translateY(-2px);
}

/* Filtros */
.filters-container {
    border-top: 1px solid #f0f2f5;
    padding-top: 20px;
    position: relative;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #343a40;
    font-size: 14px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    background-color: white;
    font-size: 15px;
    color: #495057;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.select-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6c757d;
    font-size: 14px;
}

/* Estilos específicos para categorias */
.category-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.category-filter-item {
    flex: 1;
    min-width: 200px;
}

.category-filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #343a40;
    font-size: 14px;
}

.category-filter-item select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    background-color: white;
    font-size: 15px;
    color: #495057;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.category-filter-item select:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

/* Responsividade */
@media (max-width: 768px) {
#custom-articles-container{
    		max-width: 100%;
    	}	
    .search-wrapper {
        flex-direction: column;
    }
    
    .filter-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
        justify-content: center;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

.hidden {
    display: none;
}

.category-filter-item {
    transition: all 0.3s ease;
}    
.custom-articles-modal{
	width: 100%;
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 100px) and (max-width: 991px) {
    .panel{
        min-height: auto;
    }
}

#bulk-add-screen{
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    font-size: 13px;
    bottom: -55px;
}

#modal-list-name{
    background: #ffffff;
    font-size: 18px;
    margin-left: 1em;
    padding: 10px 2em;
    border-radius: 23px;
    color: #333;
}
#modal-list-name span{
    color: green;   
}
/* ===== Skeleton & Lazy‑Load Styles ===== */
.skeleton-img {
     aspect-ratio: 1 / 1;   
  width: 100%;
  height: 100%;
  background: linear-gradient(
    -90deg,
    #e0e0e0 0%,
    #f0f0f0 50%,
    #e0e0e0 100%
  );
  background-size: 400% 400%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.article-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.article-image.loaded {
  opacity: 1;
}
.inner-footer{
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}
#custom-articles-container{
    padding: 1em;
    background: #ffffff82;
    width: 95%;
    max-width: 1600px;
    margin: 1em auto;
    border-radius: 13px;
    box-shadow: 1px 1px 12px -2px #CCC;
    top: -14em;
    z-index: 1;
    position: relative;
    backdrop-filter: blur(12px); 
    display: flex;
    align-items: center;
    justify-content: center;    
}
body{
	 background: #f0f4ff;
}
#custom-articles-modal{
	top:-10em;
	position: relative;
}
.shortcut-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-left: 1px solid #CCC;
    padding-left: 11px;
}

.shortcut-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #4361ee;
  background: white;
  color: #4361ee;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.shortcut-btn:hover {
  background: #eef2ff;
}
@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 100, 0, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 12px 6px rgba(255, 100, 0, 0.8);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 100, 0, 0);
    transform: scale(1);
  }
}

.select-highlight {
  animation: highlight-pulse 1s ease-out;
  border-radius: 4px; /* mantém cantos arredondados */
  transition: transform 0.2s;
}
