/* ============================================
   Virtual Fairs Events Page CSS
   Clean Admin Dashboard Style
   Sharp Edges | Professional | Minimal
   ============================================ */

:root {
    --vf-primary: #EE1D48;
    --vf-primary-rgb: 238, 29, 72;
    --vf-primary-light: #FFF5F7;
    --vf-primary-dark: #C8143C;
    --vf-blue: #3abaf4;
    --vf-orange: #ffa426;
    --vf-green: #47c363;
    --vf-purple: #8b5cf6;
    --vf-cyan: #06b6d4;
    --vf-yellow: #f59e0b;
    --vf-border: #e5e7eb;
    --vf-gray-50: #f9fafb;
    --vf-gray-100: #f3f4f6;
    --vf-gray-200: #e5e7eb;
    --vf-gray-300: #d1d5db;
    --vf-gray-600: #4b5563;
    --vf-gray-700: #374151;
    --vf-gray-900: #1a202c;
}

/* ============================================
   LAYOUT
   ============================================ */

.bg-gray {
    background-color: var(--vf-gray-50);
}

.margin_60_35 {
    padding-top: 18px;
    padding-bottom: 30px;
}

.container > .row {
    display: flex;
    flex-wrap: wrap;
}

.col-lg-9 {
    flex: 1;
}

/* ============================================
   PAGE HEADER - ADMIN STYLE
   ============================================ */

.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.page-header-icon {
    width: 40px;
    height: 40px;
    border-left: 4px solid;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header-icon-inner {
    width: 16px;
    height: 16px;
    border-radius: 0;
}

.page-header-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--vf-gray-900);
    margin: 0;
    line-height: 1.2;
}

.page-header-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin: 2px 0 0 0;
    font-weight: 500;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    font-size: 13px;
    color: var(--vf-gray-600);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: #9ca3af;
}

.breadcrumb-item a {
    color: var(--vf-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--vf-primary-dark);
}

.breadcrumb-item.active {
    color: var(--vf-gray-600);
}

/* ============================================
   SEARCH BAR
   ============================================ */

.search_bar_list {
    position: relative;
}

.search_bar_list input {
    width: 100%;
    padding: 12px 60px 12px 16px;
    border: 2px solid var(--vf-border);
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.search_bar_list input:focus {
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 3px rgba(238, 29, 72, 0.1);
    outline: none;
}

.search_bar_list button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: var(--vf-primary);
    border: none;
    color: #fff;
    padding: 0 24px;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.search_bar_list button:hover {
    background: var(--vf-primary-dark);
    box-shadow: 0 4px 12px rgba(238, 29, 72, 0.3);
}

/* ============================================
   SIDEBAR - CLEAN & SIMPLE
   ============================================ */

#sidebar_fixed {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filter-sidebar {
    background: #fff;
    border: 1px solid var(--vf-border);
    border-radius: 0;
    overflow: hidden;
}

/* Filter Header - Compact */
.filter-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--vf-gray-50) 0%, #fff 100%);
    border-bottom: 2px solid var(--vf-gray-100);
}

.filter-sidebar-header h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--vf-gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-sidebar-header h4 i {
    color: var(--vf-primary);
    font-size: 12px;
}

.clear-filters-link {
    font-size: 11px;
    color: var(--vf-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.clear-filters-link:hover {
    color: var(--vf-primary-dark);
    text-decoration: underline;
}

/* Filter Section - Ultra Compact */
.filter-section {
    padding: 10px 14px;
    border-bottom: 1px solid var(--vf-gray-100);
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--vf-gray-900);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.filter-label i {
    font-size: 12px;
    color: var(--vf-gray-600);
    width: 14px;
}

/* Filter Select Dropdown - Compact */
.filter-select {
    width: 100%;
    padding: 7px 10px;
    border: 2px solid var(--vf-border);
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--vf-gray-700);
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-select:focus {
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 3px rgba(238, 29, 72, 0.1);
    outline: none;
}

/* Filter Options (Checkboxes) - Ultra Compact */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 4px;
    border-radius: 0;
    transition: background 0.2s;
}

.filter-checkbox:hover {
    background: var(--vf-gray-50);
}

.filter-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 16px;
    height: 16px;
    border: 2px solid var(--vf-gray-300);
    border-radius: 0;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s;
}

