/* --- CoverageLens: Honey & Charcoal Premium Theme --- */
/* Inspired by modern minimalist dashboard design (warm cream, charcoal, and amber yellow) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Bootstrap color overrides */
    --bs-primary: #1e1e1e; /* Deep Charcoal/Black */
    --bs-primary-rgb: 30, 30, 30;
    
    --bs-success: #ffcc4d; /* Amber/Honey Yellow */
    --bs-success-rgb: 255, 204, 77;
    
    --bs-warning: #ffcc4d;
    --bs-warning-rgb: 255, 204, 77;
    
    --bs-secondary: #e8e4db; /* Soft Warm Gray */
    --bs-secondary-rgb: 232, 228, 219;
    
    --bs-dark: #2a2826;
    --bs-dark-rgb: 42, 40, 38;
    
    --bs-light: #fdfcf7; /* Very Light Warm White */
    --bs-light-rgb: 253, 252, 247;
    
    --bs-body-bg: #f7f4eb; /* Fallback background color */
    --bs-body-color: #2a2826; /* Charcoal text */
    
    --bs-body-font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout styling overrides */
    --bs-border-radius: 12px;
    --bs-border-radius-sm: 8px;
    --bs-border-radius-lg: 16px;
    --bs-border-color: #e8e4db;
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    /* Diagonal right-to-left gradient: warm yellow -> warm beige -> soft grey */
    background: linear-gradient(270deg, #ffe6b1 0%, #e8e4c6 50%, #f0e9c2 100%) !important;
    background-attachment: fixed !important;
    color: var(--bs-body-color);
    margin: 0;
    padding: 0;
}

/* --- Layout Overrides --- */

/* Navbar: Clean white with warm grey border */
.navbar.bg-primary {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e8e4db !important;
    box-shadow: none !important;
    padding: 12px 24px !important;
}

.navbar-brand, .navbar-brand span {
    color: #1e1e1e !important;
    font-weight: 600;
}

.navbar .nav-link {
    color: #8e8a82 !important;
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    color: #1e1e1e !important;
}

/* Active navigation pill (dark pill like in the design image) */
.navbar .nav-link.active, .navbar .nav-link[href="#/login"] {
    background-color: #1e1e1e !important;
    color: #ffffff !important;
}

/* Sidebar: Clean white card style */
.col-md-3.col-lg-2.bg-dark {
    background-color: #ffffff !important;
    color: #2a2826 !important;
    border-right: 1px solid #e8e4db;
    box-shadow: none !important;
    padding-top: 5rem !important; /* Space for the navbar */
}

/* Sidebar links/text colors */
.col-md-3.col-lg-2.bg-dark a {
    color: #2a2826 !important;
}

.col-md-3.col-lg-2.bg-dark .side-menu-subitem {
    border-radius: 12px;
    margin: 4px 8px;
    transition: all 0.2s ease;
}

.col-md-3.col-lg-2.bg-dark .side-menu-subitem:hover {
    background-color: #f7f4eb !important;
    color: #1e1e1e !important;
}

/* --- Component Overrides --- */

/* Cards: White with rounded corners, warm borders, and soft drop shadow */
.card, .modal-content {
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e8e4db !important;
    box-shadow: 0 4px 20px rgba(42, 40, 38, 0.04) !important;
    padding: 24px !important;
    margin-bottom: 20px;
}

/* Fix white-text KPI cards rendering on white background */
.card.text-white {
    color: #2a2826 !important;
}

.card.text-white h2,
.card.text-white div,
.card.text-white span,
.card.text-white p {
    color: #2a2826 !important;
}

/* Colored KPI Cards subtle icon highlights */
.card.bg-primary, .card.bg-success, .card.bg-info, .card.bg-dark {
    background-color: #ffffff !important;
    border: 1px solid #e8e4db !important;
}

