/* ===== GOOGLE FONTS IMPORTS ===== */
@import url(fonts/manrope-wght.css);

@import url(fonts/family/material-icons.css);

@import url(fonts/family/material-symbols-outlined-wght.css);

@import url(fonts/family/material-icons-outlined.css);

:root {
	--primary: #1269e2;
	--background-light: #f8fafc;
	--background-dark: #f8fafc;
	--font-family: 'Manrope', sans-serif;
	--wl-primary: #2563eb;
	--wl-primary-hover: #1d4ed8;
	--wl-primary-light: rgba(37, 99, 235, 0.1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Manrope', sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

html {
	scroll-behavior: smooth;
}

.dark {
	color-scheme: dark;
}

.dark img {
	background-color: #334155;
}

/* ===== MATERIAL ICONS CONFIGURATION ===== */
.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	font-size: 24px;
	vertical-align: middle;
	line-height: 1;
	user-select: none;
}

.material-symbols-outlined.fill {
	font-variation-settings: 'FILL' 1;
}

.material-icons {
	vertical-align: middle;
	line-height: 1;
	user-select: none;
}

/* Material Icon Size Utilities */
.material-symbols-outlined.text-xs, .material-icons.text-xs {
	font-size: 1rem !important;
}

.material-symbols-outlined.text-sm, .material-icons.text-sm {
	font-size: 1.25rem !important;
}

.material-symbols-outlined.text-base, .material-icons.text-base {
	font-size: 1.5rem !important;
}

.material-symbols-outlined.text-lg, .material-icons.text-lg {
	font-size: 1.75rem !important;
}

.material-symbols-outlined.text-xl, .material-icons.text-xl {
	font-size: 1rem !important;
}

/* Inline icon alignment */
.inline-flex .material-icons, .inline-flex .material-symbols-outlined {
	display: inline-flex;
	align-items: center;
}

/* ===== CUSTOM SELECT DROPDOWN ===== */
.custom-select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image:
		url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1.25em;
	padding-right: 2.5rem;
}

.dark .custom-select {
	background-image:
		url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
}

