/* =====================================================
   HAN WMS - Modern Warehouse Management System
   Mobile-First Design with 3D Effects
   ===================================================== */

/* CSS Variables - Color Palette */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0891b2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --darker: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-3d: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    color: var(--dark);
    padding-bottom: 80px;
}

/* =====================================================
   3D LOGO STYLES
   ===================================================== */
.wms-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
}

.logo-3d-container {
    width: 50px;
    height: 50px;
    perspective: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-3d {
    width: 45px;
    height: 45px;
    position: relative;
    transform-style: preserve-3d;
    animation: logo-rotate 8s ease-in-out infinite;
}

.logo-cube {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.logo-cube-face {
    position: absolute;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
}

.logo-cube-face.front  { transform: translateZ(22.5px); }
.logo-cube-face.back   { transform: rotateY(180deg) translateZ(22.5px); background: var(--gradient-dark); }
.logo-cube-face.right  { transform: rotateY(90deg) translateZ(22.5px); background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%); }
.logo-cube-face.left   { transform: rotateY(-90deg) translateZ(22.5px); background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); }
.logo-cube-face.top    { transform: rotateX(90deg) translateZ(22.5px); background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.logo-cube-face.bottom { transform: rotateX(-90deg) translateZ(22.5px); background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }

/* Box Icon inside cube */
.logo-cube-face svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes logo-rotate {
    0%, 100% { transform: rotateX(-15deg) rotateY(0deg); }
    25% { transform: rotateX(-15deg) rotateY(90deg); }
    50% { transform: rotateX(-15deg) rotateY(180deg); }
    75% { transform: rotateX(-15deg) rotateY(270deg); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* =====================================================
   TOP NAVBAR
   ===================================================== */
.wms-navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .context-switcher {
        justify-content: center !important;
    }

    .context-switcher .context-switcher-form {
        flex: 1 1 100%;
        width: 100%;
    }

    .context-switcher .context-switcher-form .form-control-custom {
        width: 100% !important;
        min-width: 0 !important;
        display: block;
    }
}

@media (min-width: 769px) {
    .context-switcher .context-switcher-form .form-control-custom {
        height: 46px;
        padding: 10px 14px;
        font-size: 1rem;
        min-width: 260px;
    }
}

/* Desktop Menu */
.desktop-menu {
    display: none;
    gap: 8px;
}

@media (min-width: 992px) {
    .desktop-menu {
        display: flex;
    }
}

.desktop-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.desktop-menu-item:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.desktop-menu-item.active {
    background: var(--gradient-primary);
    color: white;
}

.desktop-menu-item svg {
    width: 20px;
    height: 20px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 8px;
    margin-top: 8px;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-item-custom:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-item-custom svg {
    width: 18px;
    height: 18px;
    color: var(--gray);
}

.dropdown-item-custom:hover svg {
    color: var(--primary);
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile:hover {
    box-shadow: var(--shadow);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.user-info {
    display: none;
}

@media (min-width: 768px) {
    .user-info {
        display: block;
    }
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

.user-role {
    font-size: 0.75rem;
    color: var(--gray);
}

/* =====================================================
   MOBILE BOTTOM NAVIGATION
   ===================================================== */
.mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gray-light);
}

@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none;
    }
    
    body {
        padding-bottom: 0;
    }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--gray);
    transition: var(--transition);
    position: relative;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 4px 4px;
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    transition: var(--transition);
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Center FAB Button */
.bottom-nav-fab {
    position: relative;
    margin-top: -30px;
}

.fab-button {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.5);
    color: white;
}

.fab-button svg {
    width: 28px;
    height: 28px;
}

/* =====================================================
   MOBILE SIDEBAR MENU
   ===================================================== */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle:hover {
    background: var(--gray-light);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--dark);
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-3d);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 20px;
    background: var(--gradient-primary);
    color: white;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sidebar-logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-icon svg {
    width: 30px;
    height: 30px;
}

.sidebar-logo-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-logo-text span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
}

.sidebar-user-avatar {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar-user-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar-user-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}

.sidebar-menu {
    padding: 16px;
}

.sidebar-menu-section {
    margin-bottom: 24px;
}

.sidebar-menu-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 12px;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 500;
    margin-bottom: 4px;
}

.sidebar-menu-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--primary);
    transform: translateX(4px);
}

.sidebar-menu-item.active {
    background: var(--gradient-primary);
    color: white;
}

.sidebar-menu-item svg {
    width: 22px;
    height: 22px;
}

.sidebar-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sidebar-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* =====================================================
   MAIN CONTENT AREA
   ===================================================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* Page Header */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--gray-light);
}

.breadcrumb-active {
    color: var(--primary);
    font-weight: 500;
}

/* =====================================================
   DASHBOARD CARDS
   ===================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card.primary::before { background: var(--gradient-primary); }
.stat-card.success::before { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.stat-card.warning::before { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.stat-card.danger::before { background: linear-gradient(135deg, #ef4444 0%, #f87171 100%); }

.stat-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card.primary .stat-card-icon { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: var(--primary); }
.stat-card.success .stat-card-icon { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: var(--success); }
.stat-card.warning .stat-card-icon { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: var(--warning); }
.stat-card.danger .stat-card-icon { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: var(--danger); }

.stat-card-icon svg {
    width: 28px;
    height: 28px;
}

.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.stat-card-trend.up {
    background: #d1fae5;
    color: var(--success);
}

.stat-card-trend.down {
    background: #fee2e2;
    color: var(--danger);
}

.stat-card-body h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.stat-card-body p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* =====================================================
   MENU CARDS (Mobile Friendly)
   ===================================================== */