.card.bg-primary i { color: #1e1e1e !important; }
.card.bg-success i { color: #2e7d32 !important; /* Green */ }
.card.bg-info i { color: #0288d1 !important; /* Blue */ }
.card.bg-dark i { color: #757575 !important; /* Grey */ }

/* Result Card overrides */
.result-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e8e4db !important;
    box-shadow: 0 4px 16px rgba(42, 40, 38, 0.03) !important;
    display: flex;
    overflow: hidden;
    height: auto !important; /* Dynamic height for better read */
    padding: 16px !important;
    margin-bottom: 16px !important;
    transition: all 0.2s ease;
}

.result-card:hover {
    border-color: #ffcc4d !important; /* Highlight with Honey Yellow on hover */
    box-shadow: 0 6px 24px rgba(42, 40, 38, 0.06) !important;
    transform: translateY(-2px);
}

/* High visibility side indicators */
.source-twitch { border-left: 6px solid #9146FF !important; }
.source-youtube { border-left: 6px solid #FF0000 !important; }
.source-google { border-left: 6px solid #1e1e1e !important; /* Align Google indicator with theme */ }

/* Card Content typography */
.card-title-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1e1e1e;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
    transition: color 0.2s ease;
}

.card-title-link:hover {
    color: #ffcc4d !important;
    text-decoration: none;
}

.meta-info {
    font-size: 11px;
    color: #8e8a82;
    margin-bottom: 8px;
}

.summary-text {
    font-size: 13px;
    color: #4c4943;
    line-height: 1.5;
}

/* --- Form Elements --- */
.form-control, .form-select, .ts-control {
    background-color: #ffffff !important;
    border: 1px solid #e8e4db !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    color: #2a2826 !important;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus, .ts-control:focus {
    border-color: #ffcc4d !important;
    box-shadow: 0 0 0 4px rgba(255, 204, 77, 0.2) !important;
}

/* Buttons */
.btn {
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* Standard Button Overrides */
.btn-primary {
    background-color: #1e1e1e !important;
    border-color: #1e1e1e !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #2a2826 !important;
    border-color: #2a2826 !important;
}

.btn-success {
    background-color: #ffcc4d !important;
    border-color: #ffcc4d !important;
    color: #1e1e1e !important;
    font-weight: 600 !important;
}

.btn-success:hover {
    background-color: #fcd05f !important;
    border-color: #fcd05f !important;
}

.btn-danger {
    background-color: #fce8e6 !important;
    border-color: #fce8e6 !important;
    color: #d93025 !important;
    font-weight: 500 !important;
}

.btn-danger:hover {
    background-color: #fad2cf !important;
    border-color: #fad2cf !important;
}

.btn-info, .btn-secondary, .btn-outline-info, .btn-outline-secondary {
    background-color: #ffffff !important;
    border: 1px solid #e8e4db !important;
    color: #2a2826 !important;
    box-shadow: 0 2px 6px rgba(42, 40, 38, 0.02) !important;
}

.btn-info:hover, .btn-secondary:hover, .btn-outline-info:hover, .btn-outline-secondary:hover {
    background-color: #f7f4eb !important;
    border-color: #d4ceb8 !important;
    color: #1e1e1e !important;
}

/* Make explicitly tagged circular buttons circular */
.btn-circle {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

/* Thumbnails */
.thumb-container {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    margin-right: 16px;
    background-color: #e8e4db;
    overflow: hidden;
}

/* --- Search Page / Search Bar Restyling --- */

/* Make the search input group look like a single premium container */
.input-group {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e8e4db !important;
    box-shadow: 0 4px 20px rgba(42, 40, 38, 0.04) !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center !important;
}

/* Remove default borders on the inputs inside the group */
.input-group .form-control,
.input-group .ts-control,
.input-group .ts-wrapper {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 12px 18px !important;
    font-size: 15px !important;
    color: #2a2826 !important;
}

/* Force any typeahead / input wrapper div inside input-group to stretch and occupy all space on the left */
.input-group > div:not(.btn) {
    flex-grow: 1 !important;
    display: flex !important;
}

.input-group .ts-wrapper, 
.input-group .ts-control, 
.input-group .tom-select {
    flex-grow: 1 !important;
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Custom placeholder */
.input-group .form-control::placeholder {
    color: #8e8a82 !important;
}

/* Style all buttons inside the input-group */
.input-group .btn {
    border-radius: 10px !important;
    margin-left: 6px !important;
    height: 44px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: 1px solid #e8e4db !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Primary Search Button inside group */
.input-group .btn-primary {
    background-color: #1e1e1e !important;
    border-color: #1e1e1e !important;
    color: #ffffff !important;
}

.input-group .btn-primary:hover {
    background-color: #2a2826 !important;
    border-color: #2a2826 !important;
}

/* Action control buttons inside group (Filters, Save, Settings) */
.input-group .btn-info,
.input-group .btn-success,
.input-group .btn-secondary {
    background-color: #ffffff !important;
    border: 1px solid #e8e4db !important;
    color: #2a2826 !important;
}

.input-group .btn-info:hover,
.input-group .btn-success:hover,
.input-group .btn-secondary:hover {
    background-color: #f7f4eb !important;
    color: #1e1e1e !important;
}

/* Active Filter Chips / Badge Overrides */
.badge.rounded-pill {
    background-color: #ffffff !important;
    color: #2a2826 !important;
    border: 1px solid #e8e4db !important;
    padding: 8px 16px !important;
    border-radius: 30px !important;
    box-shadow: 0 2px 6px rgba(42, 40, 38, 0.02) !important;
    font-size: 13px !important;
    display: inline-flex;
    align-items: center;
}

/* Sidebar Text Visibility & Component Fixes */
.col-md-3.col-lg-2.bg-dark h1,
.col-md-3.col-lg-2.bg-dark h2,
.col-md-3.col-lg-2.bg-dark h3,
.col-md-3.col-lg-2.bg-dark h4,
.col-md-3.col-lg-2.bg-dark h5,
.col-md-3.col-lg-2.bg-dark h6,
.col-md-3.col-lg-2.bg-dark label,
.col-md-3.col-lg-2.bg-dark p,
.col-md-3.col-lg-2.bg-dark span,
.col-md-3.col-lg-2.bg-dark div,
.col-md-3.col-lg-2.bg-dark .text-light,
.col-md-3.col-lg-2.bg-dark .text-white,
.col-md-3.col-lg-2.bg-dark .text-muted {
    color: #8e8a82 !important; /* Muted brown-grey for headers */
    font-weight: 600 !important;
}

.col-md-3.col-lg-2.bg-dark .side-menu-subitem,
.col-md-3.col-lg-2.bg-dark a {
    color: #2a2826 !important; /* Dark text for sidebar links */
    font-weight: 500 !important;
}

/* Sidebar search box */
.col-md-3.col-lg-2.bg-dark .form-control {
    background-color: #f7f4eb !important;
    border: 1px solid #e8e4db !important;
    color: #2a2826 !important;
}

.col-md-3.col-lg-2.bg-dark .form-control::placeholder {
    color: #8e8a82 !important;
}

/* Fix header buttons gap and wrap layout */
.d-flex.align-items-center {
    gap: 8px !important;
}

.d-flex.align-items-center .btn {
    margin: 0 !important;
}

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

::-webkit-scrollbar-track {
    background: #f7f4eb;
}

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

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