/* innova-modern.css - Premium UI Overrides for AdminLTE */

/* ==========================================================================
   1. GLOBAL VARIABLES & FONTS
   ========================================================================== */
:root {
    --primary-brand: #3b82f6; /* Modern Blue */
    --sidebar-bg: #1e293b; /* Slate 800 */
    --sidebar-hover: #334155; /* Slate 700 */
    --sidebar-active: #2563eb; /* Blue 600 */
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --soft-border: #e2e8f0;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc; /* Lighter background for the app */
}

/* ==========================================================================
   2. SIDEBAR MODERNIZATION
   ========================================================================== */
.main-sidebar, .sidebar-dark-primary {
    background-color: var(--sidebar-bg) !important;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1) !important;
}

.sidebar-dark-primary .brand-link {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

/* Hover micro-animations on sidebar items */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link {
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px 8px;
    width: auto;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover {
    background-color: var(--sidebar-hover) !important;
    transform: translateX(4px); /* Smooth move right */
}

/* Active item styling */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: var(--sidebar-active) !important;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4) !important;
}

/* ==========================================================================
   3. NAVBAR MODERNIZATION
   ========================================================================== */
.main-header.navbar {
    border-bottom: 1px solid var(--soft-border) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-nav .nav-link {
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-brand) !important;
}

/* ==========================================================================
   4. CARDS & CONTAINERS (GLASSMORPHISM / PREMIUM FEEL)
   ========================================================================== */
.card {
    border: none !important;
    box-shadow: var(--glass-shadow) !important;
    border-radius: 10px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid var(--soft-border) !important;
    padding: 1rem 1.25rem !important;
}

/* ==========================================================================
   5. BUTTONS & INPUTS ROUNDING
   ========================================================================== */
.btn {
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.form-control, .select2-selection {
    border-radius: 6px !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: var(--primary-brand) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

/* Fix Select2 rendering in AdminLTE to match modern inputs */
.select2-container--default .select2-selection--single {
    height: calc(2.25rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
}

/* ==========================================================================
   6. GLOBAL BUTTON MODERNIZATION (Removing "Pale" Outlines)
   ========================================================================== */
/* We override outline buttons used in datatables and lists to make them solid and prominent */

.btn-outline-dark, .btn-outline-secondary {
    background-color: #f1f5f9 !important; /* light slate */
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-outline-dark:hover, .btn-outline-secondary:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.btn-outline-info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-outline-info:hover {
    background-color: #bae6fd !important;
    color: #0c4a6e !important;
}

.btn-outline-primary {
    background-color: #dbeafe !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-outline-primary:hover {
    background-color: #bfdbfe !important;
    color: #1e3a8a !important;
}

.btn-outline-success {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-outline-success:hover {
    background-color: #bbf7d0 !important;
    color: #14532d !important;
}

.btn-outline-danger {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.btn-outline-danger:hover {
    background-color: #fecaca !important;
    color: #7f1d1d !important;
}

/* Improve small button size slightly so they are not too tiny */
.btn-sm, .btn-group-sm > .btn {
    padding: 0.35rem 0.6rem !important;
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
    border-radius: 0.3rem !important;
}

/* Add rounded pill style specifically for action buttons if they have rounded-circle/pill */
.rounded-circle {
    border-radius: 50% !important;
    padding: 0.35rem 0.5rem !important;
}

/* Modern Table Headers */
thead.thead {
    background-color: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
}
thead.thead th {
    color: #475569 !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}


/* BCV Widget Styles */
.bcv-widget-container { margin-right: 15px; }
.bcv-badge {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}
.bcv-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.bcv-loading { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; opacity: 0.5; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