.menu-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .menu-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.menu-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.menu-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    color: var(--dark);
}

.menu-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-card:hover .menu-card-icon {
    transform: scale(1.1);
}

.menu-card-icon svg {
    width: 32px;
    height: 32px;
}

.menu-card-icon.blue { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: var(--primary); }
.menu-card-icon.green { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: var(--success); }
.menu-card-icon.orange { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: var(--warning); }
.menu-card-icon.red { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: var(--danger); }
.menu-card-icon.purple { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); color: #7c3aed; }
.menu-card-icon.cyan { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); color: var(--secondary); }

.menu-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.menu-card-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
    min-width: 20px;
}

/* =====================================================
   SECTION CARDS
   ===================================================== */
.section-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-light);
    flex-wrap: wrap;
    gap: 12px;
}

.section-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.section-card-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.section-card-body {
    padding: 24px;
}

/* =====================================================
   DATA TABLE
   ===================================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    border-bottom: 2px solid var(--gray-light);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-light);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.active { background: #d1fae5; color: var(--success); }
.status-badge.pending { background: #fef3c7; color: var(--warning); }
.status-badge.inactive { background: #fee2e2; color: var(--danger); }
.status-badge.processing { background: #dbeafe; color: var(--primary); }

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--dark);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control-custom {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control-custom::placeholder {
    color: var(--gray);
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-box svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--gray);
}

/* =====================================================
   QUICK ACTIONS (Mobile)
   ===================================================== */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0 0 16px;
    margin-bottom: 24px;
    scrollbar-width: none;
}

@media (max-width: 480px) {
    .quick-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

.quick-actions::-webkit-scrollbar {
    display: none;
}

.quick-action-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

.quick-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.quick-action-btn svg {
    width: 20px;
    height: 20px;
}

/* =====================================================
   NOTIFICATIONS
   ===================================================== */
.notification-bell {
    position: relative;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.notification-bell:hover {
    background: var(--gray-light);
}

.notification-bell svg {
    width: 24px;
    height: 24px;
    color: var(--dark);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.empty-state h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* =====================================================
   LOADING SPINNER
   ===================================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =====================================================
   TOAST NOTIFICATIONS
   ===================================================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--primary); }

/* =====================================================
   RESPONSIVE UTILITIES
   ===================================================== */
.hide-mobile {
    display: none !important;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block !important;
    }
    
    .hide-desktop {
        display: none !important;
    }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease;
}

.animate-slide-up {
    animation: slideUp 0.4s ease;
}

/* Stagger animation for cards */
.menu-card:nth-child(1) { animation-delay: 0.05s; }
.menu-card:nth-child(2) { animation-delay: 0.1s; }
.menu-card:nth-child(3) { animation-delay: 0.15s; }
.menu-card:nth-child(4) { animation-delay: 0.2s; }
.menu-card:nth-child(5) { animation-delay: 0.25s; }
.menu-card:nth-child(6) { animation-delay: 0.3s; }
.menu-card:nth-child(7) { animation-delay: 0.35s; }
.menu-card:nth-child(8) { animation-delay: 0.4s; }

.menu-card {
    animation: slideUp 0.4s ease backwards;
}

/* =====================================================
   MODAL (POPUP)
   ===================================================== */
 .modal-overlay {
     position: fixed !important;
     inset: 0 !important;
     background: rgba(15, 23, 42, 0.55) !important;
     backdrop-filter: blur(6px);
     -webkit-backdrop-filter: blur(6px);
     display: none;
     align-items: center;
     justify-content: center;
     padding: 16px;
     z-index: 99999 !important;
 }

 .modal-container {
     width: 100%;
     max-width: 520px;
     background: rgba(255, 255, 255, 0.98);
     border: 1px solid rgba(255, 255, 255, 0.45);
     border-radius: var(--radius-xl);
     box-shadow: var(--shadow-3d);
     overflow: hidden;
 }

 .modal-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
     padding: 16px 18px;
     background: linear-gradient(135deg, rgba(37,99,235,0.10) 0%, rgba(8,145,178,0.10) 100%);
     border-bottom: 1px solid var(--gray-light);
 }

 .modal-header h3 {
     margin: 0;
     font-size: 1.15rem;
     font-weight: 800;
     color: var(--darker);
 }

 .modal-close {
     width: 38px;
     height: 38px;
     border: none;
     border-radius: 12px;
     background: rgba(255, 255, 255, 0.85);
     box-shadow: var(--shadow-sm);
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: var(--transition);
 }

 .modal-close:hover {
     transform: translateY(-1px);
     background: white;
 }

 .modal-close svg {
     width: 18px;
     height: 18px;
 }

 .modal-body {
     padding: 18px;
 }

 .modal-footer {
     display: flex;
     justify-content: flex-end;
     gap: 10px;
     padding: 14px 18px;
     border-top: 1px solid var(--gray-light);
     background: rgba(248, 250, 252, 0.9);
 }

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .mobile-bottom-nav,
    .wms-navbar,
    .mobile-sidebar,
    .mobile-sidebar-overlay {
        display: none !important;
    }
    
    body {
        padding: 0;
        background: white;
    }
}
