/* EverEx International Trading - Professional Styles */

:root {
    /* Professional Color Palette */
    --primary-color: #0a2e42; /* Deep Navy Blue */
    --secondary-color: #005f73; /* Teal Blue */
    --accent-color: #94d2bd; /* Soft Cyan/Mint */
    --highlight-color: #e9d8a6; /* Sand/Gold for highlights */
    --dark-bg: #001219;
    --light-bg: #f8f9fa;
    --text-primary: #0a2e42;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
}

/* Typography Updates */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Elegant for headings */
    color: var(--primary-color);
    font-weight: 600;
}

.page-heading {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Card Styling for Products/Categories */
.custom-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.custom-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.custom-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.custom-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Button Styles */
.btn-primary, .btn-brand-gold {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover, .btn-brand-gold:hover {
    background-color: var(--secondary-color) !important;
}

/* Sidebar Styling */
.sidebar {
    background-color: white;
    border-right: 1px solid var(--border-color);
    height: 100%;
}

.sidebar-column {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

/* Navbar Adjustments (if specific classes exist) */
.bg-brand-black {
    background-color: var(--primary-color) !important;
}

/* Footer Adjustments */
footer {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)) !important;
}

/* Utility Classes */
.text-brand-gold { color: var(--highlight-color) !important; }
.bg-brand-gold { background-color: var(--highlight-color) !important; }

/* Responsive layout tweaks */
@media (min-width: 992px) {
    .main-content-column {
        padding-left: 2rem;
    }
}

/* 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);
}