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

:root {
    /* Colors */
    --primary-color: #0F172A;
    --secondary-color: #475569;
    --accent-color: #3B82F6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #0EA5E9;
    --bg-color: #F8FAFC;
    --card-bg: rgba(255, 255, 255, 0.9);
    
    /* Typography */
    --font-family: 'Outfit', sans-serif;
    
    /* Effects */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --glass-blur: blur(12px);
    --card-border-radius: 16px;
    --input-border-radius: 10px;
}

/* ========== GLOBAL STYLES ========== */
body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.03) 0px, transparent 50%);
    font-family: var(--font-family);
    color: var(--primary-color);
    min-height: 100vh;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

main, .main-content {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

/* Dropdown Menu (Glassmorphism Single Unit) */
.navbar .nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-radius: 16px !important;
    padding: 10px !important;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1), 
                0 5px 15px -5px rgba(0, 0, 0, 0.05) !important;
    margin-top: 0 !important;
    top: 100% !important;
}

.dropdown-item {
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    color: #334155 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    margin: 2px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid transparent !important;
}

.dropdown-item:hover, .dropdown-item.active {
    background-color: rgba(15, 23, 42, 0.04) !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.03) !important;
}

/* Submenus (Accordion Style) */
.dropdown-submenu {
    position: relative;
    width: 100%;
}

.dropdown-submenu > .dropdown-menu {
    position: static !important;
    display: none !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.03) !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 0 0 10px !important;
    margin: 5px 0 !important;
    backdrop-filter: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu > .dropdown-menu.show {
    display: block !important;
}

.dropdown-submenu > a.dropdown-toggle::after {
    border: none !important;
    content: "\F282" !important;
    font-family: "bootstrap-icons" !important;
    font-size: 0.8rem !important;
    vertical-align: middle !important;
    margin-left: 8px !important;
    opacity: 0.4 !important;
    transition: transform 0.2s ease !important;
}

.dropdown-submenu:hover > a.dropdown-toggle::after,
.dropdown-submenu > a.dropdown-toggle.show::after {
    transform: rotate(90deg) !important;
}

.nav-item.dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg) !important;
}

/* ========== PAGE STRUCTURE ========== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* ========== CARDS ========== */
.card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover { box-shadow: var(--hover-shadow); }

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* ========== FORMS ========== */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: var(--input-border-radius);
    border: 2px solid #E2E8F0;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* ========== TABLES (Standardized) ========== */
