/* Custom styles for Sendy News */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
.sidebar {
    background-color: #f8f9fa;
    color: #495057;
    min-height: 100vh;
    padding: 20px 0;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    border-left: 1px solid #dee2e6;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #495057;
    margin-bottom: 20px;
}

.sidebar-header h4 {
    color: #495057;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.sidebar-section {
    padding: 0 20px 20px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h6 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding: 20px;
    background-color: white;
    min-height: 100vh;
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: rgba(255,255,255,0.95);
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.progress-message {
    text-align: center;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
}

.card-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Tabs */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 12px 20px;
    margin-right: 5px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: white;
    border-bottom: 3px solid #0d6efd;
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-text {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Teses Groups */
.teses-group {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    position: relative;
}

.teses-group .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.teses-group .remove-btn:hover {
    background-color: #dc3545;
    color: white;
}

/* Sugestões de Temas */
.sugestao-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sugestao-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.sugestao-card.selected {
    border-color: #0d6efd;
    background-color: #f8f9ff;
}

.sugestao-card h6 {
    color: #495057;
    margin-bottom: 10px;
    font-weight: 600;
}

.sugestao-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #6c757d;
}

.stat-item i {
    color: #0d6efd;
}

.sugestao-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.85rem;
}

.sugestao-link:hover {
    text-decoration: underline;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Modal */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    color: #495057;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none !important;
    }
    
    .main-content {
        padding: 15px;
        width: 100%;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .offcanvas {
        width: 300px;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    /* Removido color: transparent para permitir texto visível */
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Textarea auto-resize */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* STF and STJ specific colors */
.stf-title {
    color: #3498db !important;
    font-weight: 600;
}

.stj-title {
    color: #e74c3c !important;
    font-weight: 600;
}

.btn-stf {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.btn-stf:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: white;
}

.btn-stj {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.btn-stj:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    color: white;
}

.stf-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.stj-input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
}

/* STF and STJ teses groups */
.teses-group.stf-group {
    border-left: 4px solid #3498db;
}

.teses-group.stj-group {
    border-left: 4px solid #e74c3c;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Botão Gerar Título - Laranja vibrante */
.btn-outline-warning {
    color: #ff8c00;
    border-color: #ff8c00;
}

.btn-outline-warning:hover {
    background-color: #ff8c00;
    border-color: #ff8c00;
    color: white;
}

.btn-outline-warning:active,
.btn-outline-warning:focus {
    background-color: #e67e00;
    border-color: #e67e00;
    color: white;
} 