/* ===== STUDIO BY LIKEREPLY BRANDING ===== */
/* Bootstrap CSS and Icons are loaded in base.html.twig template */
/* This file overrides Bootstrap variables with Studio branding */

/* ===== STUDIO BY LIKEREPLY BRANDING ===== */
/* Override Bootstrap primary color with Studio branding */
/* New Studio Blue: #016FB7 (RGB: 1, 111, 183) */
:root {
    /* Primary Color Variables */
    --bs-primary: #016FB7 !important;
    --bs-primary-rgb: 1, 111, 183 !important;
    --bs-primary-hover: #014a7a;
    --bs-primary-active: #013a5f;
    --bs-primary-light: rgba(1, 111, 183, 0.1);
    --bs-primary-shadow: rgba(1, 111, 183, 0.3);

    /* Link Variables */
    --bs-link-color: #016FB7 !important;
    --bs-link-color-rgb: 1, 111, 183 !important;
    --bs-link-hover-color: #014a7a !important;
    --bs-link-hover-color-rgb: 1, 74, 122 !important;

    /* Background Variables */
    --bs-primary-bg-subtle: rgba(1, 111, 183, 0.1) !important;
    --bs-primary-border-subtle: rgba(1, 111, 183, 0.2) !important;
    --bs-primary-text-emphasis: #013a5f !important;
}

/* Button Primary - Complete Override */
.btn-primary {
    --bs-primary-rgb: 1, 111, 183 !important;
    --bs-btn-color: #fff !important;
    --bs-btn-bg: #016FB7 !important;
    --bs-btn-border-color: #016FB7 !important;
    --bs-btn-hover-color: #fff !important;
    --bs-btn-hover-bg: #014a7a !important;
    --bs-btn-hover-border-color: #014a7a !important;
    --bs-btn-focus-shadow-rgb: 1, 111, 183 !important;
    --bs-btn-active-color: #fff !important;
    --bs-btn-active-bg: #013a5f !important;
    --bs-btn-active-border-color: #013a5f !important;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125) !important;
    --bs-btn-disabled-color: #fff !important;
    --bs-btn-disabled-bg: #016FB7 !important;
    --bs-btn-disabled-border-color: #016FB7 !important;
    background-color: #016FB7 !important;
    border-color: #016FB7 !important;
}

/* Navbar Primary Background - Force Override */
/* Override Bootstrap's bg-primary which uses rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) */
.bg-primary,
.navbar.bg-primary,
nav.bg-primary,
.bg-primary.navbar {
    --bs-primary-rgb: 1, 111, 183 !important;
    --bs-bg-opacity: 1 !important;
}

/* Additional specificity for navbar */
.navbar-dark.bg-primary,
nav.navbar-dark.bg-primary,
.navbar.navbar-dark.bg-primary {
    --bs-primary-rgb: 1, 111, 183 !important;
    background-color: rgba(1, 111, 183, 1) !important;
}

/* Text Primary */
.text-primary {
    --bs-text-opacity: 1 !important;
    color: #016FB7 !important;
}

/* Border Primary */
.border-primary {
    --bs-border-opacity: 1 !important;
    border-color: #016FB7 !important;
}

/* Alert Primary */
.alert-primary {
    --bs-alert-color: #013a5f !important;
    --bs-alert-bg: rgba(1, 111, 183, 0.1) !important;
    --bs-alert-border-color: rgba(1, 111, 183, 0.2) !important;
}

/* Custom styles */
body {
    background-color: #f8f9fa;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
}

/* Navigation improvements */
.navbar-brand {
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease-in-out;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

/* Additional button styling (styling only, variables defined above) */
.btn-primary {
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(1, 111, 183, 0.3);
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border: none;
    border-radius: 12px;
    transition: all 0.15s ease-in-out;
}

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

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    border-radius: 12px 12px 0 0;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    border-radius: 6px;
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 8px;
}

/* Responsive spacing */
/* NOTE: padding-top is handled in base.html.twig for navbar clearance */
.main-content {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}