.filter-checkbox:hover .checkbox-custom {
    border-color: var(--vf-primary);
}

.filter-checkbox input:checked + .checkbox-custom {
    background: var(--vf-primary);
    border-color: var(--vf-primary);
}

.filter-checkbox input:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 9px;
}

.checkbox-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--vf-gray-700);
}

.checkbox-count {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    background: var(--vf-gray-100);
    padding: 3px 8px;
    border-radius: 0;
}

/* Category Tags - 2 Per Row - Clean Style */
.category-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.category-tag {
    cursor: pointer;
    position: relative;
}

.category-tag input {
    display: none;
}

.category-tag span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--vf-gray-700);
    transition: all 0.3s;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.category-tag span small {
    font-size: 11px;
    font-weight: 500;
    color: var(--vf-gray-500);
}

.category-tag:hover span {
    background: var(--vf-gray-50);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.category-tag.active span,
.category-tag input:checked + span {
    background: var(--vf-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(238, 29, 72, 0.25);
    transform: translateY(-1px);
}

.category-tag.active span small,
.category-tag input:checked + span small {
    color: rgba(255, 255, 255, 0.9);
}

/* Filter Chips (Radio Buttons) - 3 Columns */
.filter-chips-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

/* Filter Chips (Radio Buttons) - 2 Columns (keeping for backward compatibility) */
.filter-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.filter-chip {
    position: relative;
    cursor: pointer;
}

.filter-chip input {
    display: none;
}

.filter-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    background: var(--vf-gray-50);
    border: 2px solid var(--vf-border);
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--vf-gray-700);
    transition: all 0.3s;
}

.filter-chip span i {
    font-size: 12px;
}

.filter-chip:hover span {
    border-color: var(--vf-primary);
    background: var(--vf-primary-light);
}

.filter-chip.active span,
.filter-chip input:checked + span {
    background: var(--vf-primary);
    border-color: var(--vf-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(238, 29, 72, 0.3);
}

/* Price Inputs - Compact */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.price-input {
    flex: 1;
    padding: 7px 8px;
    border: 2px solid var(--vf-border);
    border-radius: 0;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.price-input:focus {
    border-color: var(--vf-primary);
    box-shadow: 0 0 0 3px rgba(238, 29, 72, 0.1);
    outline: none;
}

.price-separator {
    font-weight: 700;
    color: var(--vf-gray-600);
    font-size: 12px;
}

/* Date Inputs - Compact */
.date-inputs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Price Range Slider - Dollar Sign Style */
.price-slider-container {
    padding: 8px 0;
}

.price-level-display {
    text-align: center;
    margin-bottom: 16px;
}

.price-level-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--vf-primary);
    letter-spacing: 2px;
}

.price-slider-single {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, 
        var(--vf-primary) 0%, 
        var(--vf-primary) 20%, 
        var(--vf-gray-200) 20%, 
        var(--vf-gray-200) 100%);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 12px;
    position: relative;
}

.price-slider-single::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--vf-primary);
    cursor: pointer;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider-single::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--vf-primary);
    cursor: pointer;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider-single:hover::-webkit-slider-thumb {
    background: var(--vf-primary-dark);
    transform: scale(1.1);
}

.price-slider-single:hover::-moz-range-thumb {
    background: var(--vf-primary-dark);
    transform: scale(1.1);
}

.price-level-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--vf-gray-600);
    padding: 0 2px;
}

.price-level-labels span {
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
}

/* Apply Button - Ultra Compact */
.filter-apply-btn {
    width: calc(100% - 24px);
    padding: 11px;
    background: var(--vf-primary);
    border: 2px solid var(--vf-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 12px;
}

.filter-apply-btn:hover {
    background: var(--vf-primary-dark);
    border-color: var(--vf-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 29, 72, 0.35);
}

/* ============================================
   EVENT CARDS - CLEAN & PROFESSIONAL
   ============================================ */

.event-card {
    background: #fff;
    border: 1px solid var(--vf-border);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    border-color: var(--vf-primary);
    box-shadow: 0 8px 24px rgba(238, 29, 72, 0.15);
    transform: translateY(-4px);
}

/* Event Card Image */
.event-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--vf-gray-100);
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.event-card:hover .event-card-image img {
    transform: scale(1.05);
}