.table-container {
    background: var(--card-bg);
    border-radius: var(--card-border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.table thead th {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    padding: 1.25rem 1.5rem !important;
    border-top: none !important;
}

.table tbody td {
    padding: 1.25rem 1.5rem !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.95rem !important;
    color: #1e293b !important;
}

.table tbody tr:hover { 
    background-color: rgba(59, 130, 246, 0.02) !important; 
}

.table tbody tr:last-child td { 
    border-bottom: none !important; 
}

/* Badge System */
.status-badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-shared { background: #dbeafe; color: #1e40af; }
.status-unique { background: #f1f5f9; color: #475569; }

.type-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.type-varchar { background: #dcfce7; color: #166534; }
.type-varchar_options { background: #fef3c7; color: #92400e; }
.type-int, .type-double { background: #ecfeff; color: #0891b2; }
.type-date, .type-time { background: #f5f3ff; color: #5b21b6; }
.type-user { background: #fff1f2; color: #9f1239; }
.type-org, .type-organization { background: #fdf2f8; color: #9d174d; }
.type-deal { background: #eff6ff; color: #1e40af; }

.custom-badge {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.custom-badge.is-custom { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.custom-badge.is-standard { background: #f1f5f9; color: #64748b; }

.franchise-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 2px;
}

/* Table Sorting */
.table-sort-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.table-sort-link:hover { color: var(--accent-color); }

/* ========== BADGES ========== */
.badge-subtle {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

/* ========== OFFCANVAS ========== */
.offcanvas {
    border-left: none;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.offcanvas-end {
    width: 50% !important;
}

/* Tablet e Mobile */
@media (max-width: 992px) {
    .offcanvas-end { width: 75% !important; }
}

@media (max-width: 768px) {
    .offcanvas-end { width: 100% !important; }
}

/* ========== STAT CARDS ========== */
.stat-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--card-border-radius);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    overflow: hidden;
    background: var(--card-bg);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.stat-card .icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
}

.stat-card .card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: -1px;
}

.stat-card .card-text {
    color: var(--secondary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== FRANCHISE SELECT & HEADER CONTROLS ========== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.franchise-select-wrapper {
    position: relative !important;
    min-width: 250px;
    height: 45px;
    display: flex;
    align-items: center;
}

.franchise-select-wrapper form {
    margin: 0;
    width: 100%;
}

.franchise-select-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    pointer-events: none;
    z-index: 10;
    font-size: 1.1rem;
    line-height: 1;
}

.franchise-select {
    height: 45px;
    border: 2px solid #E2E8F0;
    border-radius: var(--input-border-radius);
    padding: 0 16px 0 46px;
    font-size: 0.95rem;
    width: 100%;
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s;
}

.franchise-select:hover { border-color: var(--accent-color); }

/* ========== NAVBAR AUTH ========== */
.navbar-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-logout {
    border: 2px solid var(--danger-color) !important;
    color: var(--danger-color) !important;
    font-weight: 700;
    border-radius: 50px;
    padding: 6px 20px !important;
    font-size: 0.85rem;
    transition: all 0.2s;
    background: transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-logout:hover {
    background-color: var(--danger-color) !important;
    color: white !important;
}

/* ========== SUBMENUS ========== */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu.show > .dropdown-menu {
    display: block !important;
}

.dropdown-toggle::after {
    transition: transform 0.2s;
}

.dropdown-submenu:hover > .dropdown-toggle::after {
    transform: rotate(-90deg);
}

@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        left: 0;
        margin-left: 1.5rem;
        border: none;
        box-shadow: none;
        background: rgba(0,0,0,0.03);
    }
}

/* ========== PAGE HEADERS ========== */
.page-header {
    margin: 2.5rem 0 3.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-title {
    font-size: 2.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.filters-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-toggle-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-toggle-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-toggle-item label {
    font-weight: 500;
    font-size: 0.85rem;
    margin: 0;
    color: var(--secondary-color);
    line-height: 1.4;
    min-height: 2.4em;
    display: flex;
    align-items: center;
}

/* ========== MODULE SPECIFIC: METAS ========== */
.year-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.year-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(to right, #f8fafc, #ffffff);
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    padding: 1rem;
    background: #fff;
    gap: 10px;
}

.user-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

.user-header {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-name {
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.user-total-value {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.1rem;
}

.meta-item {
    padding: 1rem 1.5rem;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    transition: all 0.2s;
}

.meta-item:hover {
    background-color: #f8fafc;
}

.meta-input {
    border: 2px solid transparent;
    background: transparent;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
    width: 100%;
    padding: 4px 0;
    outline: none;
    transition: all 0.2s;
}

.meta-input:focus {
    border-bottom-color: var(--accent-color);
}

.save-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
}

/* ========== MEETING CARDS ========== */
.meeting-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.2s;
}

.meeting-header {
    background: linear-gradient(to right, #f8fafc, white);
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ========== STAT CARDS & DASHBOARD COMPONENTS ========== */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(59, 130, 246, 0.2);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.05);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-detail {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    font-weight: 500;
}

.nav-pills-custom {
    background: #f1f5f9;
    padding: 0.4rem;
    border-radius: 12px;
    display: inline-flex;
    gap: 0.2rem;
}

.nav-pills-custom .nav-link {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s;
}

.nav-pills-custom .nav-link.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.month-label-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
}

.meta-value-display {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ========== UTILITIES FOR MODULES ========== */
.cursor-pointer { cursor: pointer; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filter-label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

/* ========== GRIDS & CHARTS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.05);
}

.chart-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container {
    height: 300px;
    position: relative;
}

/* ========== METAS YEAR DISPLAY ========== */
.year-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.year-total {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.year-total-value {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 800;
}

.month-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
}

.strategy-option {
    transition: all 0.2s;
    border: 2px solid #e2e8f0 !important;
}

.strategy-option.selected {
    border-color: var(--accent-color) !important;
    background-color: #f0f7ff;
}

/* ========== MEETING TABLE: FULL WIDTH FIX ========== */
.table-responsive-custom {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.table-responsive-custom table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-responsive-custom th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 1.25rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.table-responsive-custom td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.expand-button {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.expand-button:hover {
    background: var(--primary-color);
    color: white;
}

.expand-button.active {
    transform: rotate(180deg);
    background: var(--primary-color);
    color: white;
}

/* ========== CUSTOM BADGES ========== */
.badge-success { background-color: #dcfce7; color: #15803d; padding: 0.4em 0.8em; border-radius: 6px; font-weight: 600; font-size: 0.75rem; }
.badge-danger { background-color: #fee2e2; color: #b91c1c; padding: 0.4em 0.8em; border-radius: 6px; font-weight: 600; font-size: 0.75rem; }
.badge-warning { background-color: #fef3c7; color: #92400e; padding: 0.4em 0.8em; border-radius: 6px; font-weight: 600; font-size: 0.75rem; }

/* ========== REUNIOES DETAILS EXPANSION ========== */
.row-expanded {
    display: none;
    background-color: #f8fafc;
}

.theme-section {
    margin-bottom: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.theme-title {
    background: #f1f5f9;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-content {
    padding: 1.25rem;
}

.answer-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.answer-row:last-child { border-bottom: none; }

.answer-label { color: #64748b; font-size: 0.85rem; }
.answer-value { font-weight: 600; font-size: 0.85rem; }
.answer-value.positive { color: #16a34a; }
.answer-value.negative { color: #dc2626; }

/* ========== FILTER BUTTONS ========== */
.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.btn-filter {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-filter:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

.btn-filter-reset {
    background: #f1f5f9;
    color: #64748b;
}

.btn-filter-reset:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Compare Interface */
.vs-badge {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid #f1f5f9;
    font-weight: 700;
    color: #94a3b8;
}

.card-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
    height: 100%;
}

.card-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

/* Standard Action Buttons */
.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #f8fafc;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-action.action-delete:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fca5a5;
}

/* Bulk Actions Bar Modernization */
.bulk-actions-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bulk-actions-bar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.bulk-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.bulk-count {
    background: var(--primary-color);
    color: white;
    padding: 0.1rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

/* Copy Toast Feedback */
.copy-toast {
    position: fixed;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
