.custom-card {
    width: 100%; /* Ensures the card takes full width of the column */
    height: 300px; /* Set a fixed height for the card */
    display: flex;
    flex-direction: column;
}

.custom-card img {
    height: 150px; /* Set a fixed height for the image */
    object-fit: cover; /* Ensures the image covers the area without distortion */
}

.custom-card .card-body {
    flex-grow: 1; /* Ensures the card body takes the remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers the content vertically */
}

/* Simplified sidebar styles */
.sidebar {
    position: relative;
    overflow: visible !important;
}

.sidebar > div {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.sidebar-column {
    flex-shrink: 0;
    width: 380px;
    position: relative;
    z-index: 10;
}

.main-content-column {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: calc(100% - 380px - 20px);
    margin-left: 20px;
}

/* Custom scrollbar styling */
.sidebar .flex-grow {
    scrollbar-width: thin;
    -ms-overflow-style: none;
}

.sidebar .flex-grow::-webkit-scrollbar {
    width: 4px;
}

.sidebar .flex-grow::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar .flex-grow::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* Content container */
.sidebar-content-container {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    position: relative;
}

/* Style for inputs and selects */
.sidebar input[type="text"],
.sidebar input[type="number"],
.sidebar select {
    background-color: white;
    color: black;
    border: 1px solid #e2e8f0;
}

.sidebar select option {
    background-color: white;
    color: black;
}

/* Ensure inputs and selects have consistent styling */
.sidebar input:focus,
.sidebar select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(10, 86, 148, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .main-content-column {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar > div {
        width: 100% !important;
    }
    
    .sidebar-content-container {
        flex-direction: column;
    }
    
    .sidebar-column {
        width: 100% !important;
    }
    
    .main-content-column {
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-md-1, .col-md-3, .col-md-9, .col-md-11 {
        width: 100% !important;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Filter section animations */
@keyframes highlight-text {
    0% { color: #9ca3af; }
    50% { color: #ffffff; }
    100% { color: #9ca3af; }
}

.filter-section .filter-button {
    border-radius: 5px;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.filter-section .filter-button:hover {
    background-color: rgba(42, 51, 135, 0.5);
}

/* Hide elements when Alpine.js is initializing */
[x-cloak] {
    display: none !important;
}

/* Ensure dropdown menus are fully visible */
.category-item, .subcategory-item {
    width: 100%;
    overflow: visible;
}

/* Make sure subcategory content is visible */
.border-l.border-\[\#2a3387\] {
    overflow: visible;
}

/* Fix for dropdown menus in sidebar */
.border-l.border-\[\#2a3387\] {
    overflow: visible !important;
    padding-right: 5px; /* Add padding to prevent content from being cut off */
}

/* Improve text overflow handling */
.category-item span, .subcategory-item span, .category-item a, .subcategory-item a {
    max-width: 95%;
    overflow: visible;
    word-wrap: break-word;
}

/* ===== NON-SELECTABLE TEXT STYLES ===== */

/* Complete text selection prevention */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    cursor: default;
}

/* Specific classes for different types of content */
.no-select-text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* For headings and titles */
.no-select-heading {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    cursor: default;
}

/* For product information and sensitive content */
.no-select-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    cursor: default;
}

/* For prices and sensitive data */
.no-select-price {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    font-weight: bold;
}

/* For company/brand information */
.no-select-brand {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    cursor: default;
}

/* Global page protection - apply to body for entire page */
.page-no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Exception for input fields and forms */
.page-no-select input,
.page-no-select textarea,
.page-no-select select,
.page-no-select [contenteditable="true"],
.allow-select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
    cursor: text;
}

/* Disable context menu (right-click) */
.no-context-menu {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
.no-context-menu a,
.no-context-menu button,
.no-context-menu input,
.no-context-menu select,
.no-context-menu textarea {
    pointer-events: auto;
}

/* Disable text highlighting on mobile */
.no-select-mobile {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
}

/* Combine multiple protections */
.protected-content {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    cursor: default;
    pointer-events: none;
}

.protected-content a,
.protected-content button {
    pointer-events: auto;
    cursor: pointer;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .no-select,
    .no-select-text,
    .no-select-content,
    .no-select-heading,
    .no-select-price,
    .no-select-brand {
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: rgba(0,0,0,0);
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* ===== CARD HOVER EFFECTS ===== */

/* Card hover animation */
.card-hover {
    transition: all 0.3s ease-in-out;
    transform: translateY(0px);
    border: 1px solid transparent;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.1);
}

/* Enhanced card hover for dashboard cards */
.dashboard-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0px) scale(1);
    border: 1px solid transparent;
}

.dashboard-card-hover:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: rgba(99, 102, 241, 0.2);
}

/* Subtle card hover for smaller cards */
.card-hover-subtle {
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.card-hover-subtle:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.1);
}