.event-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--vf-gray-100) 0%, var(--vf-gray-200) 100%);
}

.event-card-placeholder i {
    font-size: 48px;
    color: var(--vf-gray-300);
}

/* Event Badges */
.event-badge-featured {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: var(--vf-yellow);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.event-badge-price {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    background: var(--vf-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(238, 29, 72, 0.4);
}

.event-badge-free {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    background: var(--vf-green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(71, 195, 99, 0.4);
}

/* Event Card Content */
.event-card-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Location Type Badge - Top Right */
.event-type-badge-top {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    letter-spacing: 0.5px;
    z-index: 2;
}

.event-type-badge-top i {
    font-size: 10px;
}

/* Title Row with Price */
.event-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.event-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.event-card-title a {
    color: var(--vf-gray-900);
    text-decoration: none;
    transition: color 0.3s;
}

.event-card-title a:hover {
    color: var(--vf-primary);
}

.event-price-inline {
    flex-shrink: 0;
    padding: 4px 10px;
    background: var(--vf-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0;
}

.event-price-free {
    background: #10b981;
}

/* Event Meta - Compact */
.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    flex: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--vf-gray-600);
    font-weight: 500;
}

.meta-item i {
    width: 16px;
    text-align: center;
    color: var(--vf-gray-400);
    font-size: 12px;
}

/* Event Card Footer - Compact */
.event-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
    margin-top: auto;
    border-top: 1px solid var(--vf-gray-100);
}

.event-status {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.event-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    background: var(--vf-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    width: 100%;
}

.event-view-btn:hover {
    background: var(--vf-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(238, 29, 72, 0.3);
}

.event-view-btn i {
    font-size: 10px;
    transition: transform 0.3s;
}

.event-view-btn:hover i {
    transform: translateX(3px);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    background: #fff;
    padding: 60px 40px;
    border: 1px solid var(--vf-border);
    border-radius: 0;
    text-align: center;
}

.empty-state i {
    font-size: 64px;
    color: var(--vf-gray-300);
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--vf-gray-900);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 14px;
    color: var(--vf-gray-600);
    margin-bottom: 24px;
}

/* ============================================
   PAGINATION - CLEAN STYLE
   ============================================ */

.pagination_fg {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--vf-border);
    border-radius: 0;
    background: #fff;
    color: var(--vf-gray-700);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover {
    border-color: var(--vf-primary);
    background: var(--vf-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 29, 72, 0.25);
}

.page-item.active .page-link {
    background: var(--vf-primary);
    border-color: var(--vf-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(238, 29, 72, 0.3);
}

.page-item.disabled .page-link {
    color: var(--vf-gray-300);
    cursor: not-allowed;
}

.page-item.disabled .page-link:hover {
    border-color: var(--vf-border);
    background: #fff;
    color: var(--vf-gray-300);
    transform: none;
    box-shadow: none;
}

/* ============================================
   SCROLLBAR
   ============================================ */

#sidebar_fixed::-webkit-scrollbar {
    width: 6px;
}

#sidebar_fixed::-webkit-scrollbar-track {
    background: var(--vf-gray-100);
}

#sidebar_fixed::-webkit-scrollbar-thumb {
    background: var(--vf-gray-300);
    border-radius: 0;
}

#sidebar_fixed::-webkit-scrollbar-thumb:hover {
    background: var(--vf-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    #sidebar_fixed {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    .margin_60_35 {
        padding-top: 30px;
        padding-bottom: 20px;
    }
    
    .page-header-title {
        font-size: 22px;
    }
    
    .filter-chips {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .margin_60_35 {
        padding-top: 20px;
        padding-bottom: 15px;
    }
    
    .page-header {
        gap: 12px;
    }
    
    .page-header-icon {
        width: 40px;
        height: 40px;
    }
    
    .page-header-icon-inner {
        width: 16px;
        height: 16px;
    }
    
    .page-header-title {
        font-size: 18px;
    }
    
    .filter-sidebar-header {
        padding: 16px;
    }
    
    .filter-section {
        padding: 16px;
    }
    
    .event-card-image {
        height: 180px;
    }
    
    .filter-chips {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-separator {
        display: none;
    }
}
