@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

/* Estilos generales */
:root {
    --primary-color: #23AAC5;
    --primary-dark: #611B46;
    --primary-light: #5bc1d7;
    --secondary-color: #434A54;
    --light-gray: #E6E9ED;
    --dark-gray: #656D78;
    --white: #ffffff;
    --success: #00A878;
    --warning: #FFE066;
    --danger: #E9573F;
    --info: #3BAFDA;
    --sidebar-width: 250px;
    --header-height: 60px;
}

/* === ESTILOS PROFESIONALES PARA MI CUENTA === */

/* Header profesional */
.account-header {
    background: linear-gradient(135deg, rgba(97, 27, 70, 1) 30%, rgba(227, 117, 0, 1) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(35, 170, 197, 0.15);
    position: relative;
    overflow: hidden;
}

.account-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.account-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.account-header-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.account-header-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.account-header-info {
    flex: 1;
}

.account-header-title {
    font-size: 1.8rem;
    color: white;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.account-header-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 8px 0;
}

.account-header-meta {
    margin-top: 15px;
}

.status-active .fa-circle {
    color: #4CAF50;
}

.status-legacy .fa-circle {
    color: #FF9800;
}

/* Notificaciones mejoradas */
.account-notification {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.account-notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.notification-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-color: #c3e6cb;
}

.notification-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-color: #f5c6cb;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background: #28a745;
    color: white;
}

.notification-error .notification-icon {
    background: #dc3545;
    color: white;
}

.notification-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.notification-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Grid de cuenta */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.account-card {
    position: relative;
}

