/* Estilos específicos para a página de URLs */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    margin-right: 5px;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}
.success-message {
    color: #2e7d32;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #c8e6c9;
}
.styled-button.info.disabled {
    background-color: #808080;
    cursor: pointer;
    opacity: 0.8;
}
.styled-button.info.disabled:hover {
    background-color: #696969;
}
.urls-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-row {
    background: #f0f0f0;
}

.header-row th {
    padding: 15px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    color: #333333;
    border-bottom: 2px solid #dddddd;
}

.data-row {
    transition: border-left 0.3s ease;
    background: #ffffff;
    border-left: 3px solid transparent;
}

.data-row:hover {
    background: #ffffff;
    border-left: 3px solid #2196f3;
}

.data-row td {
    padding: 10px 15px;
    vertical-align: middle;
    line-height: 1.5;
}

.data-row .title-cell {
    font-weight: 500;
    color: #333333;
    width: 25%;
    font-size: 15px;
    padding-left: 20px;
}

.data-row .url-cell {
    color: #666666;
    width: 45%;
    font-size: 14px;
    word-break: break-all;
}

.data-row .url-cell a {
    color: #2196f3;
    text-decoration: none;
    transition: color 0.2s;
}

.data-row .url-cell a:hover {
    color: #1976d2;
    text-decoration: underline;
}

.actions-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.date-filters {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dddddd;
}

.date-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
}

.date-select {
    background: #ffffff;
    border: 1px solid #dddddd;
    color: #333333;
    padding: 8px;
    border-radius: 4px;
}

/* Remover definição duplicada de .news-result e ajustar estilos */
.news-result-row {
    background: #ffffff;
    border-bottom: 1px solid #dddddd;
}

.news-result {
    display: block !important; /* Forçar exibição */
    padding: 20px;
    background: #ffffff;
    margin: 0;
    border-radius: 0;
}

.news-result .news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 0;
}

.news-result .news-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin: 0;
    border: 1px solid #dddddd;
    transition: transform 0.2s ease;
}

.news-result .news-item:hover {
    transform: translateY(-2px);
    background: #f8f8f8;
}

.news-result .news-item p {
    margin: 10px 0;
    color: #333333;
}

.news-result .news-item p strong {
    color: #666666;
    margin-right: 10px;
}

.news-result .error-message,
.news-result .warning {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 0;
    color: #333333;
}

.news-item {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #383838;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    color: #333333;
}

.form-group textarea {
    height: 40px; /* altura para 2 linhas */
    min-height: 40px;
    max-height: 40px;
    resize: none;
}

.form-group select {
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
}

.form-group select:hover {
    border-color: #bbbbbb;
}

.form-group select:focus {
    border-color: #2196f3;
    outline: none;
}

/* Estilos para seção de palavras-chave */
.keywords-section {
    margin-top: 40px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dddddd;
    color: #333333;
}

.keyword-form {
    margin-bottom: 30px;
}

.keywords-table {
    margin-top: 20px;
}

.keywords-table td {
    vertical-align: middle;
    padding: 8px 15px;
}

.keywords-table .styled-button {
    margin: 0 5px;
}

.main-nav {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    border: 1px solid #dddddd;
}

.main-nav .styled-button {
    padding: 8px 15px;
}

/* Reset de cores base */
body {
    background-color: #ffffff;
    color: #333333;
}

.container {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
}

/* Botões */
.styled-button {
    background-color: #2196f3;
    color: #ffffff;
    border: none;
    padding: 0 15px;
    height: 32px;
    line-height: 32px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin: 0;
}

.styled-button:hover {
    background-color: #1976d2;
    transform: translateY(-1px);
}

.styled-button.danger {
    background-color: #f44336;
}

.styled-button.danger:hover {
    background-color: #d32f2f;
}

.styled-button.info {
    background-color: #03a9f4;
}

.styled-button.info:hover {
    background-color: #0288d1;
}

/* Estilo para botão pequeno */
.styled-button.small {
    height: 24px;
    line-height: 24px;
    padding: 0 10px;
    font-size: 12px;
}

/* Mensagens */
.error-message {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.warning {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffe0b2;
}

/* Ajuste do container de erro */
#error-container {
    background: rgba(255, 255, 255, 0.95);
    color: #333333;
}

/* Ajustes dos elementos do formulário */
form {
    background: #ffffff;
    border: 1px solid #dddddd;
}

.form-group label {
    color: #333333;
}

/* Ajustes das mensagens */
.success-message {
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

h1, h2 {
    color: #333333;
}

h2 {
    border-bottom: 2px solid #dddddd;
}

/* Novo layout para palavras-chave */
.content-wrapper {
    padding: 20px;
}

.form-section {
    margin-bottom: 30px;
}

.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.form-actions {
    margin-top: 15px;
    padding: 10px;
    text-align: right;
    background: #f8f8f8;
    border-radius: 4px;
}

.button-group {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

/* Células da tabela */
.keyword-cell {
    font-weight: 500;
    color: #333333;
}

/* Ajuste para células com botão */
.keyword-cell .styled-button {
    margin: 0;
    min-width: 70px;
}

.desc-cell {
    color: #666666;
}

.status-cell {
    text-align: center;
    color: #333333;
}

.actions-cell {
    text-align: right;
}

/* Responsividade */
@media (max-width: 768px) {
    .three-columns {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .actions-cell {
        text-align: left;
    }
}