@media (max-width: 768px) {
    .main-content {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Icon improvements */
.bi {
    vertical-align: -0.125em;
}

/* Custom utilities */
.shadow-hover {
    transition: box-shadow 0.15s ease-in-out;
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Centralized Design System - Adobe Elegance & Simplicity */

/* Enhanced Card System */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* Consistent Icon Styling */
.icon-container {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Section Headers */
.section-header {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-header i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

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

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.empty-state-icon i {
    font-size: 2rem;
    color: #6c757d;
}

/* Consistent Button Sizing */
.btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: #6c757d;
    margin-bottom: 0;
}

/* ===== GLOBAL BREADCRUMB SYSTEM ===== */
/* Adobe-Inspired Professional Breadcrumb Styling for Consistent UX */

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0 0.5rem;
    line-height: 1;
    margin-top: -1px;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #016FB7;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 600;
}

/* Breadcrumb Container Styling */
.breadcrumb-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

/* Ensure breadcrumb doesn't overlap with fixed navbar */
/* The breadcrumb is inside main-content which already has padding-top: 64px */
/* But we need additional top spacing for the first element */
.container-fluid > .breadcrumb-container:first-child,
.main-content > .breadcrumb-container:first-child {
    margin-top: 0;
    padding-top: 1.5rem;
}

/* Fix for nested container-fluid in breadcrumb */
.breadcrumb-container .container-fluid {
    max-width: 100%;
}

.breadcrumb-wrapper {
    position: relative;
}

.breadcrumb-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1rem;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #e9ecef 0%, rgba(233, 236, 239, 0) 100%);
}

/* Icon Integration in Breadcrumbs */
.breadcrumb-item i {
    font-size: 0.75rem;
    margin-right: 0.25rem;
    opacity: 0.8;
}

.breadcrumb-item a i {
    transition: opacity 0.15s ease-in-out;
}

.breadcrumb-item a:hover i {
    opacity: 1;
}

/* Responsive Breadcrumb Design */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        padding: 0 0.375rem;
        font-size: 1rem;
    }
    
    /* Hide intermediate breadcrumb items on mobile, keep first and last */
    .breadcrumb-item:not(:first-child):not(:last-child) {
        display: none;
    }
    
    /* Show ellipsis for hidden items */
    .breadcrumb-item:first-child:not(:last-child)::after {
        content: " … ";
        color: #adb5bd;
        padding-left: 0.5rem;
    }
}

/* Theme Variations */
.breadcrumb.breadcrumb-light {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb.breadcrumb-light .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.95);
}

.breadcrumb.breadcrumb-light .breadcrumb-item.active {
    color: rgba(255, 255, 255, 1);
}

.breadcrumb.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Accessibility Enhancements */
.breadcrumb-item a:focus {
    outline: 2px solid #016FB7;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Professional Styling Utilities */
.breadcrumb-elevated {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.breadcrumb-minimal {
    border-bottom: none;
    background: transparent;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.breadcrumb-compact {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.breadcrumb-compact .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 0.375rem;
    font-size: 0.9rem;
}

/* Animation Effects */
.breadcrumb-item {
    animation: breadcrumbFadeIn 0.3s ease-out;
}

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

/* Specific Page Context Styling */
.breadcrumb-admin {
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
    border-left: 4px solid #ffc107;
}

.breadcrumb-dashboard {
    background: linear-gradient(135deg, #d1ecf1 0%, #ffffff 100%);
    border-left: 4px solid #17a2b8;
}

.breadcrumb-license {
    background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
    border-left: 4px solid #28a745;
}

.breadcrumb-webinar {
    background: linear-gradient(135deg, #e2e3f3 0%, #ffffff 100%);
    border-left: 4px solid #6f42c1;
}

/* ===== WEBINAR FORM BUILDER BANNER STYLES ===== */
/* Enhanced banner styling for Dynamic Form Builder section */

.webinar-form-builder-banner {
    position: relative;
    transition: all 0.3s ease;
}

.webinar-form-builder-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(1, 111, 183, 0.3) !important;
}

/* Feature Badges */
.webinar-feature-badge {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #016FB7 !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.webinar-feature-badge:hover {
    background: #ffffff !important;
    color: #014a7a !important;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: default;
}

.webinar-feature-badge i {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.webinar-feature-badge:hover i {
    opacity: 1;
}

/* Action Buttons */
.webinar-action-btn {
    background: #ffffff !important;
    color: #016FB7 !important;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.webinar-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 111, 183, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.webinar-action-btn:hover {
    background: #f8f9fa !important;
    color: #014a7a !important;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.webinar-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Outline Button */
.webinar-action-btn-outline {
    background: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.webinar-action-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.webinar-action-btn-outline:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for webinar banner */
@media (max-width: 768px) {
    .webinar-form-builder-banner {
        margin-bottom: 1.5rem;
    }

    .webinar-feature-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .webinar-action-btn,
    .webinar-action-btn-outline {
        font-size: 0.95rem;
    }
}