/* Perfil de usuario mejorado */
.user-profile {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.profile-item:hover {
    background: rgba(35, 170, 197, 0.05);
    border-radius: 4px;
    padding: 8px 12px;
}

.profile-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-label i {
    width: 16px;
    color: var(--primary-color);
}

.profile-value {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
    margin-left: 20px;
}

/* Badges de rol mejorados */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.role-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.role-badge:hover::before {
    left: 100%;
}

.role-superadmin {
    background: linear-gradient(135deg, rgba(97, 27, 70, 1) 30%, rgba(227, 117, 0, 1) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(97, 27, 70, 0.35);
}

.role-admin {
    background: linear-gradient(135deg, #3BAFDA 0%, #2E8BC0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 175, 218, 0.4);
}

/* Formulario de contraseña mejorado */
.password-form {
    position: relative;
}

.password-form .form-group {
    position: relative;
}

.password-form .form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.password-form .form-group label i {
    width: 16px;
    color: var(--primary-color);
}

.password-form .form-control {
    position: relative;
    transition: all 0.3s ease;
}

.password-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(35, 170, 197, 0.1);
    transform: translateY(-2px);
}

/* Indicador de fuerza de contraseña */
.password-strength {
    margin-top: 10px;
}

.password-strength-bar {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.password-strength-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.password-strength-text {
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Botón de cambiar contraseña */
.btn-password-change {
    position: relative;
    overflow: hidden;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-password-change::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-password-change:hover::before {
    left: 100%;
}

.btn-password-change:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(35, 170, 197, 0.4);
}

/* Información de autenticación legacy */
.legacy-auth-info {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-radius: 12px;
    border: 1px solid #ffeaa7;
    position: relative;
}

.legacy-auth-icon {
    width: 50px;
    height: 50px;
    background: #ff9800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.legacy-auth-content h3 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 1.2rem;
}

.legacy-auth-content p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive design */
@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .account-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .account-header-title {
        font-size: 2rem;
    }
    
    .profile-item:hover {
        transform: none;
    }
    
    .btn-password-change:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .account-header {
        padding: 20px;
    }
    
    .account-header-title {
        font-size: 1.8rem;
    }
    
    .profile-value {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* === ESTILOS PROFESIONALES PARA CONFIGURACIÓN === */

/* Header de configuración */
.config-header {
    background: linear-gradient(135deg, rgba(97, 27, 70, 1) 30%, rgba(227, 117, 0, 1) 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.config-header-content {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.config-header-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    border: 3px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.config-header-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.config-header-info {
    flex: 1;
}

.config-header-title {
    font-size: 2.5rem;
    color: white;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.config-header-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 8px 0;
}

.config-header-meta {
    margin-top: 15px;
}

.config-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Notificaciones de configuración */
.config-notification {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.config-notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

/* Sistema de tabs */
.config-tabs {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-button {
    flex: 1;
    padding: 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.tab-button::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-button.active {
    background: white;
    color: var(--primary-dark);
    font-weight: 600;
}

.tab-button.active::before {
    background: var(--primary-dark);
}

.tab-content {
    display: none;
    padding: 30px;
    min-height: 400px;
}

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

.tab-description {
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.tab-description h2 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.tab-description p {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* WordPress Cards */
.wordpress-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.wordpress-card {
    position: relative;
}

.wp-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-status-badge.enabled {
    background: #d4edda;
    color: #155724;
}

.wp-status-badge.disabled {
    background: #f8d7da;
    color: #721c24;
}

.wordpress-form {
    position: relative;
}

.wordpress-form .form-group {
    margin-bottom: 20px;
}

.wordpress-form .form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.wordpress-form .form-group label i {
    width: 16px;
    color: #667eea;
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch {
    background: #667eea;
}

.toggle-label input[type="checkbox"]:checked + .toggle-switch::before {
    transform: translateX(25px);
}

.last-sync {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

/* WordPress Help */
.wordpress-help {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.wordpress-help h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.wordpress-help ol {
    margin: 15px 0;
    padding-left: 20px;
}

.wordpress-help li {
    margin-bottom: 8px;
    color: #495057;
    line-height: 1.5;
}

/* Gestión de usuarios */
.users-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.create-user-card {
    margin-bottom: 30px;
}

.user-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.user-form .form-group {
    margin-bottom: 20px;
}

.user-form .form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.user-form .form-group label i {
    width: 16px;
    color: #667eea;
}

.users-list h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.user-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.user-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.user-info h4 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 1.1rem;
}

.user-info p {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.user-card-body {
    padding: 20px;
}

.user-status {
    margin-bottom: 15px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.status-active {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-meta small {
    color: #6c757d;
    font-size: 0.8rem;
}

.user-meta i {
    width: 12px;
    margin-right: 5px;
}

.user-card-actions {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.current-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

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

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    .config-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .config-header-title {
        font-size: 2rem;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .wordpress-cards {
        grid-template-columns: 1fr;
    }
    
    .user-form-row {
        grid-template-columns: 1fr;
    }
    
    .users-grid {
        grid-template-columns: 1fr;
    }
    
    .user-card-actions {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .config-header {
        padding: 20px;
    }
    
    .config-header-title {
        font-size: 1.8rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .tab-description h2 {
        font-size: 1.5rem;
    }
}

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

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--secondary-color);
    background-color: #f8f9fa;
}

/* Layout principal */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    padding: 20px;
    text-align: center;
    background-color: var(--primary-dark);
}

.sidebar .logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.sidebar .logo span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.sidebar-nav {
    padding: 20px 0;
    flex-grow: 1;
}

.nav-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background-color: var(--primary-dark);
}

.sidebar-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    background-color: var(--primary-dark);
}

/* Contenido principal */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 0;
    width: calc(100% - var(--sidebar-width));
}

.content-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--light-gray);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.content-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.content-body {
    padding: 20px 30px;
}

/* Tabla de publicaciones */
.table-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

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

.table-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 10px;
}

.table-filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 12px;
    background-color: var(--light-gray);
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--dark-gray);
    color: var(--white);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

th {
    font-weight: 600;
    background-color: #f8f9fa;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Badges para estados */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-draft {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.badge-scheduled {
    background-color: var(--info);
    color: white;
}

.badge-published {
    background-color: var(--success);
    color: white;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn i {
    margin-right: 8px;
}

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

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

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

.btn-secondary:hover {
    background-color: #383f48;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
}

/* Acciones en tabla */
.row-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: none;
    background-color: var(--light-gray);
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: var(--dark-gray);
    color: var(--white);
}

.action-btn.edit:hover {
    background-color: var(--primary-dark);
}

.action-btn.delete:hover {
    background-color: var(--danger);
}

/* Formularios */
.form-container {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 8px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.form-control:focus {
    border-color: #23AAC5;
    box-shadow: 0 0 0 3px rgba(35, 170, 197, 0.15);
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input {
    margin-right: 8px;
}

/* Utilidades */
.social-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 5px;
    font-size: 0.9rem;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-icon.facebook {
    background-color: #3b5998;
    color: white;
}

.social-icon.twitter {
    background-color: #1da1f2;
    color: white;
}

.social-icon.linkedin {
    background-color: #0077b5;
    color: white;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        width: 60px;
        overflow: hidden;
    }
    
    .sidebar .logo h1, .sidebar .logo span, .sidebar-nav a span, .nav-title, .sidebar-footer {
        display: none;
    }
    
    .sidebar-nav a {
        justify-content: center;
        padding: 15px;
    }
    
    .sidebar-nav a i {
        margin: 0;
    }
    
    .main-content {
        margin-left: 60px;
        width: calc(100% - 60px);
    }
}

/* === STYLES MOVED FROM PHP FILES === */

/* --- General Simple Layout --- */
.app-simple {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.header-simple h1 {
    font-size: 1.4rem;
}
.nav-simple {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.nav-simple a {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}
.nav-simple a.active {
    background: linear-gradient(135deg, rgba(97, 27, 70, 1) 30%, rgba(227, 117, 0, 1) 100%) !important;
    color: white;
}

/* --- List Page Styles (ebone, cubofit, etc.) --- */

/* Thumbnails & Image Modal */
.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ddd;
}

.thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.no-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: #adb5bd;
    border: 1px dashed #dee2e6;
    font-size: 1.2rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    margin: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
}

.close-modal:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Estado Selector */
.estado-selector {
    position: relative;
    display: inline-block;
}

.estado-badge {
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-block;
}

.estado-badge:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.estado-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
    display: none;
    overflow: hidden;
}

.estado-dropdown.show {
    display: block;
    animation: fadeIn 0.2s;
}

.estado-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: left;
}

.estado-dropdown-item:hover {
    background-color: #f8f9fa;
}

.estado-dropdown-item.active {
    background-color: #e9ecef;
    font-weight: 500;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 5px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s infinite linear;
}

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

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

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background-color: #28a745;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* Filters & Sorting */
.filter-sort-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    flex-wrap: wrap;
}

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

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: #555;
}

.filter-group select,
.filter-group .btn {
    height: 38px;
}

.redes-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.redes-filter .checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.sort-header a {
    color: inherit;
    text-decoration: none;
}

.sort-header a:hover {
    color: #23AAC5;
}

.sort-header.active a {
    font-weight: 600; 
    color: #333; 
}

.sort-icon {
    margin-left: 5px;
    font-size: 0.8rem;
    color: #adb5bd;
}

.sort-header.active .sort-icon {
    color: #333; 
    opacity: 1;
}

@media (max-width: 768px) {
    .filter-sort-container {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* --- Dashboard Styles (index.php) --- */

.summary-section {
    background: linear-gradient(135deg, rgba(97, 27, 70, 1) 30%, rgba(227, 117, 0, 1) 100%);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #eaeaea;
}

.summary-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.stat-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: transform 0.2s;
}

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

.stat-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 3px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.dashboard-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.dashboard-card .card-header {
background: var(--primary-dark);
color: white;
padding: 12px 15px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dashboard-card .card-header h2 {
margin: 0;
font-size: 1.1rem;
font-weight: 600;
    font-size: 1.1rem;
    font-weight: 600;
}

.dashboard-card .card-header .icon {
    font-size: 1.1rem;
    width: 30px;
    height: 30px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card .card-body {
    padding: 15px;
    flex-grow: 1;
}

.dashboard-card .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.dashboard-card .stat-item:last-child {
    border-bottom: none;
    font-weight: 600;
    margin-top: 8px;
    padding-top: 10px;
}

.pub-preview {
    margin-top: 12px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    max-height: 100px;
    overflow: hidden;
}

.pub-preview-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.pub-content {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.pub-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #888;
    margin-top: auto;
}

.pub-redes {
    display: flex;
    gap: 5px;
}

.pub-redes i {
    width: 25px;
    height: 25px;
    background-color: #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.no-pub {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.card-footer {
    padding: 12px 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.card-footer .btn {
    padding: 8px 15px;
    background-color: var(--primary-dark);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.card-footer .btn:hover {
    background-color: var(--primary-dark);
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- Form Styles (publicacion_form.php) --- */

.form-section {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    padding: 25px;
    border: 1px solid #eaeaea;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.form-column {
    flex: 1;
    min-width: 250px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

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

/* Definición duplicada eliminada - consolidada arriba */

.redes-container {
    margin-bottom: 0;
}

.redes-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.redes-checkboxes .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.redes-checkboxes .checkbox-item:hover {
    background-color: #e9ecef;
}

.redes-checkboxes .checkbox-item input:checked + label {
    font-weight: 500;
    color: #23AAC5;
}

.preview-container {
    margin-top: 15px;
    max-width: 100%;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.preview-container p {
    margin-top: 0;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    object-fit: contain;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

.buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.form-section .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.form-section .btn-primary {
    background-color: #23AAC5;
    color: white;
}

.form-section .btn-primary:hover {
    background-color: #1d8fa6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 170, 197, 0.2);
}

.form-section .btn-secondary {
    background-color: #e9ecef;
    color: #495057;
}

.form-section .btn-secondary:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-column {
        width: 100%;
    }
}

/* --- Badge Overrides (from inline styles, more specific) --- */
.badge-draft {
    background-color: #e9ecef !important; /* Overrides potential base style */
    color: #495057 !important;
}

.badge-scheduled {
    background-color: #E37500 !important; /* Orange (brand) */
    color: white !important;
}

.badge-published {
    background-color: #28a745 !important; /* Green */
    color: white !important;
}

/* ----- Estilos de Branding por Línea de Negocio ----- */

/* Estilos generales para logos */
.header-title-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 40px; /* Ajustar altura según sea necesario */
    width: auto;
    max-width: 150px; /* Limitar ancho máximo */
    object-fit: contain;
}

.dashboard-card .logo-icon {
    width: 60px; /* Tamaño del contenedor del logo en dashboard */
    height: 35px; /* Ajustar altura */
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Alinear logo a la derecha */
}

.dashboard-card .logo-icon img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* ----- Enhanced Header with Business Line Dropdown and Tabs ----- */
.enhanced-header {
    background-color: var(--white);
    border-bottom: 2px solid var(--light-gray);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-simple .filter-sort-container,
.app-simple .table-container {
    margin: 20px;
}

.header-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.loop-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.loop-logo {
    height: 40px;
    width: auto;
    transition: opacity 0.2s ease;
}

.loop-logo:hover {
    opacity: 0.8;
}

.dashboard-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--light-gray);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dashboard-back-btn:hover {
    background-color: var(--dark-gray);
    color: var(--white);
}

/* Business Line Dropdown */
.business-line-selector {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 200px;
}

.dropdown-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(35, 170, 197, 0.15);
}

.dropdown-logo {
    height: 24px;
    width: auto;
    max-width: 40px;
    object-fit: contain;
}

.dropdown-text {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    font-size: 0.8rem;
    color: var(--dark-gray);
    transition: transform 0.2s ease;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.dropdown-item-logo {
    height: 20px;
    width: auto;
    max-width: 35px;
    object-fit: contain;
}

/* Content Type Tabs Container */
.content-type-tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0;
}

.content-type-tabs {
    display: flex;
    gap: 5px;
}

.tabs-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.tab-item:hover:not(.disabled):not(.active) {
    background-color: #f8f9fa;
    color: var(--primary-dark);
}

.tab-item.active {
    background: linear-gradient(135deg, rgba(97, 27, 70, 1) 30%, rgba(227, 117, 0, 1) 100%);
    color: var(--white);
    border-bottom: 3px solid var(--primary-dark);
}

.tab-item.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.tab-item.disabled:hover {
    background-color: transparent;
    color: #adb5bd;
}

/* Header Actions - Legacy (now using tabs-actions) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Responsive Behavior */
@media (max-width: 768px) {
    .enhanced-header {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .header-navigation {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .loop-logo {
        height: 32px;
    }
    
    .dropdown-toggle {
        min-width: 150px;
        font-size: 0.9rem;
    }
    
    .content-type-tabs-container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .content-type-tabs {
        overflow-x: auto;
        padding-bottom: 5px;
        justify-content: flex-start;
    }
    
    .tab-item {
        white-space: nowrap;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .tabs-actions {
        justify-content: center;
        margin-bottom: 0;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .header-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .loop-logo-link {
        align-self: center;
        margin-bottom: 10px;
    }
    
    .loop-logo {
        height: 28px;
    }
    
    .dropdown-toggle {
        min-width: auto;
        width: 100%;
    }
    
    .content-type-tabs-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .content-type-tabs {
        justify-content: center;
    }
    
    .tabs-actions {
        justify-content: center;
    }
}

/* ----- Fin Enhanced Header Styles ----- */

/* ----- Coming Soon Message for Blog Posts ----- */
.coming-soon-message {
    padding: 60px 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.coming-soon-content h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.coming-soon-content p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-content small {
    color: #adb5bd;
    font-style: italic;
}

/* ----- Fin Coming Soon Styles ----- */

/* ----- Estilos para Modal Compartir ----- */
.btn-secondary {
    background-color: #6c757d;
    color: white;
}

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

.modal-share {
    /* display: none; --- REMOVED, .modal handles initial hiding */
    position: fixed; 
    z-index: 1000; /* Consistent with .modal */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); /* Consistent with .modal */
    align-items: center;     /* Reinforce flex behavior */
    justify-content: center; /* Reinforce flex behavior */
}

.modal-share-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: fadeInModal 0.3s;
}

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

.close-share-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-share-modal:hover,
.close-share-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-share-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #333;
}

.modal-share-content p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.5;
}

.share-link-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-link-container input[type="text"] {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: #f8f9fa;
}

/* ----- Fin Estilos Modal Compartir ----- */

/* ----- Estilos para Miniaturas e Imagen Modal ----- */
.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ddd;
}

.thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.no-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 6px;
    color: #adb5bd;
    border: 1px dashed #dee2e6;
    font-size: 1.2rem;
}

/* Modal de imagen */
.modal-image {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1050; /* Encima del modal de compartir si es necesario */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-image.show, 
.modal-image:target /* Para compatibilidad si usamos enlaces */ {
    display: flex;
    opacity: 1;
}

.modal-image-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    margin: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-image.show .modal-image-content,
.modal-image:target .modal-image-content {
    transform: scale(1);
}

.close-image-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1051;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-image-modal:hover {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
}
/* ----- Fin Estilos Imagen Modal ----- */

/* ----- Estilos Feedback en Share View ----- */
.feedback-row td {
    /* Quitar padding vertical para que no haya tanto espacio extra */
    padding-top: 5px !important;
    padding-bottom: 15px !important;
    /* Podríamos añadir un borde superior sutil si queremos separar visualmente */
    /* border-top: 1px solid #eee; */ 
}

.btn-toggle-feedback {
    font-size: 0.85rem;
    padding: 5px 10px;
}

.feedback-area {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
}

.feedback-list {
    margin-bottom: 20px;
    max-height: 200px; /* Limitar altura si hay muchos comentarios */
    overflow-y: auto; /* Añadir scroll si es necesario */
    padding-right: 10px; /* Espacio para el scrollbar */
}

.feedback-items-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.feedback-items-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 0.9rem;
    line-height: 1.4;
}

.feedback-items-list li:last-child {
    border-bottom: none;
}

.feedback-items-list li strong {
    color: #555; /* Color para la fecha */
    margin-right: 5px;
}

.feedback-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
}

.feedback-form .btn-submit-feedback {
    /* Podríamos heredar el color de la línea si quisiéramos, 
       pero un primario estándar puede ser más claro */
    background-color: var(--primary-color, #23AAC5);
    color: white;
    padding: 6px 12px;
    font-size: 0.9rem;
}

.feedback-form .btn-submit-feedback:hover {
     background-color: var(--primary-dark, #1a8da5);
}

.feedback-message {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}
/* ----- Fin Estilos Feedback ----- */

/* ----- Estilos Feedback Interno (Indicador y Modal) ----- */
.feedback-indicator {
    display: inline-flex; /* Para alinear icono y número */
    align-items: center;
    margin-left: 10px; /* Espacio respecto al badge de estado */
    color: var(--secondary-color, #434A54);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 3px 6px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s;
}

.feedback-indicator:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color, #23AAC5);
}

.feedback-indicator i {
    margin-right: 4px;
}

/* Modal para mostrar feedback (reutiliza estilos de .modal-share) */
.modal-feedback-display {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    align-items: center;
    justify-content: center;
}

.modal-feedback-display.show {
    display: flex;
    opacity: 1; /* Asegurarse que se muestra si .show se usa */
    animation: fadeInModal 0.3s; /* Reutilizar animación */
}

.modal-feedback-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 700px; /* Puede ser un poco más ancho */
    position: relative;
}

.close-feedback-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-feedback-modal:hover,
.close-feedback-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-feedback-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #333;
}

.feedback-display-list {
    max-height: 60vh; /* Buena altura para el contenido */
    overflow-y: auto;
    padding-right: 10px;
}

/* Reutilizamos .feedback-items-list y sus estilos li definidos antes */
/* ----- Fin Estilos Feedback Interno ----- */

/* --- Ajuste Layout Estado + Feedback --- */
.status-feedback-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre el estado y el icono de feedback */
}

/* Toggle Switch Styles */
.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between label and switch */
}

.toggle-switch-label {
    margin-bottom: 0; /* Override potential bootstrap/other framework margins */
    font-size: 0.9em;
    color: #555;
    cursor: pointer;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 50px; /* Smaller width */
  height: 24px; /* Smaller height */
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px; /* Adjust size */
  width: 18px;  /* Adjust size */
  left: 3px;    /* Adjust position */
  bottom: 3px;  /* Adjust position */
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  /* Use the primary color defined earlier, or a specific color */
  /* Using Ebone blue as an example, adjust if needed for theme */
   background: linear-gradient(135deg, rgba(97, 27, 70, 1) 30%, rgba(227, 117, 0, 1) 100%);
}

input:focus + .slider {
  box-shadow: 0 0 0 2px rgba(97, 27, 70, 0.25);
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 24px; /* Match height */
}

.slider.round:before {
  border-radius: 50%;
}

/* Align toggle and button in header */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Add some space below header */
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between toggle and button */
}

.table-title {
    margin: 0; /* Remove default margins if any */
}

/* Ensure table rows with display:none are fully hidden */
.table-container tbody tr[style*="display: none"] {
    visibility: collapse; /* Helps ensure layout consistency */
} 

/* Estilos para el Botón Nueva Línea de Negocio (si se necesita más que el inline) */
.header-simple #btnNuevaLinea {
    position: absolute; top: 20px; right: 20px; 
    z-index: 10;
}

/* Estilos para el Modal */
.modal {
    display: none; /* Oculto por defecto, controlado por JS */
    position: fixed; /* Se queda en su sitio incluso si se hace scroll */
    z-index: 1000; /* Por encima de todo lo demás */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Habilita scroll si el contenido es muy grande */
    background-color: rgba(0,0,0,0.6); /* Fondo negro semi-transparente */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 10% desde arriba y centrado horizontalmente */
    padding: 25px;
    border: 1px solid #ddd;
    width: 80%;
    max-width: 600px; /* Ancho máximo */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body .form-group {
    margin-bottom: 18px;
}

.modal-body label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #444;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Para que padding no afecte el width total */
}

.modal-body input[type="text"]:focus,
.modal-body input[type="email"]:focus,
.modal-body input[type="password"]:focus {
    border-color: #007bff; /* Un color de foco estándar */
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25); /* Sombra de foco similar a Bootstrap */
}

.modal-body small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

.modal-body .btn { /* Para que el botón dentro del modal tome un estilo consistente */
    padding: 10px 18px;
    font-size: 1em;
}

/* Estilos para los mensajes en el modal */
#modalNuevaLineaMessage {
    /* margin-top ya está en el HTML, pero se podría poner aquí */
    padding: 10px; /* Añadir padding por defecto */
    border-radius: 4px;
    font-weight: 500;
    /* display: none;  Inicialmente vacío, no necesita display none */
}

#modalNuevaLineaMessage span[style*="color: green"] { /* Estilo para mensajes de éxito */
    background-color: #e6ffed; /* Un verde claro */
    border: 1px solid #5cb85c; /* Borde verde */
    color: #3c763d !important; /* Color de texto verde oscuro, !important para asegurar */
    display: block; /* Para que ocupe todo el ancho */
    padding: 10px; /* Consistencia con el padding general de mensajes */
}

#modalNuevaLineaMessage span[style*="color: red"] { /* Estilo para mensajes de error */
    background-color: #f8d7da; /* Un rojo claro */
    border: 1px solid #d9534f; /* Borde rojo */
    color: #721c24 !important; /* Color de texto rojo oscuro, !important para asegurar */
    display: block; /* Para que ocupe todo el ancho */
    padding: 10px; /* Consistencia con el padding general de mensajes */
} 

/* Blog Form Styles */
.blog-form .form-control {
    font-family: inherit;
}

.blog-form textarea#contenido {
    min-height: 400px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

.blog-form .form-group label {
    font-weight: 600;
    color: var(--secondary-color);
}

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

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 5px;
}

.alert li:last-child {
    margin-bottom: 0;
}

/* Blog Posts Table Styles */
.blog-post-title {
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.4;
}

.blog-post-excerpt {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.blog-post-excerpt em {
    font-style: italic;
    opacity: 0.7;
}

/* Toggle switch for blog posts: inherits styles from main toggle */

/* Blog Form - Categorías y Tags */
.categorias-container,
.tags-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background-color: #fafafa;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

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

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

.checkbox-item label {
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.checkbox-item label:hover {
    color: var(--primary-color, #007bff);
}

/* Slug field styling */
#slug {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

#slug + small {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* TinyMCE adjustments */
.tox-tinymce {
    border-radius: 6px !important;
}

.form-group .tox-tinymce {
    margin-top: 5px;
}

/* Blog form preview container */
.blog-form .preview-container {
    margin-top: 10px;
}

.blog-form .preview-container img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Enhanced Blog Form Header */
.blog-form-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 30px;
    padding: 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.7);
}

.header-left .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--primary-color, #007bff);
}

.breadcrumb-separator {
    color: #adb5bd;
    font-size: 12px;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
}

.business-line-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid rgba(0,0,0,0.1);
}

.business-line-logo .business-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.business-line-text {
    display: flex;
    flex-direction: column;
}

.business-line-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.business-line-name {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 25px 30px 30px;
}

.page-title-section {
    flex: 1;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    color: var(--primary-color, #007bff);
    font-size: 24px;
}

.post-title-preview {
    font-size: 18px;
    font-weight: 400;
    color: #6c757d;
    font-style: italic;
}

.page-subtitle {
    font-size: 15px;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-header {
    padding: 10px 20px;
    font-weight: 500;
}

.post-status-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-draft {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.status-scheduled {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-publish {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive adjustments for blog form header */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .header-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .post-title-preview {
        font-size: 16px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .business-line-info {
        order: -1;
    }
}

/* WordPress button styling */
.btn-wordpress {
    background: linear-gradient(135deg, #21759b 0%, #1e6ba8 100%);
    color: white !important;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-wordpress:hover {
    background: linear-gradient(135deg, #1e6ba8 0%, #1a5d96 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 117, 155, 0.3);
    color: white !important;
}

.btn-wordpress:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-wordpress i {
    margin-right: 8px;
}

/* WordPress publish status indicators */
.wp-sync-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wp-sync-status.synced {
    background: #d4edda;
    color: #155724;
}

.wp-sync-status.pending {
    background: #fff3cd;
    color: #856404;
}

.wp-sync-status.error {
    background: #f8d7da;
    color: #721c24;
}

/* WordPress taxonomies loading states */
.loading-message {
    text-align: center;
    color: #666;
    padding: 15px;
    margin: 0;
    font-style: italic;
}

.no-items {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 10px;
    margin: 0;
}

.error-message {
    text-align: center;
    color: #e74c3c;
    padding: 10px;
    margin: 0;
    background-color: #fdf2f2;
    border-radius: 4px;
    font-size: 14px;
}

.count {
    color: #666;
    font-size: 12px;
    margin-left: 4px;
}

/* Toast Notifications System */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(450px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: auto;
    border-left: 4px solid rgba(255,255,255,0.3);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(450px);
    opacity: 0;
}

/* Toast Types */
.toast.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-left-color: rgba(255,255,255,0.5);
}

.toast.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    border-left-color: rgba(255,255,255,0.5);
}

.toast.warning {
    background: linear-gradient(135deg, #ffc107 0%, #f39c12 100%);
    color: #212529;
    border-left-color: rgba(0,0,0,0.2);
}

.toast.info {
    background: linear-gradient(135deg, #17a2b8 0%, #3498db 100%);
    border-left-color: rgba(255,255,255,0.5);
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex: 1;
    padding-right: 10px;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.toast-message {
    font-size: 0.85rem;
    opacity: 0.95;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.toast.warning .toast-close:hover {
    background-color: rgba(0,0,0,0.1);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(255,255,255,0.3);
    transition: width linear;
    border-radius: 0 0 8px 8px;
}

.toast.warning .toast-progress {
    background-color: rgba(0,0,0,0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast.hide {
        transform: translateY(-100px);
    }
}

/* =================== ENHANCED HOVER STATES & MICRO-INTERACTIONS =================== */

/* Enhanced Form Elements Hover States */
.form-control:hover {
    border-color: #b0b6bb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Enhanced Checkbox & Radio Button Interactions */
.checkbox-item {
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 6px;
    position: relative;
}

.checkbox-item:hover {
    background-color: rgba(35, 170, 197, 0.08);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.checkbox-item input[type="checkbox"]:hover + label,
.checkbox-item input[type="radio"]:hover + label {
    color: #23AAC5;
    font-weight: 500;
}

.checkbox-item input:checked + label {
    color: #23AAC5;
    font-weight: 600;
}

/* Enhanced Link Hover States */
a:not(.btn):not(.action-btn):not(.nav-simple a):hover {
    color: #23AAC5;
    text-decoration: underline;
    text-decoration-color: rgba(35, 170, 197, 0.4);
    transition: all 0.2s ease;
}

/* Enhanced Table Interactions */
tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(35, 170, 197, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

th {
    transition: background-color 0.2s ease;
}

th:hover {
    background-color: rgba(35, 170, 197, 0.05);
}

/* Enhanced Button Micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Enhanced Action Button States */
.action-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: var(--dark-gray);
    color: var(--white);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-btn:active {
    transform: translateY(0) scale(1);
}

/* Enhanced Navigation Hover States */
.sidebar-nav a {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #23AAC5;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
    transform: scaleY(1);
}

.sidebar-nav a:hover {
    padding-left: 20px;
    background-color: rgba(35, 170, 197, 0.1);
}

/* Enhanced Dashboard Card Interactions */
.dashboard-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 10px;
}

.dashboard-card:hover::after {
    opacity: 1;
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Enhanced Filter & Sort Interactions */
.filter-btn {
    position: relative;
    transition: all 0.3s ease;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #23AAC5;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 100%;
}

.filter-btn:hover {
    transform: translateY(-2px);
    color: #23AAC5;
}

/* Enhanced Sort Headers */
.sort-header a {
    position: relative;
    transition: all 0.2s ease;
    padding: 8px 4px;
    border-radius: 4px;
}

.sort-header a:hover {
    background-color: rgba(35, 170, 197, 0.08);
    color: #23AAC5;
    transform: translateY(-1px);
}

.sort-icon {
    transition: all 0.2s ease;
}

.sort-header:hover .sort-icon {
    transform: scale(1.2);
    color: #23AAC5;
}

/* Enhanced Form Section Interactions */
.form-section {
    transition: box-shadow 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
}

.form-group label {
    transition: color 0.2s ease;
    cursor: pointer;
}

.form-group:hover label {
    color: #23AAC5;
}

/* Enhanced Dropdown Interactions */
.dropdown-item {
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #23AAC5, rgba(35, 170, 197, 0.1));
    transition: width 0.3s ease;
}

.dropdown-item:hover::before {
    width: 4px;
}

.dropdown-item:hover {
    padding-left: 18px;
    background-color: rgba(35, 170, 197, 0.05);
    color: #23AAC5;
}

/* Enhanced Modal Interactions */
.modal-content {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1) rotateX(0deg);
    opacity: 1;
}

.close-modal,
.close-share-modal,
.close-image-modal,
.close-feedback-modal {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal:hover,
.close-share-modal:hover,
.close-image-modal:hover,
.close-feedback-modal:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: rgba(255,255,255,0.2);
}

/* Enhanced Badge Interactions */
.badge,
.estado-badge,
.status-badge {
    transition: all 0.2s ease;
    cursor: pointer;
}

.badge:hover,
.estado-badge:hover,
.status-badge:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Enhanced Thumbnail Interactions */
.thumbnail {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.thumbnail::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.thumbnail:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.thumbnail:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: #23AAC5;
}

/* Enhanced Toggle Switch Interactions */
.switch {
    transition: transform 0.2s ease;
}

.switch:hover {
    transform: scale(1.05);
}

.slider {
    transition: all 0.4s ease;
}

.slider:hover {
    box-shadow: 0 0 10px rgba(35, 170, 197, 0.3);
}

/* Enhanced Content Type Tabs */
.tab-item {
    position: relative;
    overflow: hidden;
}

.tab-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-dark));
    transition: width 0.3s ease;
}

.tab-item:hover:not(.disabled):not(.active)::before {
    width: 100%;
}

.tab-item:hover:not(.disabled):not(.active) {
    transform: translateY(-2px);
    background-color: rgba(97, 27, 70, 0.05);
}

/* Enhanced Stat Cards */
.stat-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Enhanced WordPress Button */
.btn-wordpress {
    position: relative;
    overflow: hidden;
}

.btn-wordpress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-wordpress:hover::before {
    left: 100%;
}

.btn-wordpress:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Enhanced Focus States for Accessibility */
.btn:focus,
.action-btn:focus,
.form-control:focus,
.checkbox-item input:focus + label,
.dropdown-item:focus {
    outline: 2px solid #23AAC5;
    outline-offset: 2px;
}

/* Enhanced Loading States */
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover,
.btn[disabled]:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Pulse Animation for Loading States */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Enhanced Feedback Indicator */
.feedback-indicator {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feedback-indicator:hover {
    transform: translateY(-2px) scale(1.1);
    background-color: #23AAC5;
    color: white;
    box-shadow: 0 4px 12px rgba(35, 170, 197, 0.3);
}

/* Enhanced Business Line Logos */
.header-logo,
.dropdown-logo,
.business-logo {
    transition: all 0.3s ease;
}

.header-logo:hover,
.dropdown-logo:hover,
.business-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Selection States */
::selection {
    background-color: rgba(35, 170, 197, 0.3);
    color: #333;
}

::-moz-selection {
    background-color: rgba(35, 170, 197, 0.3);
    color: #333;
}

/* =================== END ENHANCED HOVER STATES & MICRO-INTERACTIONS ===================*/

/* =================== MODERN STATUS SELECTOR =================== */

/* Replace the old status-selector with this modern version */
.status-selector {
    position: relative;
    display: inline-block;
    /* Ensure this gets a higher z-index when open */
}

.status-selector.open {
    z-index: 9999; /* Higher than any hover effects */
    position: relative; /* Create new stacking context */
}

.status-selector-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    min-width: 100px;
    justify-content: center;
    /* Prevent transform issues when parent is open */
}

.status-selector.open .status-selector-trigger {
    transform: translateY(-2px) scale(1.05) !important; /* Force the hover state when open */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.status-selector-trigger:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.status-selector-trigger:active {
    transform: translateY(0) scale(1.02);
}

/* Status Colors */
.status-selector-trigger.borrador,
.status-selector-trigger.draft {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    color: #495057;
    border: 2px solid #dee2e6;
}

.status-selector-trigger.borrador:hover,
.status-selector-trigger.draft:hover {
    background: linear-gradient(135deg, #dee2e6 0%, #e9ecef 100%);
    border-color: #adb5bd;
}

.status-selector-trigger.programado,
.status-selector-trigger.scheduled {
    background: linear-gradient(135deg, #ffc107 0%, #f39c12 100%);
    color: #212529;
    border: 2px solid #ffca2c;
}

.status-selector-trigger.programado:hover,
.status-selector-trigger.scheduled:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d68910 100%);
    border-color: #d39e00;
}

.status-selector-trigger.publicado,
.status-selector-trigger.publish {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: 2px solid #34ce57;
}

.status-selector-trigger.publicado:hover,
.status-selector-trigger.publish:hover {
    background: linear-gradient(135deg, #218838 0%, #1da784  100%);
    border-color: #1e7e34;
}

/* Arrow Icon */
.status-selector-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.status-selector.open .status-selector-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu - FIXED Z-INDEX ISSUES */
.status-selector-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25); /* Enhanced shadow for better visibility */
    border: 1px solid #e9ecef;
    z-index: 99999; /* Very high z-index */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 120px;
    overflow: hidden;
    /* Create a new stacking context */
    isolation: isolate;
}

.status-selector.open .status-selector-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Dropdown Items */
.status-selector-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    position: relative; /* Ensure proper stacking */
    z-index: 1; /* Local z-index within dropdown */
}

.status-selector-option:hover:not(.active) {
    background: linear-gradient(90deg, rgba(35, 170, 197, 0.08) 0%, rgba(35, 170, 197, 0.02) 100%);
    color: #23AAC5;
}

.status-selector-option.active {
    background: linear-gradient(90deg, #23AAC5 0%, #1d8fa6 100%);
    color: white;
    font-weight: 600;
}

.status-selector-option:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.status-selector-option:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Status Icons */
.status-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.status-icon.borrador,
.status-icon.draft {
    background: #6c757d;
    color: white;
}

.status-icon.programado,
.status-icon.scheduled {
    background: #ffc107;
    color: #212529;
}

.status-icon.publicado,
.status-icon.publish {
    background: #28a745;
    color: white;
}

/* Loading State */
.status-selector-trigger.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.status-selector-trigger.loading:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Success Animation */
@keyframes statusUpdateSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.status-selector-trigger.success-flash {
    animation: statusUpdateSuccess 0.4s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .status-selector-trigger {
        min-width: 85px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .status-selector-dropdown {
        min-width: 100px;
    }
    
    .status-selector-option {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
}

/* IMPORTANT: Override any table row hover transforms that might interfere */
tbody tr:hover .status-selector-dropdown {
    z-index: 99999 !important;
}

/* Ensure table rows don't interfere with open selectors */
tbody tr:has(.status-selector.open) {
    z-index: 9998 !important;
    position: relative;
}

/* Override any conflicting hover effects on parent elements when selector is open */
.status-selector.open {
    /* Ensure the open selector always stays on top */
    z-index: 99998 !important;
}

.status-selector.open ~ * {
    /* Elements after an open selector should have lower z-index */
    position: relative;
    z-index: 1;
}

/* Hide the old basic selects when the new component is available */
.estado-selector-directo {
    display: none !important;
}

/* =================== END MODERN STATUS SELECTOR =================== */

.estado-selector-directo {
    display: inline-block;
    position: relative;
}

/* ---- Placeholders de Imágenes Archivadas - Optimización de Almacenamiento ---- */

/* Placeholder principal para imágenes archivadas */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    color: #6c757d;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Variant específico para imágenes archivadas */
.image-placeholder.archived {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #adb5bd;
    border-style: dashed;
}

/* Efectos hover para placeholders */
.image-placeholder:hover {
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-placeholder.archived:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

/* Icono del placeholder */
.image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.image-placeholder:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Texto principal del placeholder */
.image-placeholder span {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.image-placeholder:hover span {
    color: #495057;
}

/* Texto secundario del placeholder */
.image-placeholder small {
    font-size: 0.75rem;
    opacity: 0.8;
    text-align: center;
    line-height: 1.3;
    transition: opacity 0.3s ease;
}

.image-placeholder:hover small {
    opacity: 1;
}

/* Placeholder en contexto de tabla */
td .image-placeholder {
    min-height: 80px;
    padding: 15px;
    margin: 0;
}

td .image-placeholder i {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

td .image-placeholder span {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

td .image-placeholder small {
    font-size: 0.7rem;
}

/* Placeholder en contexto de thumbnail */
.thumbnail .image-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    border-radius: 6px;
    border-width: 1px;
}

/* Placeholder para cards del dashboard */
.dashboard-card .image-placeholder {
    min-height: 100px;
    border-radius: 6px;
}

/* Placeholder en blog posts */
.blog-preview .image-placeholder {
    min-height: 150px;
    border-radius: 8px;
}

/* Tooltip para explicación adicional */
.image-placeholder[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Variaciones por tamaño */
.image-placeholder.size-small {
    min-height: 60px;
    padding: 10px;
}

.image-placeholder.size-small i {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.image-placeholder.size-small span {
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.image-placeholder.size-small small {
    font-size: 0.65rem;
}

.image-placeholder.size-large {
    min-height: 200px;
    padding: 30px;
}

.image-placeholder.size-large i {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.image-placeholder.size-large span {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* Responsive para placeholders */
@media (max-width: 768px) {
    .image-placeholder {
        min-height: 100px;
        padding: 15px;
    }
    
    .image-placeholder i {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .image-placeholder span {
        font-size: 0.9rem;
    }
    
    .image-placeholder small {
        font-size: 0.7rem;
    }
    
    td .image-placeholder {
        min-height: 60px;
        padding: 10px;
    }
    
    td .image-placeholder i {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .image-placeholder {
        min-height: 80px;
        padding: 12px;
    }
    
    .image-placeholder i {
        font-size: 1.8rem;
    }
    
    .image-placeholder span {
        font-size: 0.85rem;
    }
    
    .image-placeholder small {
        font-size: 0.65rem;
    }
}

/* Animación de entrada para placeholders nuevos */
@keyframes placeholderFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

.image-placeholder.fade-in {
    animation: placeholderFadeIn 0.5s ease-out;
}

/* ---- Fin de Placeholders de Imágenes Archivadas ---- */

/* ----- Estilos para Modal de Feedback en Share View ----- */
.btn-feedback-modal {
    position: relative;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-feedback-modal:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    transform: translateY(-1px);
}

.btn-feedback-modal .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color, #23AAC5);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Modal de Feedback reutiliza estilos de modal-share */
#feedbackModal .modal-share-content {
    max-width: 700px;
    min-height: 300px;
}

#feedbackModal .feedback-list {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

#feedbackModal .feedback-display-list {
    font-size: 0.9rem;
    line-height: 1.5;
}

#feedbackModal .feedback-form {
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

#feedbackModal .feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
}

#feedbackModal .feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color, #23AAC5);
    box-shadow: 0 0 0 0.2rem rgba(35, 170, 197, 0.25);
}

#feedbackModal .feedback-form #submitFeedbackBtn {
    margin-top: 10px;
    background-color: var(--primary-color, #23AAC5);
    border-color: var(--primary-color, #23AAC5);
    padding: 8px 16px;
    font-size: 0.9rem;
}

#feedbackModal .feedback-form #submitFeedbackBtn:hover {
    background-color: var(--primary-dark, #1a8da5);
    border-color: var(--primary-dark, #1a8da5);
}

#feedbackModal .feedback-form #feedbackMessage {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

#feedbackModal .feedback-form #feedbackMessage.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#feedbackModal .feedback-form #feedbackMessage.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Reutilizar estilos de feedback-items-list para el modal */
#feedbackModal .feedback-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#feedbackModal .feedback-items-list li {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
    line-height: 1.4;
}

#feedbackModal .feedback-items-list li:last-child {
    border-bottom: none;
}

#feedbackModal .feedback-items-list li strong {
    color: #6c757d;
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-feedback-modal {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .btn-feedback-modal .badge {
        top: -6px;
        right: -6px;
        font-size: 0.65rem;
        padding: 1px 4px;
        min-width: 16px;
    }
    
    #feedbackModal .modal-share-content {
        margin: 5% auto;
        max-width: 95%;
    }
    
    #feedbackModal .feedback-list {
        max-height: 200px;
        padding: 10px;
    }
}
/* ----- Fin Estilos Modal de Feedback ----- */

/* Dashboard Actions Bar */
.dashboard-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.dashboard-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, rgba(97, 27, 70, 1) 30%, rgba(227, 117, 0, 1) 100%);
}

.actions-left h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.actions-left p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.actions-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-action {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary.btn-action {
    background: linear-gradient(135deg, rgba(97, 27, 70, 1) 30%, rgba(227, 117, 0, 1) 100%);
    color: white;
}

.btn-primary.btn-action:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Responsive for dashboard actions */
@media (max-width: 768px) {
    .dashboard-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }
    
    .actions-left {
        text-align: center;
    }
    
    .actions-right {
        justify-content: center;
    }
    
    .btn-action {
        justify-content: center;
    }
}

/* Planner Header Unificado */
.planner-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.planner-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
}

.planner-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.planner-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.linea-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.planner-title-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.planner-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.planner-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.linea-selector {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    color: #6c757d;
    cursor: pointer;
    outline: none;
    padding: 2px 4px;
    border-radius: 4px;
}

.linea-selector:hover {
    background: rgba(0,0,0,0.05);
}

.planner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Content Type Tabs - Restaurado estilo original */
.content-type-tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0;
    padding: 0 20px;
}

.content-type-tabs {
    display: flex;
    gap: 5px;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.tab-item:hover:not(.disabled) {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.tab-item.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom: 3px solid var(--primary-dark);
}

.tab-item.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.tab-item.disabled:hover {
    background-color: transparent;
    color: #adb5bd;
}

/* Tabs unified: removed legacy dynamic theming block */

/* Responsive */
@media (max-width: 768px) {
    .planner-header-main {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .planner-title-section {
        justify-content: center;
    }
    
    .planner-actions {
        justify-content: center;
    }
    
    .content-type-tabs {
        justify-content: center;
    }
}