/* ===== ANIMATIONS ===== */
@keyframes flash-green {
        0%, 100% { background-color: transparent; }
        50% { background-color: rgb(220, 252, 231); }
    }

    @keyframes flash-green-dark {
        0%, 100% { background-color: transparent; }
        50% { background-color: rgba(20, 83, 45, 0.5); }
    }

    @keyframes flash-red {
        0%, 100% { background-color: transparent; }
        50% { background-color: rgb(254, 226, 226); }
    }

    @keyframes flash-red-dark {
        0%, 100% { background-color: transparent; }
        50% { background-color: rgba(127, 29, 29, 0.5); }
    }

    @keyframes fade-in-out {
        0% { opacity: 0; transform: translateY(10px); }
        10% { opacity: 1; transform: translateY(0); }
        90% { opacity: 1; transform: translateY(0); }
        100% { opacity: 0; transform: translateY(10px); }
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    @keyframes ripple {
        to { transform: scale(4); opacity: 0; }
    }

    @keyframes loading {
        0% { background-position: 200% 0; }
        100% { background-position: -200% 0; }
    }

    /* Animation Classes */
    .animate-flash-green {
        animation: flash-green 1s ease-in-out;
    }

    .dark .animate-flash-green {
        animation: flash-green-dark 1s ease-in-out;
    }

    .animate-flash-red {
        animation: flash-red 1s ease-in-out;
    }

    .dark .animate-flash-red {
        animation: flash-red-dark 1s ease-in-out;
    }

    .toast-animation {
        animation: fade-in-out 3s ease-in-out forwards;
    }

    .fade-in {
        animation: fadeIn 0.3s ease-out;
    }

    .slide-down {
        animation: slideDown 0.2s ease-out;
    }

    .mobile-menu-enter {
        animation: slideDown 0.2s ease-out;
    }

    .animate-spin {
        animation: spin 1s linear infinite;
    }

    .animate-pulse {
        animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    }
    
    /* ===== TOAST CONTAINER ===== */
.toast-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-container.top-right {
  top: 24px;
  right: 24px;
  align-items: flex-end;
}

.toast-container.top-center {
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

.toast-container.bottom-right {
  bottom: 24px;
  right: 24px;
  align-items: flex-end;
}

.toast-container.bottom-center {
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

/* Toast Base */
.toast {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 400px;
  min-height: 80px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.closing {
  animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Toast Variants */
.toast.success {
  background: rgba(34, 197, 94, 0.95);
  border: 2px solid rgba(34, 197, 94, 1);
  color: #ffffff;
}

.toast.error {
  background: rgba(239, 68, 68, 0.95);
  border: 2px solid rgba(239, 68, 68, 1);
  color: #ffffff;
}

.toast.info {
  background: rgba(59, 130, 246, 0.95);
  border: 2px solid rgba(59, 130, 246, 1);
  color: #ffffff;
}

.toast.warning {
  background: rgba(245, 158, 11, 0.95);
  border: 2px solid rgba(245, 158, 11, 1);
  color: #ffffff;
}

/* Toast Icon */
.toast-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: #ffffff;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.5;
}

/* Toast Content */
.toast-content {
  flex: 1;
  overflow: hidden;
}

.toast-message {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);

  /* ✅ allow full message */
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  display: block;

  word-break: break-word;
  overflow-wrap: anywhere;
}


.toast-description {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 6px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Toast Close Button */
.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  color: #ffffff;
}

.toast-close:hover {
  background: rgba(255,255,255,0.3);
}

.toast-close svg {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

/* Toast Progress Bar */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(0,0,0,0.15);
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

.toast-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.4);
  transition: width linear;
  width: 100%;
}

/* Loading Spinner */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
    /* ===== HEADER STYLES ===== */
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(10px);
    }

    .dark header {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* Logo */
    header a img,
    .logo-img {
        display: block;
        height: 48px;
        width: auto;
        object-fit: contain;
    }

    /* Navigation */
    nav {
        display: flex;
        /* align-items: center; */
        gap: 0.5rem;
    }

    nav a {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        white-space: nowrap;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        transition: background-color 0.2s;
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .dark .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-link.active {
        background-color: rgba(18, 105, 226, 0.1);
        color: #1269e2;
    }

    .dark .nav-link.active {
        background-color: rgba(18, 105, 226, 0.2);
    }
/* ===== DROPDOWN MENU SYSTEM - UNIFIED ===== */

/* Profile Avatar */
.profile-avatar,
.size-10.rounded-full {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Base Dropdown Styles */
.dropdown-menu,
.user-dropdown-menu,
.mobile-menu-dropdown {
    display: none;
    position: absolute;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .dropdown-menu,
.dark .user-dropdown-menu,
.dark .mobile-menu-dropdown {
    background-color: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Desktop User Dropdown */
.user-dropdown,
.hidden.md\:block .group,
.md\:block .group {
    position: relative;
}

.user-dropdown-menu,
.hidden.md\:block .dropdown-menu,
.md\:block .dropdown-menu {
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 14rem;
    transform: translateY(-10px);
}

/* Mobile Menu Dropdown - CENTER ALIGNED */
.lg\:hidden .group,
.mobile-menu-toggle {
    position: relative;
}

.lg\:hidden .dropdown-menu,
.mobile-menu-dropdown {
    top: calc(100% + 0.5rem);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-10px) !important;
    width: 16rem;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
}

/* Show Dropdowns When Active */
.user-dropdown.active .user-dropdown-menu,
.user-dropdown.active .dropdown-menu,
.group.active .dropdown-menu,
.mobile-menu-toggle.active .mobile-menu-dropdown,
.mobile-menu-toggle.active .dropdown-menu,
.lg\:hidden .group.active .dropdown-menu {
    display: block;
    opacity: 1;
}

/* Active State Transforms */
.user-dropdown.active .user-dropdown-menu,
.user-dropdown.active .dropdown-menu,
.group.active .dropdown-menu:not(.lg\:hidden .dropdown-menu) {
    transform: translateY(0);
}

.lg\:hidden .group.active .dropdown-menu,
.mobile-menu-toggle.active .mobile-menu-dropdown {
    transform: translateX(-50%) translateY(0) !important;
}

/* Text Alignment - Keep Left */
.dropdown-menu a,
.user-dropdown-menu a,
.mobile-menu-dropdown a {
    text-align: left !important;
}

/* Dropdown Animation */
@keyframes dropdownSlide {
    from { opacity: 0; }
    to { opacity: 1; }
}

.group.active .dropdown-menu,
.user-dropdown.active .dropdown-menu,
.user-dropdown.active .user-dropdown-menu,
.mobile-menu-toggle.active .dropdown-menu,
.mobile-menu-toggle.active .mobile-menu-dropdown {
    animation: dropdownSlide 0.2s ease-out;
}

/* Hover Effects */
.dropdown-menu a:hover,
.user-dropdown-menu a:hover,
.mobile-menu-dropdown a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .dropdown-menu a:hover,
.dark .user-dropdown-menu a:hover,
.dark .mobile-menu-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Scrollbar */
.lg\:hidden .dropdown-menu::-webkit-scrollbar,
.mobile-menu-dropdown::-webkit-scrollbar {
    width: 6px;
}

.lg\:hidden .dropdown-menu::-webkit-scrollbar-track,
.mobile-menu-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.lg\:hidden .dropdown-menu::-webkit-scrollbar-thumb,
.mobile-menu-dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.dark .lg\:hidden .dropdown-menu::-webkit-scrollbar-thumb,
.dark .mobile-menu-dropdown::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Icon Rotation */
.user-dropdown button .material-symbols-outlined:last-child,
.group button .material-symbols-outlined:last-child {
    transition: transform 0.2s;
}

.user-dropdown.active button .material-symbols-outlined:last-child,
.group.active button .material-symbols-outlined:last-child {
    transform: rotate(180deg);
}

/* Button Styles */
.user-dropdown button,
.group button,
.mobile-menu-toggle button {
    cursor: pointer;
    user-select: none;
}

/* Text Overflow Protection */
.user-dropdown .flex.flex-col,
.group .flex.flex-col {
    min-width: 0;
}

.user-dropdown h1,
.user-dropdown p,
.group h1,
.group p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Prevent Text Selection */
.dropdown-menu,
.user-dropdown-menu,
.mobile-menu-dropdown {
    user-select: none;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .lg\:hidden .dropdown-menu,
    .mobile-menu-dropdown {
        width: calc(100vw - 2rem);
        max-width: 20rem;
    }
}

@media (max-width: 767px) {
    .user-dropdown-menu,
    .hidden.md\:block .dropdown-menu,
    .md\:block .dropdown-menu {
        min-width: 12rem;
    }
}

/* Body Scroll Lock */
body.menu-open {
    overflow: hidden;
}

/* ===== FIX FOR HEADER ALIGNMENT ===== */
header .flex.items-center.gap-3 {
    align-items: center;
}

/* Ensure user dropdown button is properly aligned */
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== MATERIAL ICONS IN DROPDOWNS ===== */
.user-dropdown-menu .material-symbols-outlined,
.mobile-menu-dropdown .material-symbols-outlined {
    font-size: 1.25rem;
}

/* ===== HOVER STATES FOR DROPDOWN ITEMS ===== */
.user-dropdown-menu .nav-link:hover,
.mobile-menu-dropdown .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .user-dropdown-menu .nav-link:hover,
.dark .mobile-menu-dropdown .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* ===== FIX DROPDOWN POSITION ON SMALL SCREENS ===== */
@media (max-width: 767px) {
    .user-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 12rem;
    }
}

/* ===== ENSURE BUTTONS ARE CLICKABLE ===== */
.user-dropdown button,
.mobile-menu-toggle button {
    cursor: pointer;
    user-select: none;
}

/* ===== PREVENT TEXT SELECTION IN MENUS ===== */
.user-dropdown-menu,
.mobile-menu-dropdown {
    user-select: none;
}

/* ===== EXPAND MORE ICON ROTATION ===== */
.user-dropdown button .material-symbols-outlined:last-child {
    transition: transform 0.2s;
}

.user-dropdown.active button .material-symbols-outlined:last-child {
    transform: rotate(180deg);
}

/* ===== MOBILE MENU ICON TRANSITION ===== */
.mobile-menu-toggle button .material-symbols-outlined {
    transition: transform 0.2s;
}

.mobile-menu-toggle.active button .material-symbols-outlined {
    transform: rotate(90deg);
}

/* ===== FIX PROFILE SECTION ALIGNMENT ===== */
.user-dropdown .flex.flex-col.text-left {
    min-width: 0; /* Prevent text overflow issues */
}

.user-dropdown h1,
.user-dropdown p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== MOBILE MENU USER INFO SECTION ===== */
.mobile-menu-dropdown .flex.items-center.gap-3 {
    align-items: center;
}

/* ===== Z-INDEX HIERARCHY ===== */
header {
    z-index: 1000;
}

.user-dropdown-menu,
.mobile-menu-dropdown {
    z-index: 1001;
}

/* ===== BACKDROP FOR MOBILE MENU (OPTIONAL) ===== */
.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.mobile-menu-toggle.active ~ .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
}
   
    /* ===== BREADCRUMB ===== */
    nav[aria-label="Breadcrumb"] ol {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    nav[aria-label="Breadcrumb"] li {
        display: flex;
        align-items: center;
    }

    nav[aria-label="Breadcrumb"] svg {
        flex-shrink: 0;
        margin: 0 0.5rem;
    }

    /* ===== SIDEBAR STICKY POSITIONING ===== */
    aside.lg\:sticky {
        position: sticky;
        top: 7rem;
        align-self: flex-start;
    }

    @media (min-width: 1024px) {
        aside.lg\:sticky {
            max-height: calc(100vh - 8.5rem);
            overflow-y: auto;
        }
    }

    aside.lg\:sticky::-webkit-scrollbar {
        width: 6px;
    }

    aside.lg\:sticky::-webkit-scrollbar-track {
        background: transparent;
    }

    aside.lg\:sticky::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

    .dark aside.lg\:sticky::-webkit-scrollbar-thumb {
        background: #475569;
    }

    /* ===== TABS NAVIGATION ===== */
    nav[aria-label="Tabs"] {
        display: flex;
        margin-bottom: -1px;
    }

    nav[aria-label="Tabs"] a {
        flex-shrink: 0;
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease;
        position: relative;
    }

    nav[aria-label="Tabs"] a span.inline-block {
        display: inline-block;
        vertical-align: middle;
    }

    .tabs-container {
        display: flex;
        border-bottom: 1px solid #e2e8f0;
    }

    .dark .tabs-container {
        border-bottom-color: #334155;
    }

    .tab-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
        padding-bottom: 0.8125rem;
        border-bottom: 3px solid transparent;
        font-size: 0.875rem;
        font-weight: 700;
        letter-spacing: 0.015em;
        transition: all 0.2s;
    }

    .tab-link.active {
        border-bottom-color: #1269e2;
        color: #1269e2;
    }

    .tab-link:not(.active) {
        color: #64748b;
    }

    .tab-link:not(.active):hover {
        color: #475569;
    }

    .border-primary {
        border-color: var(--primary) !important;
        color: var(--primary) !important;
    }

    /* ===== CARDS & GRIDS ===== */
    .grid {
        display: grid;
        gap: 2rem;
    }

    .grid-cols-1 {
        grid-template-columns: 1fr;
    }

    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    @media (min-width: 640px) {
        .grid-cols-1.sm\:grid-cols-2 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
        
        .grid-cols-1.sm\:grid-cols-3 {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
        
        .sm\:col-span-1 {
            grid-column: span 1 / span 1;
        }
        
        .sm\:col-span-2 {
            grid-column: span 2 / span 2;
        }
    }

    @media (min-width: 768px) {
        .md\:grid-cols-12 {
            grid-template-columns: repeat(12, minmax(0, 1fr));
        }
        
        .md\:col-span-4 {
            grid-column: span 4 / span 4;
        }
        
        .md\:col-span-8 {
            grid-column: span 8 / span 8;
        }
    }

    @media (min-width: 1024px) {
        .grid-cols-1.lg\:grid-cols-4 {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
        
        .grid-cols-1.lg\:grid-cols-12 {
            grid-template-columns: repeat(12, minmax(0, 1fr));
        }
        
        .lg\:col-span-3 {
            grid-column: span 3 / span 3;
        }
        
        .lg\:col-span-9 {
            grid-column: span 9 / span 9;
        }
    }

    .grid-auto-fit {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Card Hover Effects */
    .card-hover {
        transition: all 0.3s ease;
    }

    .card-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .dark .card-hover:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    }

    .hover\:shadow-xl:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .dark .hover\:shadow-xl:hover {
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    }

    .hover\:-translate-y-1:hover {
        transform: translateY(-0.25rem);
    }

    .hover\:scale-\[1\.01\]:hover {
        transform: scale(1.01);
    }

    /* ===== BID CARDS ===== */
    .bid-card {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        border-radius: 0.75rem;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        background-color: white;
        transition: box-shadow 0.2s;
    }

    .dark .bid-card {
        background-color: #0f172a;
        border-color: #1e293b;
    }

    .bid-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .bid-card-image {
        width: 100%;
        height: 8rem;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 0.5rem;
    }

    .bid-card-title {
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bid-card-lot {
        font-size: 0.75rem;
        color: #64748b;
    }

    .dark .bid-card-lot {
        color: #94a3b8;
    }

    .bid-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    @media (min-width: 640px) {
        .bid-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .bid-grid {
            grid-template-columns: repeat(4, 1fr);
        }
        
        .empty-state-full {
            grid-column: span 4;
        }
    }

    /* ===== AUCTION CARDS ===== */
    .bg-white.rounded-2xl,
    .dark .bg-slate-800.rounded-2xl {
        transition: all 0.3s ease;
    }

    .bg-white.rounded-2xl:hover,
    .dark .bg-slate-800.rounded-2xl:hover {
        transform: translateY(-4px) scale(1.01);
    }

    button[title="Add to Watchlist"],
    button[title="Remove from Watchlist"] {
        transition: all 0.2s ease;
    }

    button[title="Add to Watchlist"]:hover,
    button[title="Remove from Watchlist"]:hover {
        transform: scale(1.1);
    }

    .bg-white.rounded-2xl img,
    .dark .bg-slate-800.rounded-2xl img {
        transition: transform 0.3s ease;
    }

    .bg-white.rounded-2xl:hover img,
    .dark .bg-slate-800.rounded-2xl:hover img {
        transform: scale(1.05);
    }

    .h-2.bg-slate-200 div {
        transition: width 0.3s ease;
    }

    /* ===== PROFILE PAGE ===== */
    .profile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }

    @media (min-width: 640px) {
        .profile-header {
            flex-direction: row;
        }
    }

    .edit-avatar-btn {
        position: absolute;
        bottom: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        background-color: #1269e2;
        border-radius: 9999px;
        color: white;
        border: 2px solid white;
        transition: background-color 0.2s;
        cursor: pointer;
    }

    .dark .edit-avatar-btn {
        border-color: #1e293b;
    }

    .edit-avatar-btn:hover {
        background-color: #0f5bc9;
    }

    .profile-name {
        font-size: 1.875rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.025em;
        text-align: center;
    }

    @media (min-width: 640px) {
        .profile-name {
            text-align: left;
        }
    }

    .profile-email {
        font-size: 1rem;
        text-align: center;
    }

    @media (min-width: 640px) {
        .profile-email {
            text-align: left;
        }
    }

    .profile-section {
        background-color: white;
        padding: 1.5rem;
        border-radius: 0.75rem;
        border: 1px solid #e2e8f0;
    }

    .dark .profile-section {
        background-color: rgba(15, 23, 42, 0.5);
        border-color: #1e293b;
    }

    .profile-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .profile-section-title {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .status-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    @media (min-width: 640px) {
        .status-grid {
            grid-template-columns: repeat(2, 1fr);
            column-gap: 1.5rem;
        }
    }

    .status-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .status-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #64748b;
    }

    .dark .status-label {
        color: #94a3b8;
    }

    .status-value {
        font-size: 0.875rem;
        font-weight: 500;
    }

    .verification-badge {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.125rem 0.5rem;
        border-radius: 9999px;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .verification-badge.completed {
        background-color: rgba(34, 197, 94, 0.1);
        color: #15803d;
    }

    .dark .verification-badge.completed {
        background-color: rgba(34, 197, 94, 0.2);
        color: #4ade80;
    }

    .details-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    @media (min-width: 640px) {
        .details-grid {
            grid-template-columns: repeat(2, 1fr);
            column-gap: 1.5rem;
        }
    }

    .detail-item label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: #64748b;
        margin-bottom: 0.25rem;
    }

    .dark .detail-item label {
        color: #94a3b8;
    }

    .detail-item p {
        font-size: 1rem;
    }

    .address-section h3 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .address-section p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .kyc-document-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem;
        border-radius: 0.5rem;
        background-color: #f8fafc;
    }

    @media (min-width: 640px) {
        .kyc-document-card {
            flex-direction: row;
            align-items: center;
        }
    }

    .dark .kyc-document-card {
        background-color: rgba(30, 41, 59, 0.5);
    }

    .kyc-document-card p {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

    .kyc-status {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
    }

    .kyc-status.verified {
        color: #16a34a;
    }

    .dark .kyc-status.verified {
        color: #4ade80;
    }

    .kyc-status.pending {
        color: #f97316;
    }

    .dark .kyc-status.pending {
        color: #fb923c;
    }

    .view-document-btn {
        font-size: 0.875rem;
        font-weight: 500;
        color: #1269e2;
        text-decoration: none;
        transition: text-decoration 0.2s;
    }

    .view-document-btn:hover {
        text-decoration: underline;
    }

    .upload-document-btn {
        height: 2.25rem;
        padding: 0 1rem;
        border-radius: 0.375rem;
        background-color: #1269e2;
        color: white;
        font-size: 0.875rem;
        font-weight: 700;
        border: none;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .upload-document-btn:hover {
        background-color: #0f5bc9;
    }

    .settings-divider {
        height: 1px;
        background-color: #e2e8f0;
    }

    .dark .settings-divider {
        background-color: #1e293b;
    }

    .settings-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        text-decoration: none;
        transition: all 0.2s;
    }

    .settings-link h3 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .settings-link p {
        font-size: 0.875rem;
        color: #64748b;
    }

    .dark .settings-link p {
        color: #94a3b8;
    }

    .settings-link .material-symbols-outlined {
        color: #94a3b8;
        transition: color 0.2s;
    }

    .settings-link:hover .material-symbols-outlined {
        color: #1269e2;
    }

    /* ===== EMPTY STATE ===== */
    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        padding: 2rem;
        min-height: 16rem;
        text-align: center;
        border-radius: 0.75rem;
        border: 2px dashed #cbd5e1;
        background-color: #f1f5f9;
    }

    .dark .empty-state {
        background-color: #0f172a;
        border-color: #334155;
        color: #94a3b8;
    }

    .empty-state-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        border-radius: 9999px;
        background-color: rgba(18, 105, 226, 0.1);
    }

    .empty-state-title {
    
        font-size: 1.125rem;
        font-weight: 700;
    }

    .empty-state-description {
        font-size: 0.875rem;
        color: #64748b;
        max-width: 28rem;
    }

    .dark .empty-state-description {
        color: #94a3b8;
    }

    .empty-state-button {
        margin-top: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        background-color: #1269e2;
        color: white;
        font-size: 0.875rem;
        font-weight: 600;
        border: none;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .empty-state-button:hover {
        background-color: #0f5bc9;
    }

    /* ===== FORMS ===== */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-label {
        display: block;
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #1e293b;
    }

    .dark .form-label {
        color: #e2e8f0;
    }

    .form-input,
    .form-textarea,
    .form-select {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        background-color: white;
        transition: all 0.2s;
    }

    .dark .form-input,
    .dark .form-textarea,
    .dark .form-select {
        background-color: #0f172a;
        border-color: #334155;
        color: #e2e8f0;
    }

    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        outline: none;
        border-color: #1269e2;
        box-shadow: 0 0 0 3px rgba(18, 105, 226, 0.1);
    }

    .form-input:disabled,
    .form-textarea:disabled,
    .form-select:disabled {
        background-color: #f1f5f9;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .dark .form-input:disabled,
    .dark .form-textarea:disabled,
    .dark .form-select:disabled {
        background-color: #1e293b;
    }

    .form-error {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.75rem;
        color: #dc2626;
    }

    .dark .form-error {
        color: #f87171;
    }

    .form-hint {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.75rem;
        color: #64748b;
    }

    .dark .form-hint {
        color: #94a3b8;
    }

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(18, 105, 226, 0.1);
    }

    .dark input:focus,
    .dark select:focus,
    .dark textarea:focus {
        box-shadow: 0 0 0 3px rgba(18, 105, 226, 0.2);
    }

    input[type="checkbox"],
    input[type="radio"] {
        cursor: pointer;
    }

    input[type="checkbox"]:checked,
    input[type="radio"]:checked {
        background-color: var(--primary);
        border-color: var(--primary);
    }

    /* ===== BUTTONS ===== */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 600;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
        text-decoration: none;
        white-space: nowrap;
    }

    .btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    button {
        user-select: none;
        -webkit-user-select: none;
    }

    .btn-primary {
        background-color: #1269e2;
        color: white;
    }

    .btn-primary:hover:not(:disabled) {
        background-color: #0f5bc9;
    }

    .btn-secondary {
        background-color: #64748b;
        color: white;
    }

    .btn-secondary:hover:not(:disabled) {
        background-color: #475569;
    }

    .btn-outline {
        background-color: transparent;
        border: 1px solid #e2e8f0;
        color: #1e293b;
    }

    .dark .btn-outline {
        border-color: #334155;
        color: #e2e8f0;
    }

    .btn-outline:hover:not(:disabled) {
        background-color: #f8fafc;
    }

    .dark .btn-outline:hover:not(:disabled) {
        background-color: #1e293b;
    }

    .btn-ghost {
        background-color: transparent;
        color: #1e293b;
    }

    .dark .btn-ghost {
        color: #e2e8f0;
    }

    .btn-ghost:hover:not(:disabled) {
        background-color: #f1f5f9;
    }

    .dark .btn-ghost:hover:not(:disabled) {
        background-color: #1e293b;
    }

    .btn-danger {
        background-color: #dc2626;
        color: white;
    }

    .btn-danger:hover:not(:disabled) {
        background-color: #b91c1c;
    }

    .btn-success {
        background-color: #16a34a;
        color: white;
    }

    .btn-success:hover:not(:disabled) {
        background-color: #15803d;
    }

    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .btn-icon {
        padding: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .btn-icon-sm {
        padding: 0.25rem;
        width: 2rem;
        height: 2rem;
    }

    /* ===== BADGES ===== */
    .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 600;
        line-height: 1;
    }

    .badge-primary {
        background-color: rgba(18, 105, 226, 0.1);
        color: #1269e2;
    }

    .dark .badge-primary {
        background-color: rgba(18, 105, 226, 0.2);
    }

    .badge-success {
        background-color: rgba(34, 197, 94, 0.1);
        color: #15803d;
    }

    .dark .badge-success {
        background-color: rgba(34, 197, 94, 0.2);
        color: #4ade80;
    }

    .badge-warning {
        background-color: rgba(245, 158, 11, 0.1);
        color: #d97706;
    }

    .dark .badge-warning {
        background-color: rgba(245, 158, 11, 0.2);
        color: #fbbf24;
    }

    .badge-danger {
        background-color: rgba(239, 68, 68, 0.1);
        color: #dc2626;
    }

    .dark .badge-danger {
        background-color: rgba(239, 68, 68, 0.2);
        color: #f87171;
    }

    .badge-info {
        background-color: rgba(59, 130, 246, 0.1);
        color: #2563eb;
    }

    .dark .badge-info {
        background-color: rgba(59, 130, 246, 0.2);
        color: #60a5fa;
    }

    .badge-sold {
        color: #166534;
        background-color: #dcfce7;
    }

    .dark .badge-sold {
        color: #4ade80;
        background-color: rgba(22, 101, 52, 0.3);
    }

    .badge-unsold {
        color: #991b1b;
        background-color: #fee2e2;
    }

    .dark .badge-unsold {
        color: #f87171;
        background-color: rgba(153, 27, 27, 0.3);
    }

    /* ===== MODALS ===== */
    .modal-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        padding: 1rem;
    }

    .modal-content {
        background-color: white;
        border-radius: 0.75rem;
        max-width: 32rem;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }

    .dark .modal-content {
        background-color: #0f172a;
    }

    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .dark .modal-header {
        border-bottom-color: #334155;
    }

    .modal-title {
        font-size: 1.25rem;
        font-weight: 700;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 0.75rem;
        padding: 1.5rem;
        border-top: 1px solid #e2e8f0;
    }

    .dark .modal-footer {
        border-top-color: #334155;
    }

    /* ===== ALERTS ===== */
    .alert {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
    }

    .alert-info {
        background-color: rgba(59, 130, 246, 0.1);
        color: #1e40af;
    }

    .dark .alert-info {
        background-color: rgba(59, 130, 246, 0.2);
        color: #93c5fd;
    }

    .alert-success {
        background-color: rgba(34, 197, 94, 0.1);
        color: #15803d;
    }

    .dark .alert-success {
        background-color: rgba(34, 197, 94, 0.2);
        color: #86efac;
    }

    .alert-warning {
        background-color: rgba(245, 158, 11, 0.1);
        color: #d97706;
    }

    .dark .alert-warning {
        background-color: rgba(245, 158, 11, 0.2);
        color: #fcd34d;
    }

    .alert-danger {
        background-color: rgba(239, 68, 68, 0.1);
        color: #dc2626;
    }

    .dark .alert-danger {
        background-color: rgba(239, 68, 68, 0.2);
        color: #fca5a5;
    }

    /* ===== LOADING STATES ===== */
    .skeleton {
        background: linear-gradient(
            90deg,
            #f1f5f9 0%,
            #e2e8f0 50%,
            #f1f5f9 100%
        );
        background-size: 200% 100%;
        animation: loading 1.5s ease-in-out infinite;
        border-radius: 0.25rem;
    }

    .dark .skeleton {
        background: linear-gradient(
            90deg,
            #1e293b 0%,
            #334155 50%,
            #1e293b 100%
        );
    }

    .spinner {
        width: 1.5rem;
        height: 1.5rem;
        border: 2px solid #e2e8f0;
        border-top-color: #1269e2;
        border-radius: 9999px;
        animation: spin 0.8s linear infinite;
    }

    .dark .spinner {
        border-color: #334155;
        border-top-color: #1269e2;
    }

    .loading {
        opacity: 0.6;
        pointer-events: none;
    }

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid var(--primary);
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 0.6s linear infinite;
    }

    /* ===== PROGRESS BARS ===== */
    .progress-bar {
        width: 100%;
        height: 0.5rem;
        background-color: #e2e8f0;
        border-radius: 9999px;
        overflow: hidden;
    }

    .dark .progress-bar {
        background-color: #334155;
    }

    .progress-fill {
        height: 100%;
        background-color: #1269e2;
        border-radius: 9999px;
        transition: width 0.3s ease;
    }

    /* ===== TOOLTIPS ===== */
    .tooltip {
        position: relative;
    }

    .tooltip-content {
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-0.5rem);
        padding: 0.5rem 0.75rem;
        background-color: #1e293b;
        color: white;
        font-size: 0.75rem;
        border-radius: 0.375rem;
        white-space: nowrap;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s;
        pointer-events: none;
        z-index: 1000;
    }

    .tooltip:hover .tooltip-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(-0.25rem);
    }

    .tooltip-content::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 4px solid transparent;
        border-top-color: #1e293b;
    }

    /* ===== UTILITY CLASSES ===== */
    .truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .line-clamp-2 {
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .line-clamp-3 {
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .scrollbar-hide {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .scrollbar-hide::-webkit-scrollbar {
        display: none;
    }

    .transition-all {
        transition-property: all;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 300ms;
    }

    .transition-colors {
        transition-property: color, background-color, border-color;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 150ms;
    }

    .transition-transform {
        transition: transform 0.2s;
    }

    .backdrop-blur-sm {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .sticky {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .max-w-full {
        max-width: 100%;
    }

    .aspect-square {
        aspect-ratio: 1 / 1;
    }

    .aspect-video {
        aspect-ratio: 16 / 9;
    }

    .will-change-transform {
        will-change: transform;
    }

    .will-change-opacity {
        will-change: opacity;
    }

    /* ===== ACCESSIBILITY ===== */
    *:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    .skip-to-main {
        position: absolute;
        left: -9999px;
        z-index: 999;
        padding: 1rem;
        background-color: var(--primary);
        color: white;
        text-decoration: none;
    }

    .skip-to-main:focus {
        left: 50%;
        transform: translateX(-50%);
        top: 1rem;
    }

    /* ===== NOTIFICATION BADGE ===== */
    .notification-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background-color: #ef4444;
        color: white;
        border-radius: 9999px;
        width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 600;
    }

    /* ===== SCROLLBAR STYLING ===== */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f5f9;
    }

    ::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    .dark ::-webkit-scrollbar-track {
        background: #1e293b;
    }

    .dark ::-webkit-scrollbar-thumb {
        background: #475569;
        border-radius: 4px;
    }

    .dark ::-webkit-scrollbar-thumb:hover {
        background: #64748b;
    }

    /* ===== RESPONSIVE UTILITIES ===== */
    @media (max-width: 639px) {
        .sm\:hidden {
            display: none !important;
        }
    }

    @media (max-width: 767px) {
        .md\:hidden {
            display: none !important;
        }
        
        button, a {
            min-height: 44px;
            min-width: 44px;
        }
    }

    @media (max-width: 1023px) {
        .lg\:hidden {
            display: block !important;
        }
    }

    @media (min-width: 640px) {
        .sm\:block {
            display: block !important;
        }
        
        .sm\:flex {
            display: flex !important;
        }
    }

    @media (min-width: 768px) {
        .md\:block {
            display: block !important;
        }
        
        .md\:flex {
            display: flex !important;
        }
    }

    @media (min-width: 1024px) {
        .lg\:flex {
            display: flex !important;
        }
    }

    /* ===== SAFE AREA INSETS ===== */
    @supports (padding: max(0px)) {
        .safe-top {
            padding-top: max(0px, env(safe-area-inset-top));
        }
        
        .safe-bottom {
            padding-bottom: max(0px, env(safe-area-inset-bottom));
        }
        
        .safe-left {
            padding-left: max(0px, env(safe-area-inset-left));
        }
        
        .safe-right {
            padding-right: max(0px, env(safe-area-inset-right));
        }
    }

    /* ===== PRINT STYLES ===== */
    @media print {
        header,
        footer,
        .no-print {
            display: none !important;
        }
    }

    /* ===== CUSTOM PAGE STYLES ===== */
    .bg-primary-blue {
        background-color: #2563EB;
    }

    .hover\:bg-primary-blue-hover:hover {
        background-color: #1D4ED8;
    }

    .shadow-interactive {
        box-shadow: 0 0 0 3px var(--tw-shadow-color);
    }

    .shadow-primary-blue-focus {
        --tw-shadow-color: rgba(37, 99, 235, 0.2);
    }

    .bg-neutral-900 {
        background-color: #18181B;
    }

    .bg-neutral-800 {
        background-color: #27272A;
    }

    .border-neutral-800 {
        border-color: #27272A;
    }

    .border-neutral-200 {
        border-color: #E4E4E7;
    }

    .text-neutral-400 {
        color: #A1A1AA;
    }

    .text-custom-primary {
        color: #000000;
    }

    .dark .text-custom-primary {
        color: #FFFFFF;
    }

    /* ========================================
    K99X AUCTIONS - WATCHLIST PAGE STYLES
    External CSS for Watchlist Page
    ======================================== */

    /* ===== MATERIAL ICONS CONFIGURATION ===== */
    .material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        font-size: 24px;
        vertical-align: middle;
        line-height: 1;
        user-select: none;
    }

    .material-symbols-outlined.fill {
        font-variation-settings: 'FILL' 1;
    }

    /* ===== BASE STYLES ===== */
    body {
        font-family: 'Manrope', sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* ===== HEADER STYLES ===== */
    header {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(10px);
    }

    .logo-img {
        display: block;
        height: 48px;
        width: auto;
        object-fit: contain;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        transition: background-color 0.2s;
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .dark .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-link.active {
        background-color: rgba(18, 105, 226, 0.1);
        color: #1269e2;
    }

    .dark .nav-link.active {
        background-color: rgba(18, 105, 226, 0.2);
    }

    /* ===== DROPDOWN MENUS ===== */
    .group:focus-within .group-focus-within\:block {
        display: block;
    }

    /* ===== WATCHLIST PAGE WRAPPER ===== */
    .wl-page-wrapper {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    /* ===== MAIN CONTENT ===== */
    .wl-main-content {
        flex: 1;
    }

    .wl-container {
        padding: 1.5rem;
        max-width: 1400px;
        margin: 0 auto;
    }

    @media (min-width: 1024px) {
        .wl-container {
            padding: 2.5rem;
        }
    }

    /* ===== PAGE HEADER ===== */
    .wl-page-header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 1rem;
        align-items: center;
    }

    .wl-page-header-text {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .wl-page-title {
        font-size: 1.875rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.2;
        letter-spacing: -0.025em;
    }

    .dark .wl-page-title {
        color: white;
    }

    .wl-page-subtitle {
        font-size: 1rem;
        color: #64748b;
    }

    .dark .wl-page-subtitle {
        color: #94a3b8;
    }

    /* ===== FILTERS BAR ===== */
    .wl-filters-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.75rem 0;
    }

    .dark .wl-filters-bar {
        border-top-color: #1e293b;
        border-bottom-color: #1e293b;
    }

    .wl-filters-left {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem;
    }

    .wl-filter-select {
        border-radius: 0.5rem;
        border: 1px solid #cbd5e1;
        background-color: white;
        padding: 0.5rem 2rem 0.5rem 0.75rem;
        font-size: 0.875rem;
        color: #334155;
        cursor: pointer;
    }

    .dark .wl-filter-select {
        border-color: #334155;
        background-color: #1e293b;
        color: #cbd5e1;
    }

    .wl-filter-select:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    /* Custom Select Dropdown Arrow */
    .custom-select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        background-size: 1.25em;
        padding-right: 2.5rem;
    }

    .dark .custom-select {
        background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    }

    /* ===== TOGGLE SWITCH ===== */
    .wl-toggle-wrapper {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .wl-toggle-label {
        font-size: 0.875rem;
        color: #475569;
    }

    .dark .wl-toggle-label {
        color: #94a3b8;
    }

    .wl-toggle-switch {
        position: relative;
        display: inline-flex;
        height: 1.5rem;
        width: 2.75rem;
        flex-shrink: 0;
        cursor: pointer;
        border-radius: 9999px;
        border: 2px solid transparent;
        background-color: #cbd5e1;
        transition: background-color 0.2s;
    }

    .dark .wl-toggle-switch {
        background-color: #334155;
    }

    .wl-toggle-switch.wl-active {
        background-color: #2563eb;
    }

    .wl-toggle-switch:focus {
        outline: none;
        box-shadow: 0 0 0 2px white, 0 0 0 4px #2563eb;
    }

    .wl-toggle-slider {
        pointer-events: none;
        display: inline-block;
        height: 1.25rem;
        width: 1.25rem;
        transform: translateX(0);
        border-radius: 9999px;
        background-color: white;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
        transition: transform 0.2s;
    }

    .wl-toggle-switch.wl-active .wl-toggle-slider {
        transform: translateX(1.25rem);
    }

    /* ===== ALERT BANNER ===== */
    .wl-alert-banner {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
        border-radius: 0.5rem;
        background-color: rgba(255, 237, 213, 0.5);
        border: 1px solid #fed7aa;
    }

    .dark .wl-alert-banner {
        background-color: rgba(154, 52, 18, 0.2);
        border-color: rgba(154, 52, 18, 0.5);
    }

    .wl-alert-banner .material-symbols-outlined {
        color: #f97316;
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .dark .wl-alert-banner .material-symbols-outlined {
        color: #fb923c;
    }

    .wl-alert-text {
        font-size: 0.875rem;
        font-weight: 500;
        color: #9a3412;
    }

    .dark .wl-alert-text {
        color: #fed7aa;
    }

    .wl-alert-highlight {
        font-weight: 700;
    }

    .wl-alert-button {
        margin-left: auto;
        font-size: 0.875rem;
        font-weight: 700;
        color: #9a3412;
        background: none;
        border: none;
        cursor: pointer;
        text-decoration: underline;
        flex-shrink: 0;
    }

    .dark .wl-alert-button {
        color: #fed7aa;
    }

    .wl-alert-button:hover {
        opacity: 0.8;
    }

    /* ===== CARDS GRID ===== */
    .wl-cards-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    @media (min-width: 640px) {
        .wl-cards-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .wl-cards-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (min-width: 1280px) {
        .wl-cards-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    /* ===== AUCTION CARDS ===== */
    .wl-auction-card {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        border-radius: 0.75rem;
        border: 1px solid #e2e8f0;
        background-color: white;
        overflow: hidden;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .dark .wl-auction-card {
        border-color: #1e293b;
        background-color: rgba(15, 23, 42, 0.5);
    }

    .wl-auction-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .wl-auction-card.wl-outbid {
        border: 2px solid #fb923c;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .dark .wl-auction-card.wl-outbid {
        border-color: #f97316;
    }

    /* ===== CARD IMAGE ===== */
    .wl-card-image-wrapper {
        position: relative;
    }

    .wl-card-image {
        width: 100%;
        aspect-ratio: 4 / 3;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .wl-watchlist-star {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.4);
        color: white;
        border: none;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .wl-watchlist-star:hover {
        background-color: #2563eb;
    }

    .wl-watchlist-star .material-symbols-outlined {
        font-size: 1.125rem;
    }

    /* ===== STATUS BADGES ===== */
    .wl-status-badge {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 700;
        color: white;
        border-top-right-radius: 0.5rem;
    }

    .wl-status-badge.wl-ending-soon {
        background-color: #ef4444;
    }

    .wl-status-badge.wl-live {
        background-color: #16a34a;
    }

    .wl-status-badge.wl-outbid-badge {
        background-color: #f97316;
    }

    /* ===== CARD CONTENT ===== */
    .wl-card-content {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        padding-top: 0.5rem;
    }

    .wl-card-title {
        font-size: 1rem;
        font-weight: 700;
        color: #1e293b;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dark .wl-card-title {
        color: white;
    }

    .wl-bid-info {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-top: 0.5rem;
    }

    .wl-bid-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #64748b;
    }

    .dark .wl-bid-label {
        color: #94a3b8;
    }

    .wl-bid-amount {
        font-size: 1.125rem;
        font-weight: 700;
        color: #0f172a;
    }

    .dark .wl-bid-amount {
        color: white;
    }

    .wl-time-info {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-top: 0.25rem;
    }

    .wl-time-label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #64748b;
    }

    .dark .wl-time-label {
        color: #94a3b8;
    }

    .wl-countdown-timer {
        font-size: 1rem;
        font-weight: 600;
        color: #475569;
    }

    .dark .wl-countdown-timer {
        color: #cbd5e1;
    }

    .wl-countdown-timer.wl-ending {
        color: #dc2626;
    }

    .dark .wl-countdown-timer.wl-ending {
        color: #f87171;
    }

    /* ===== PRIMARY BUTTON ===== */
    .wl-btn-primary {
        width: 100%;
        margin-top: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 2.5rem;
        border-radius: 0.5rem;
        background-color: #2563eb;
        color: white;
        font-size: 0.875rem;
        font-weight: 700;
        border: none;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .wl-btn-primary:hover {
        background-color: #1d4ed8;
    }

    .wl-btn-primary:active {
        transform: scale(0.98);
    }

    /* ===== FOOTER ===== */
    .wl-footer {
        background-color: #1e293b;
        color: white;
        margin-top: auto;
    }

    .dark .wl-footer {
        background-color: #0f172a;
    }

    .wl-footer-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 3rem 1rem;
    }

    @media (min-width: 640px) {
        .wl-footer-container {
            padding: 3rem 1.5rem;
        }
    }

    @media (min-width: 1024px) {
        .wl-footer-container {
            padding: 3rem 2rem;
        }
    }

    .wl-footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    @media (min-width: 768px) {
        .wl-footer-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    .wl-footer-logo-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .wl-footer-logo {
        height: 3rem;
        width: auto;
        object-fit: contain;
    }

    .wl-footer-description {
        margin-top: 1rem;
        font-size: 0.875rem;
        color: #cbd5e1;
    }

    .wl-footer-heading {
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .wl-footer-links {
        margin-top: 1rem;
        list-style: none;
    }

    .wl-footer-links li {
        margin-bottom: 0.5rem;
    }

    .wl-footer-links a {
        font-size: 0.875rem;
        color: #cbd5e1;
        text-decoration: none;
        transition: color 0.2s;
    }

    .wl-footer-links a:hover {
        color: white;
    }

    .wl-footer-contact {
        margin-top: 1rem;
        list-style: none;
    }

    .wl-footer-contact li {
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }

    .wl-footer-contact .material-symbols-outlined {
        margin-right: 0.5rem;
        font-size: 1rem;
    }

    .wl-social-links {
        display: flex;
        margin-top: 1rem;
        gap: 1rem;
    }

    .wl-social-links a {
        color: #cbd5e1;
        transition: color 0.2s;
    }

    .wl-social-links a:hover {
        color: white;
    }

    .wl-social-links svg {
        height: 1.5rem;
        width: 1.5rem;
    }

    .wl-footer-bottom {
        margin-top: 2rem;
        border-top: 1px solid #334155;
        padding-top: 2rem;
        text-align: center;
    }

    .wl-footer-bottom p {
        font-size: 0.875rem;
        color: #94a3b8;
    }
    /* ==============================================
    WALLET PAGE - EXTERNAL STYLES
    ============================================== */

    /* Base Layout */
    .layout-container {
        display: flex;
        min-height: 100vh;
        flex-direction: column;
        flex-grow: 1;
    }

    .layout-content-container {
        display: flex;
        flex-direction: column;
        max-width: 960px;
        flex: 1;
        gap: 2rem;
    }

    /* Page Header */
    .wallet-page-header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 1rem;
    }

    .wallet-page-title {
        font-size: 2.25rem;
        font-weight: 900;
        line-height: 1.2;
        letter-spacing: -0.033em;
        min-width: 18rem;
    }

    /* Wallet Balance Card */
    .wallet-balance-card {
        padding: 1rem;
    }

    .wallet-balance-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        border-radius: 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    @media (min-width: 768px) {
        .wallet-balance-wrapper {
            flex-direction: row;
        }
    }

    .wallet-balance-content {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.5rem;
        padding: 1.5rem;
        color: white;
    }

    .wallet-balance-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .wallet-balance-icon {
        font-size: 2.25rem !important;
        color: rgba(255, 255, 255, 0.8);
    }

    .wallet-balance-label {
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.8);
    }

    .wallet-balance-amount {
        font-size: 2.25rem;
        font-weight: 900;
        line-height: 1.2;
        letter-spacing: -0.033em;
        color: white;
    }

    .wallet-balance-actions {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 1rem;
        padding: 1.5rem;
    }

    @media (min-width: 640px) {
        .wallet-balance-actions {
            flex-direction: row;
        }
    }

    .wallet-action-button {
        display: flex;
        width: 100%;
        min-width: 84px;
        max-width: 480px;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: 0.5rem;
        height: 3rem;
        padding: 0 1.25rem;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1.5;
        letter-spacing: 0.015em;
        gap: 0.5rem;
        transition: all 0.2s;
    }

    @media (min-width: 640px) {
        .wallet-action-button {
            width: auto;
        }
    }

    .wallet-action-button.primary {
        background-color: white;
        color: #f27f0d;
    }

    .wallet-action-button.primary:hover {
        background-color: #f9fafb;
        transform: translateY(-1px);
    }

    .wallet-action-button.secondary {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .wallet-action-button.secondary:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    .wallet-action-button span.material-symbols-outlined {
        font-size: 1.25rem;
    }

    .wallet-action-button .truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Transaction History Section */
    .transaction-section-header {
        padding: 1.25rem 1rem 0.75rem;
        border-top: 1px solid #e5e7eb;
        margin-top: 1rem;
    }

    .dark .transaction-section-header {
        border-top-color: #374151;
    }

    .transaction-section-title {
        font-size: 1.375rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.015em;
    }

    /* Filter Bar */
    .transaction-filter-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0 1rem;
    }

    .transaction-filter-buttons {
        display: flex;
        gap: 0.5rem;
    }

    .filter-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        font-weight: 600;
        border-radius: 9999px;
        cursor: pointer;
        transition: all 0.2s;
    }

    .filter-button.active {
        background-color: #3b82f6;
        color: white;
    }

    .filter-button:not(.active) {
        background-color: #eff6ff;
        color: #1e3a8a;
    }

    .dark .filter-button:not(.active) {
        background-color: #1f2937;
        color: #eff6ff;
    }

    .filter-button:not(.active):hover {
        background-color: #dbeafe;
    }

    .dark .filter-button:not(.active):hover {
        background-color: #374151;
    }

    .transaction-sort-wrapper {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .transaction-sort-select {
        background-color: #f9fafb;
        border: 0;
        color: #1f2937;
        font-size: 0.875rem;
        border-radius: 0.5rem;
        padding: 0.5rem;
    }

    .dark .transaction-sort-select {
        background-color: #1f2937;
        color: #e5e7eb;
    }

    .transaction-sort-select:focus {
        outline: none;
        ring: 2px;
        ring-color: #3b82f6;
    }

    /* Transaction Table */
    .transaction-table-wrapper {
        padding: 0 1rem;
    }

    .transaction-table-container {
        overflow-x: auto;
        border-radius: 0.5rem;
        border: 1px solid #e5e7eb;
    }

    .dark .transaction-table-container {
        border-color: #374151;
    }

    .transaction-table {
        width: 100%;
        text-align: left;
        font-size: 0.875rem;
        color: #1f2937;
    }

    .dark .transaction-table {
        color: #e5e7eb;
    }

    .transaction-table thead {
        background-color: #eff6ff;
        color: #3b82f6;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
    }

    .dark .transaction-table thead {
        background-color: #1f2937;
        color: #60a5fa;
    }

    .transaction-table th {
        padding: 0.75rem 1.5rem;
    }

    .transaction-table tbody tr {
        border-top: 1px solid #e5e7eb;
    }

    .dark .transaction-table tbody tr {
        border-top-color: #374151;
    }

    .transaction-table tbody tr:nth-child(odd) {
        background-color: white;
    }

    .dark .transaction-table tbody tr:nth-child(odd) {
        background-color: #111827;
    }

    .transaction-table tbody tr:nth-child(even) {
        background-color: #f9fafb;
    }

    .dark .transaction-table tbody tr:nth-child(even) {
        background-color: #1f2937;
    }

    .transaction-table td {
        padding: 1rem 1.5rem;
    }

    .transaction-table td.font-medium {
        font-weight: 500;
    }

    .transaction-table td.text-right {
        text-align: right;
    }

    /* Transaction Type Badges */
    .transaction-badge {
        display: inline-block;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 9999px;
    }

    .transaction-badge.credit {
        background-color: #d1fae5;
        color: #065f46;
    }

    .dark .transaction-badge.credit {
        background-color: #064e3b;
        color: #6ee7b7;
    }

    .transaction-badge.debit {
        background-color: #fee2e2;
        color: #991b1b;
    }

    .dark .transaction-badge.debit {
        background-color: #7f1d1d;
        color: #fca5a5;
    }

    /* Transaction Amounts */
    .transaction-amount {
        font-weight: 600;
    }

    .transaction-amount.credit {
        color: #059669;
    }

    .dark .transaction-amount.credit {
        color: #34d399;
    }

    .transaction-amount.debit {
        color: #dc2626;
    }

    .dark .transaction-amount.debit {
        color: #f87171;
    }

    /* Pagination */
    .transaction-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .pagination-info {
        font-size: 0.875rem;
        color: #6b7280;
    }

    .dark .pagination-info {
        color: #9ca3af;
    }

    .pagination-buttons {
        display: inline-flex;
        align-items: center;
        margin-left: -1px;
    }

    .pagination-button {
        padding: 0.5rem 0.75rem;
        line-height: 1.25;
        color: #374151;
        background-color: #f9fafb;
        border: 1px solid #e5e7eb;
        transition: all 0.2s;
        text-decoration: none;
    }

    .dark .pagination-button {
        color: #d1d5db;
        background-color: #1f2937;
        border-color: #374151;
    }

    .pagination-button:hover {
        background-color: rgba(59, 130, 246, 0.2);
    }

    .dark .pagination-button:hover {
        background-color: rgba(59, 130, 246, 0.2);
    }

    .pagination-button:first-child {
        border-top-left-radius: 0.5rem;
        border-bottom-left-radius: 0.5rem;
        margin-left: 0;
    }

    .pagination-button:last-child {
        border-top-right-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
    }

    .pagination-button.active {
        color: white;
        background-color: #3b82f6;
        border-color: #3b82f6;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .wallet-page-title {
            font-size: 1.875rem;
        }

        .wallet-balance-amount {
            font-size: 2rem;
        }

        .transaction-table-container {
            overflow-x: scroll;
        }

        .transaction-table {
            min-width: 600px;
        }

        .transaction-filter-bar {
            flex-direction: column;
            align-items: flex-start;
        }

        .transaction-pagination {
            flex-direction: column;
            gap: 1rem;
            align-items: flex-start;
        }
    }

    /* Utility Classes */
    .text-truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Material Icons Adjustments */
    .material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    }

    .material-symbols-outlined.fill {
        font-variation-settings: 'FILL' 1, 'wght' 300;
    }

    /* Animation */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .transaction-table tbody tr {
        animation: fadeIn 0.3s ease-in-out;
    }
        
        
        /* Form field container */
.ma-form-field {
    position: relative;
    margin-bottom: 0.5rem; /* Space between fields */
}

/* Error message styling */
.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    min-height: 1rem;
    display: block;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Input error state */
.form-input.error, 
.form-select.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.dark .form-input.error, 
.dark .form-select.error {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
}
/* External CSS for Dealer Logout Modal */

/* Modal Backdrop */
.logout-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.logout-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.logout-modal-container {
  background-color: white;
  border-radius: 1rem;
  max-width: 28rem;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.logout-modal-backdrop.active .logout-modal-container {
  transform: scale(1);
}

.dark .logout-modal-container {
  background-color: #0f172a;
  border: 1px solid #1e293b;
}

/* Modal Content */
.logout-modal-content {
  padding: 2rem;
  text-align: center;
}

/* Icon */
.logout-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: #fee2e2;
  margin-bottom: 1.5rem;
}

.dark .logout-icon-wrapper {
  background-color: rgba(239, 68, 68, 0.2);
}

.logout-icon {
  font-size: 2rem !important;
  color: #dc2626;
}

.dark .logout-icon {
  color: #f87171;
}

/* Title */
.logout-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.dark .logout-modal-title {
  color: #f1f5f9;
}

/* Message */
.logout-modal-message {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.dark .logout-modal-message {
  color: #94a3b8;
}

/* Buttons Container */
.logout-modal-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* Buttons */
.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 7rem;
}

.logout-btn-cancel {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.dark .logout-btn-cancel {
  background-color: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.logout-btn-cancel:hover {
  background-color: #e2e8f0;
}

.dark .logout-btn-cancel:hover {
  background-color: #334155;
}

.logout-btn-confirm {
  background-color: #dc2626;
  color: white;
}

.logout-btn-confirm:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Material Icons */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
		/* Force dropdown menu visibility when open */
.custom-dropdown .dropdown-menu:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
}

.custom-dropdown .dropdown-menu.hidden {
    display: none !important;
}

/* Ensure parent doesn't clip dropdown */
.custom-dropdown {
    position: relative;
}

/* When dropdown is open, increase z-index */
.custom-dropdown:has(.dropdown-menu:not(.hidden)) {
    z-index: 50;
}