/* Estilos Gerais */
:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --header-height: 60px;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fb;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Botões */
.btn-primary, .btn-secondary, .btn-danger, .btn-action {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #3a5bd9;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-action {
    background-color: white;
    color: var(--dark-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.btn-action:hover {
    background-color: #f8f9fa;
}

.btn-primary i, .btn-secondary i, .btn-danger i, .btn-action i {
    margin-right: 8px;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-section-title {
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

/* Estilos para os dropdowns de país e idioma */
.country-select,
.language-select {
    padding-right: 30px;
    appearance: none;
    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='%23888' 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 10px center;
    background-size: 16px;
}

.country-select option,
.language-select option {
    padding: 8px;
}

/* Estilos para as bandeiras */
.flag-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 0.5em;
    vertical-align: middle;
    border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-inline {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.form-inline .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.form-status, .status-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.status-info {
    background-color: #cce5ff;
    color: #004085;
    border-left: 4px solid #b8daff;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
    animation: fadeInUp 0.5s ease;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.status-loading {
    background-color: #e2f0fd;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.status-loading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #17a2b8;
    border-top: 2px solid transparent;
    border-radius: 50%;
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message {
    color: var(--danger-color);
    font-size: 14px;
    margin-top: 10px;
}

/* Tela de Login */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    z-index: 2;
}

.login-logo {
    margin-bottom: 40px;
    text-align: center;
}

#login-logo-img {
    max-width: 500px;
    height: auto;
    width: 100%;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background-color: rgba(73, 73, 73, 0.9);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 30px;
}

/* Estilos para os elementos do formulário de login */
.login-form {
    margin-top: 20px;
}

.login-label {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.login-input {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
}

.login-button {
    width: 100%;
    padding: 12px 15px;
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.login-button:hover {
    background-color: #3a5bd9;
    transform: translateY(-2px);
}

/* Menu Lateral */
.sidebar {
    width: var(--sidebar-width);
    background-color: white;
    height: 100%;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    transition: width 0.3s ease;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 20px;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 18px;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-menu ul li {
    margin-bottom: 5px;
}

.sidebar-menu ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    transition: all 0.3s;
    font-weight: 500;
}

.sidebar-menu ul li a i {
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-menu ul li.active a {
    background-color: rgba(74, 108, 247, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar-menu ul li:hover a {
    background-color: rgba(74, 108, 247, 0.05);
    color: var(--primary-color);
}

.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .sidebar-menu ul li a span {
    display: none;
}

.sidebar.collapsed .sidebar-menu ul li a {
    justify-content: center;
    padding: 15px 0;
}

.sidebar.collapsed .sidebar-menu ul li a i {
    margin-right: 0;
    font-size: 20px;
}

/* Área de Conteúdo Principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 5;
}

.main-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    font-weight: 500;
    margin-left: 10px;
}

.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    position: relative;
}

/* Páginas de Conteúdo */
.content-page {
    display: none;
}

.content-page.active {
    display: block;
}

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

.stat-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(74, 108, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.stat-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.stat-info h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    color: #666;
}

.stat-info p {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.quick-actions {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

/* Página de Sites */
.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

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

.site-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.site-card h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

.site-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.site-card-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

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

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

.close-modal:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 20px;
}

/* Página de Operações do Site */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.site-header h2 {
    margin: 0;
}

.site-header h2 span {
    color: var(--primary-color);
    font-weight: 600;
}

.site-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.operations-group {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.operations-group h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Estilos para o elemento de exibição da descrição do tema */
.theme-description-display {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.description-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Listas de Categorias e Tópicos */
.categories-list, .topics-list {
    margin: 15px 0;
    padding: 0;
}

.categories-list li, .topics-list li {
    background-color: #f8f9fa;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories-list li button, .topics-list li button {
    padding: 5px 10px;
    font-size: 12px;
}

/* Estilos para seleção de tópicos */
.topic-selection-controls {
    background-color: #f0f4f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

.category-topics-container {
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.category-topics-header {
    background-color: #4a6cf7;
    color: white;
    padding: 10px 15px;
    margin: 0;
    font-size: 16px;
}

.topic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.topic-original {
    font-weight: 500;
}

.topic-translation {
    color: #666;
    font-size: 0.9em;
    margin-left: 8px;
    font-style: italic;
}

/* Tooltip styles for translations */
.topic-original {
    position: relative;
    cursor: help;
}

.topic-original:hover::after {
    content: attr(data-translation);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    margin-top: 5px;
}

.topic-checkbox-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.topic-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.topic-actions {
    display: flex;
    gap: 5px;
}

/* Log Container */
.log-container {
    background-color: #222;
    padding: 15px;
    border-radius: 4px;
    min-height: 150px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    margin: 15px 0;
}

/* Estilos para logs com barra de progresso */
.log-entry {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 4px;
    background-color: #2a2a2a;
}

.log-entry .timestamp {
    color: #aaa;
    font-size: 12px;
    margin-right: 10px;
}

.log-entry .message {
    color: #fff;
}

.log-entry.success {
    border-left: 3px solid var(--success-color);
}

.log-entry.error {
    border-left: 3px solid var(--danger-color);
}

.log-entry.info {
    border-left: 3px solid var(--info-color);
}

.log-entry.warning {
    border-left: 3px solid var(--warning-color);
}

.log-entry.worker {
    border-left: 3px solid var(--primary-color);
}

.log-entry.batch {
    background-color: #333;
    border-left: 3px solid #ff9800;
}

.log-entry.status {
    background-color: #1a1a1a;
    font-family: monospace;
    white-space: pre;
}

/* Barra de progresso */
.progress-container {
    margin-top: 8px;
    background-color: #444;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-bar.complete {
    background-color: var(--success-color);
}

.progress-bar.error {
    background-color: var(--danger-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ccc;
    margin-top: 4px;
}

.post-status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-pending {
    background-color: #ffc107;
}

.status-processing {
    background-color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

.status-complete {
    background-color: var(--success-color);
}

.status-error {
    background-color: var(--danger-color);
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.log-header {
    display: flex;
    align-items: center;
}

.view-link {
    color: var(--info-color);
    text-decoration: underline;
    margin-left: 5px;
}

.view-link:hover {
    color: var(--primary-color);
}

/* Tabelas de Dados */
.table-responsive {
    overflow-x: auto;
    margin: 15px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

/* Estilos para a aba de Análise */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Estilos para a aba de Páginas */
.pages-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.page-preview-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid var(--primary-color);
}

.page-preview-item h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.page-preview-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.created-pages-list {
    margin-top: 15px;
}

.created-pages-list h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
}

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

.pages-list li {
    margin-bottom: 10px;
}

.page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.page-title {
    font-weight: 500;
}

/* Estilos para a aba de Menus */
.menus-list {
    margin-top: 15px;
}

.menu-api-instructions {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    color: #856404;
}

/* Estilos para a aba Home */
.sections-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.section-preview {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
}

.section-preview h4 {
    margin-top: 0;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.preview-content {
    margin-top: 15px;
}

.editable-preview {
    min-height: 40px;
    padding: 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background-color: white;
    margin-top: 5px;
    cursor: text;
}

.editable-preview:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.1);
}

/* Estilos específicos para a seção de Tema e Plugins */
.theme-installation {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.theme-details {
    margin-bottom: 20px;
}

.theme-preview h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

.theme-preview p {
    color: #6c757d;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.theme-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature-tag {
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.theme-info {
    background: #e7f3ff;
    color: #004085;
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.4;
}

.theme-info i {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.theme-info strong {
    font-weight: 600;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Animação para o botão de download */
.btn-primary:active {
    transform: translateY(1px);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .theme-installation {
        padding: 15px;
    }
    
    .theme-info {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .theme-features {
        gap: 6px;
    }
    
    .feature-tag {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para o sistema de rotação de categorias */
.rotation-status-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid var(--primary-color);
}

.rotation-active {
    color: var(--success-color);
}

.rotation-active h4 {
    color: var(--success-color);
    margin-bottom: 10px;
}

.rotation-inactive {
    color: var(--secondary-color);
}

.rotation-inactive h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.rotation-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.rotation-controls button {
    flex: 1;
    min-width: 200px;
}

.categories-checklist {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
}

.checkbox-item {
    margin-bottom: 8px;
}

.checkbox-item:last-child {
    margin-bottom: 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.checkbox-container:hover {
    background-color: #f8f9fa;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.checkbox-label {
    font-size: 14px;
    color: #333;
    user-select: none;
}

.form-inline {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.form-inline .form-group {
    flex: 1;
}

.batch-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Estilos para modal de posts agendados */
.topic-cell {
    font-size: 14px;
}

.category-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.date-cell {
    font-size: 13px;
}

.scheduled-date {
    font-weight: 500;
    margin-bottom: 2px;
}

.time-until {
    color: #666;
    font-style: italic;
}

.time-until.overdue {
    color: var(--danger-color);
    font-weight: 500;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #856404;
}

.status-badge.processing {
    background-color: rgba(74, 108, 247, 0.2);
    color: var(--primary-color);
}

.status-badge.completed {
    background-color: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.status-badge.failed {
    background-color: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.btn-small {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.btn-small:hover {
    transform: translateY(-1px);
}

.btn-small.edit-scheduled {
    background-color: var(--info-color);
    color: white;
}

.btn-small.edit-scheduled:hover {
    background-color: #138496;
}

.data-table tr.overdue {
    background-color: rgba(220, 53, 69, 0.05);
}

.scheduled-posts-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    color: #ccc;
    margin-bottom: 15px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 20px;
    color: var(--danger-color);
}

.error-message i {
    margin-right: 8px;
}

/* Responsividade para rotação */
@media (max-width: 768px) {
    .rotation-controls {
        flex-direction: column;
    }
    
    .rotation-controls button {
        min-width: auto;
        width: 100%;
    }
    
    .form-inline {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-inline .form-group {
        width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-small {
        width: 100%;
        justify-content: center;
    }
}

/* Estilos para modais de agendamento */
.large-modal {
    max-width: 900px;
    width: 95%;
}

.schedule-info {
    background-color: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.schedule-info p {
    margin: 5px 0;
    font-size: 14px;
}

.rotation-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.rotation-preview h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.rotation-preview-content {
    font-size: 14px;
}

.rotation-preview-content p {
    margin: 8px 0;
}

.scheduled-posts-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.scheduled-posts-list {
    max-height: 500px;
    overflow-y: auto;
}

.scheduled-post-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s ease;
}

.scheduled-post-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scheduled-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.scheduled-post-title {
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    margin-right: 15px;
}

.scheduled-post-actions {
    display: flex;
    gap: 5px;
}

.scheduled-post-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.meta-value {
    color: #666;
}

.scheduled-date-time {
    font-weight: 500;
    color: var(--primary-color);
}

.time-remaining {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.time-remaining.overdue {
    color: var(--danger-color);
    font-weight: 500;
}

.btn-delete-scheduled {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-delete-scheduled:hover {
    background-color: #c82333;
}

.no-scheduled-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-scheduled-posts i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.no-scheduled-posts h3 {
    margin-bottom: 10px;
    color: #666;
}

.no-scheduled-posts p {
    color: #999;
    font-size: 14px;
}

/* Estilos para status da rotação */
.rotation-status-active {
    color: var(--success-color);
}

.rotation-status-inactive {
    color: var(--secondary-color);
}

.rotation-next-post {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    font-size: 14px;
}

.rotation-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.rotation-category-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

/* Animações para feedback visual */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scheduled-post-item {
    animation: fadeIn 0.3s ease;
}

/* Responsividade para modais de agendamento */
@media (max-width: 768px) {
    .large-modal {
        width: 98%;
        margin: 20px auto;
    }
    
    .scheduled-post-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .scheduled-post-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .scheduled-post-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .schedule-info {
        padding: 12px;
    }
    
    .rotation-preview {
        padding: 12px;
    }
}
