/* Custom Styles - NetContent AI */

:root {
    --bg-dark: #07050f;
    --bg-card: rgba(20, 16, 38, 0.6);
    --bg-card-hover: rgba(28, 22, 54, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(139, 92, 246, 0.5);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    
    --gradient-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    --gradient-glow: 0 0 20px rgba(139, 92, 246, 0.35);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Base Body Styles */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Blur Blobs */
.blur-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
}

.blob-1 {
    top: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
}

.blob-3 {
    top: 50%;
    left: 45%;
    width: 350px;
    height: 350px;
    background: var(--accent-pink);
    opacity: 0.15;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 600;
}

.accent-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Navbar */
.navbar {
    background-color: rgba(7, 5, 15, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--accent-purple);
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
}

.navbar-brand {
    color: #ffffff !important;
}


.navbar-nav .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0 0.2rem;
}

.navbar-nav .nav-link:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Premium Card Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Form inputs & Selects */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-purple);
    box-shadow: var(--gradient-glow);
    color: var(--text-main);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Custom Buttons with Micro-interactions */
.btn-gradient-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-gradient-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    color: white;
}

.btn-gradient-primary:active {
    transform: translateY(0);
}

.btn-gradient-secondary {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-gradient-secondary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
    color: white;
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Badge list styles */
.badge-platform {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
}

.badge-linkedin {
    background-color: rgba(10, 102, 194, 0.15);
    color: #0a66c2;
    border: 1px solid rgba(10, 102, 194, 0.3);
}

.badge-instagram {
    background-color: rgba(225, 48, 108, 0.15);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.3);
}

.badge-twitter {
    background-color: rgba(29, 161, 242, 0.15);
    color: #1da1f2;
    border: 1px solid rgba(29, 161, 242, 0.3);
}

.badge-facebook {
    background-color: rgba(24, 119, 242, 0.15);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.badge-medium {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Custom list group & clients list */
.client-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    transition: all 0.25s ease;
}

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

/* Post History Card */
.post-card {
    border-left: 4px solid var(--accent-purple);
}

/* Spinner & Loading */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--accent-purple);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

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

/* Footer style */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: rgba(7, 5, 15, 0.5);
}

/* Codeblock and formatting results */
.output-box {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: inherit;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Ajustes globales de contraste para legibilidad en fondo oscuro */
.text-muted {
    color: #a2afcc !important; /* Gris-azul claro con excelente contraste */
}

/* Estilo de encabezados de tablas premium */
.table th {
    color: var(--accent-purple) !important; /* Encabezados morados a juego con el branding */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3) !important;
}

/* Borde inferior suave de filas */
.table tr {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Custom scrollbar for scrollable containers */
.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}
.overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 10px;
}
.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Badges for Post Types */
.badge-type-valor {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.badge-type-conexion {
    background-color: rgba(236, 72, 153, 0.15) !important;
    color: #ec4899 !important;
    border: 1px solid rgba(236, 72, 153, 0.3) !important;
}

.badge-type-conversion {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

