/* Dashboard Custom Styles */

/* Status badges - Coral Breeze */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid transparent;
}

.status-success {
    background-color: rgba(81, 207, 102, 0.15);
    color: #2d7a3d;
    border-color: rgba(81, 207, 102, 0.3);
}

.status-danger {
    background-color: rgba(255, 107, 107, 0.15);
    color: #c92a2a;
    border-color: rgba(255, 107, 107, 0.3);
}

.status-warning {
    background-color: rgba(255, 217, 61, 0.15);
    color: #b8860b;
    border-color: rgba(255, 217, 61, 0.3);
}

.status-info {
    background-color: rgba(46, 89, 132, 0.15);
    color: #1E3A5F;
    border-color: rgba(46, 89, 132, 0.3);
}

.status-secondary {
    background-color: #E9ECEF;
    color: #1E3A5F;
    border-color: #DEE2E6;
}

/* Loading animations */
.loading-spinner {
    display: none;
}

/* Gradient backgrounds - Coral Breeze */
.gradient-primary {
    background: linear-gradient(135deg, #1E3A5F 0%, #2E5984 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #51CF66 0%, #40B85A 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #FFD93D 0%, #FFC107 100%);
}

.gradient-info {
    background: linear-gradient(135deg, #2E5984 0%, #1E3A5F 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%);
}

/* Card animations */
.card {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
}

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

/* Sidebar styles */
.sidebar {
    background: linear-gradient(135deg, #1E3A5F 0%, #2E5984 100%);
    min-height: 100vh;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.2);
}

/* Form styles */
.form-control:focus {
    border-color: #1E3A5F;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-check-input:checked {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
}

/* Progress bars */
.progress {
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

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

::-webkit-scrollbar-track {
    background: #F8F9FA;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1E3A5F 0%, #2E5984 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2E5984 0%, #FF6B6B 100%);
}



/* ✅ ESTILOS MOVIDOS A agent_form.css PARA EVITAR CONFLICTOS */
/* Los estilos de .agent-form-container ahora están completamente en agent_form.css */
/* Esto evita conflictos de márgenes que descolocan las pestañas */

.alert {
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-warning {
    background-color: rgba(255, 243, 205, 0.5);
    backdrop-filter: blur(10px);
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background-color: rgba(255, 220, 220, 0.5);
    backdrop-filter: blur(10px);
    border-left: 4px solid #dc3545;
}

.linkedin-connect-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-connect-linkedin {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 200px;
}

.btn-connect-linkedin.personal {
    background-color: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.btn-connect-linkedin.company {
    background-color: #0073b1;
    border-color: #0073b1;
    color: white;
}

.btn-connect-linkedin:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-connect-linkedin i {
    margin-right: 0.5rem;
}















/* Responsive improvements */
@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.show {
        margin-left: 0;
    }
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* Loading states */
.btn.loading .loading-spinner {
    display: inline-block;
}

.btn.loading .btn-text {
    display: none;
}

/* Network badges */
.network-badge-facebook {
    background-color: #1877f2;
    color: white;
}

.network-badge-linkedin {
    background-color: #0077b5;
    color: white;
}

.network-badge-instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

/* 🎯 ESTILOS PARA CAMPOS CRÍTICOS DEL FORMULARIO DE AGENTES */

/* Campos obligatorios críticos - Coral Breeze */
.required-field {
    border-left: 4px solid #FF6B6B !important;
    background-color: rgba(255, 107, 107, 0.05) !important;
}

.required-field:focus {
    border-color: #FF6B6B !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
}

/* Campos recomendados */
.recommended-field {
    border-left: 4px solid #51CF66 !important;
    background-color: rgba(81, 207, 102, 0.05) !important;
}

.recommended-field:focus {
    border-color: #51CF66 !important;
    box-shadow: 0 0 0 3px rgba(81, 207, 102, 0.1) !important;
}

/* Información contextual */
.field-explanation {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.field-explanation h6 {
    color: var(--color-text-primary, #1E3A5F);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.field-explanation p {
    margin-bottom: 0;
    color: #555;
    font-size: 0.9rem;
}

/* 🎯 ESTILOS PARA CAMPOS CRÍTICOS DEL FORMULARIO DE AGENTES */

/* Campos obligatorios críticos */
.required-field {
    border-left: 4px solid #dc3545 !important;
    background-color: #fff8f9 !important;
    position: relative;
}

.required-field:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Campos recomendados */
.recommended-field {
    border-left: 4px solid #28a745 !important;
    background-color: #f8fff9 !important;
}

.recommended-field:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Etiquetas explicativas */
.field-importance-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    margin-left: 0.5rem;
}

.critical-badge {
    background-color: #FF6B6B;
    color: white;
}

.recommended-badge {
    background-color: #51CF66;
    color: white;
}

/* Tooltips mejorados */
.tooltip-inner {
    max-width: 300px;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Sección de campos críticos - Coral Breeze */
.critical-fields-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.05) 100%);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.critical-fields-section::before {
    content: "⚡ CAMPOS CRÍTICOS";
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: #FF6B6B;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Sección de campos recomendados */
.recommended-fields-section {
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.1) 0%, rgba(81, 207, 102, 0.05) 100%);
    border: 2px solid rgba(81, 207, 102, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.recommended-fields-section::before {
    content: "🎯 CAMPOS RECOMENDADOS";
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: #51CF66;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Información contextual */
.field-explanation {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
}

.field-explanation h6 {
    color: var(--color-text-primary, #1E3A5F);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.field-explanation p {
    margin-bottom: 0;
    color: #555;
    font-size: 0.9rem;
}

/* Animaciones para feedback visual */
@keyframes highlightCritical {
    0% { background-color: #fff8f9; }
    50% { background-color: #ffe6e6; }
    100% { background-color: #fff8f9; }
}

.required-field.error {
    animation: highlightCritical 1s ease-in-out;
    border-left-color: #dc3545 !important;
}

/* Estados de validación mejorados */
.is-invalid.required-field {
    border-left-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.is-valid.required-field {
    border-left-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .critical-fields-section,
    .recommended-fields-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .critical-fields-section::before,
    .recommended-fields-section::before {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Dashboard charts */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Table improvements */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Empty states */
.empty-state {
    padding: 3rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* 🎯 ESTILOS PARA CAMPOS CRÍTICOS Y MODAL - Coral Breeze */
.field-critical {
    border: 2px solid #FF6B6B !important;
    background-color: rgba(255, 107, 107, 0.05) !important;
}

.field-critical:focus {
    border-color: #FF6B6B !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1) !important;
}

.label-critical {
    color: #FF6B6B !important;
    font-weight: bold;
}

.critical-field-item {
    background-color: rgba(255, 107, 107, 0.05);
    border-left: 4px solid #FF6B6B;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
}

.modal-critical-fields .modal-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E8E 100%) !important;
    color: white !important;
}

/* Publication Detail Styles */
.publication-detail-container {
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.publication-main-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.publication-topic {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #2c3e50;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    height: 100%;
    transition: all 0.3s ease;
}

.detail-item:hover {
    border-color: #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #2c3e50;
    font-size: 1rem;
}

.network-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.network-badge-facebook {
    background-color: #1877f2 !important;
}

.network-badge-linkedin {
    background-color: #0a66c2 !important;
}

.network-badge-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
}

.publication-image-container {
    text-align: center;
    padding: 1rem;
}

.publication-image {
    max-height: 400px;
    max-width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-error-message {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 0.5rem;
    color: #856404;
}

.image-error-message i {
    margin-right: 0.5rem;
}

.generated-content {
    margin-bottom: 1.5rem;
}

.generated-content .card {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.generated-content .card-header {
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.generated-content .card-body {
    padding: 1rem;
    white-space: pre-wrap;
}

.agent-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.agent-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.agent-avatar i {
    font-size: 2rem;
    color: #6c757d;
}

.agent-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.agent-company {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .publication-detail-container {
        padding: 1rem;
    }
    
    .detail-item {
        margin-bottom: 1rem;
    }
    
    .publication-image {
        max-height: 300px;
    }
    
    .agent-info {
        flex-direction: column;
        text-align: center;
    }
    
    .agent-avatar {
        margin: 0 auto 1rem;
    }
}

/* Animation */
.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

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