/* PhoneHub POS - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: #374151;
    --bg-hover: #4b5563;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.2);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border: #374151;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

/* Main Layout */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    height: 100vh;
    transition: grid-template-columns 0.3s ease;
}

.pos-container.cart-hidden {
    grid-template-columns: 1fr 0;
}

.pos-container.cart-hidden .order-panel {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* Cart Toggle Button */
.cart-toggle {
    position: fixed;
    right: 20px;
    top: 80px;
    width: 44px;
    height: 44px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-toggle:hover {
    background: #334155;
    color: #fff;
    border-color: var(--accent);
}

.pos-container:not(.cart-hidden) .cart-toggle {
    right: 420px;
}

.cart-toggle .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Left Panel */
.main-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.brand-text span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.date-display .icon {
    font-size: 18px;
}

.date-display .date-text {
    font-size: 14px;
    font-weight: 500;
}

.cashier-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cashier-badge .icon {
    font-size: 14px;
}

.cashier-badge span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.user-profiles {
    display: flex;
    gap: -10px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 3px solid var(--bg-secondary);
    margin-left: -10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.user-avatar:first-child {
    margin-left: 0;
}

.user-avatar:hover {
    transform: scale(1.1);
    z-index: 10;
}

.user-avatar.active {
    border-color: var(--accent);
}

.avatar-1 { background: #3b82f6; color: white; }
.avatar-2 { background: #10b981; color: white; }
.avatar-3 { background: #f59e0b; color: white; }

/* Logout Button */
.logout-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-left: 10px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--danger);
    transform: scale(1.05);
}

/* Role Badge Styles */
.cashier-badge.role-owner {
    background: linear-gradient(135deg, #10b981, #059669);
}

.cashier-badge.role-manager {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.cashier-badge.role-cashier {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.cashier-badge.role-super_admin {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

/* Trial Badge */
.trial-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    font-size: 13px;
}

.trial-badge .trial-icon {
    font-size: 14px;
}

.trial-badge .trial-text {
    font-weight: 500;
    color: #f59e0b;
}

.trial-badge .trial-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 4px;
    transition: all 0.2s;
}

.trial-badge .trial-link:hover {
    background: rgba(16, 185, 129, 0.3);
}

.trial-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
}

.trial-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.trial-badge.danger .trial-text {
    color: #ef4444;
}

/* Search Section */
.search-section {
    padding: 25px 30px;
    background: var(--bg-secondary);
    display: flex;
    gap: 15px;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-box .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
}

.search-box .search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box .search-btn:hover {
    background: var(--accent-light);
}

.barcode-box {
    width: 250px;
    position: relative;
}

.barcode-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.barcode-box input:focus {
    outline: none;
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.2);
}

.barcode-box .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
}

.barcode-scan-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--success);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.barcode-scan-btn:hover {
    background: #059669;
    transform: translateY(-50%) scale(1.05);
}

/* IMEI Scanner Box */
.imei-box {
    width: 220px;
    position: relative;
}

.imei-box input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.imei-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.imei-box .icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--text-muted);
}

.imei-scan-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.imei-scan-btn:hover {
    background: var(--accent-light);
    transform: translateY(-50%) scale(1.05);
}

.add-product-btn {
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.add-product-btn:hover {
    background: var(--accent-light);
}

.add-product-btn span {
    font-size: 16px;
}

/* Categories Section - Split Layout */
.categories-section {
    flex: 1;
    padding: 24px 30px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.categories-column {
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .title-icon {
    font-size: 14px;
}

.section-badge {
    font-size: 10px;
    padding: 3px 8px;
    background: var(--bg-card);
    border-radius: 4px;
    color: var(--text-muted);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-tile {
    height: 90px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.category-tile:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.category-tile .tile-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.category-tile .tile-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-primary);
}

.category-tile .tile-count {
    font-size: 9px;
    margin-top: 2px;
    color: var(--text-muted);
}

/* Business Tiles - Different accent colors */
.category-tile.expense {
    border-color: rgba(239, 68, 68, 0.3);
}
.category-tile.expense:hover {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.category-tile.income {
    border-color: rgba(16, 185, 129, 0.3);
}
.category-tile.income:hover {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.category-tile.report {
    border-color: rgba(59, 130, 246, 0.3);
}
.category-tile.report:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.category-tile.inventory {
    border-color: rgba(245, 158, 11, 0.3);
}
.category-tile.inventory:hover {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.category-tile.supplier {
    border-color: rgba(139, 92, 246, 0.3);
}
.category-tile.supplier:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.category-tile.customers {
    border-color: rgba(236, 72, 153, 0.3);
}
.category-tile.customers:hover {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

.category-tile.returns {
    border-color: rgba(249, 115, 22, 0.3);
}
.category-tile.returns:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.category-tile.calendar {
    border-color: rgba(139, 92, 246, 0.3);
}
.category-tile.calendar:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.category-tile.settings {
    border-color: rgba(107, 114, 128, 0.3);
}
.category-tile.settings:hover {
    border-color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
}

.category-tile.assistant {
    border-color: rgba(79, 70, 229, 0.3);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(124, 58, 237, 0.05));
}
.category-tile.assistant:hover {
    border-color: #4F46E5;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(124, 58, 237, 0.15));
    transform: scale(1.02);
}

/* AI Assistant Chat Section */
.assistant-chat-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 16px;
    margin: 20px;
    overflow: hidden;
    border: 1px solid rgba(79, 70, 229, 0.3);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
}

.assistant-chat-section.minimized .chat-messages-container,
.assistant-chat-section.minimized .chat-quick-actions,
.assistant-chat-section.minimized .chat-input-area {
    display: none;
}

.chat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-icon {
    font-size: 1.75rem;
}

.chat-title h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #10B981;
}

.chat-status .status-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-minimize-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: background 0.2s;
}

.chat-minimize-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages-container {
    height: 200px;
    overflow-y: auto;
    padding: 16px;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-welcome p {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    color: #e0e7ff;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.5;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #e0e7ff;
    border-bottom-left-radius: 4px;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: fit-content;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    background: #a5b4fc;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chat-quick-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    flex-wrap: wrap;
}

.chat-quick-actions button {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #c7d2fe;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-quick-actions button:hover {
    background: rgba(79, 70, 229, 0.5);
    border-color: #4F46E5;
    color: white;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input::placeholder {
    color: #a5b4fc;
}

.chat-input-area input:focus {
    border-color: #4F46E5;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Right Panel - Order */
.order-panel {
    background: #0f172a;
    border-left: 3px solid var(--accent);
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.order-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.02);
}

.order-number {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.order-number span {
    color: var(--accent-light);
}

.order-location {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 8px;
    padding: 3px 8px;
    background: var(--bg-card);
    border-radius: 6px;
}

.order-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.order-actions .full-width {
    grid-column: span 2;
}

.action-btn {
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn:hover {
    background: var(--bg-hover);
}

.action-btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.action-btn.primary:hover {
    background: var(--accent-light);
}

.action-btn.success {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.action-btn.success:hover {
    background: #047857;
}

/* Cart Items */
.cart-section {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #64748b;
    text-align: center;
}

.cart-empty .icon {
    font-size: 56px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.cart-empty p {
    font-size: 14px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    margin-bottom: 10px;
    position: relative;
}

.cart-item:hover {
    border-color: rgba(255,255,255,0.15);
}

.cart-item-image {
    width: 48px;
    height: 48px;
    background: #334155;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.cart-item-price {
    font-size: 12px;
    color: #94a3b8;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: #334155;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

.qty-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.cart-item-total {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-edit-price-btn {
    width: 22px;
    height: 22px;
    background: #334155;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    color: #94a3b8;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-edit-price-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    opacity: 0;
    transition: all 0.2s;
}

.cart-item:hover .remove-btn {
    opacity: 1;
}

.remove-btn:hover {
    color: var(--danger);
}

/* Order Summary */
.order-summary {
    padding: 20px;
    background: #1e293b;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.summary-row .label {
    color: #94a3b8;
}

.summary-row .value {
    font-weight: 500;
    color: #e2e8f0;
    display: flex;
    gap: 10px;
}

.summary-row .value .secondary {
    color: #64748b;
    font-size: 11px;
}

.summary-row.total {
    font-size: 22px;
    font-weight: 700;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.summary-row.total .label {
    color: #fff;
}

.summary-row.total .value {
    color: var(--success);
}

/* Process Buttons */
.process-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0f172a;
}

.process-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.process-btn {
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.process-btn.primary {
    background: var(--accent);
    color: white;
}

.process-btn.primary:hover {
    background: var(--accent-light);
}

.process-btn.secondary {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
}

.process-btn.secondary:hover {
    background: #334155;
}

.process-btn.success {
    background: var(--success);
    color: white;
}

.process-btn.success:hover {
    background: #059669;
}

.process-btn.full-width {
    grid-column: span 2;
}

.process-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Customer Section */
.customer-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.customer-section label {
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
}

.customer-select-wrapper {
    flex: 1;
    display: flex;
    gap: 6px;
}

.customer-select {
    flex: 1;
    padding: 10px 12px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.customer-select:focus {
    outline: none;
    border-color: var(--accent);
}

.customer-select.has-customer {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.add-customer-btn {
    width: 38px;
    height: 38px;
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-customer-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.selected-customer-info {
    display: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    z-index: 1000;
    font-size: 14px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

.modal-footer .btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-footer .btn-primary {
    background: var(--accent);
    color: white;
}

.modal-footer .btn-primary:hover {
    background: var(--accent-light);
}

.modal-footer .btn-secondary {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.modal-footer .btn-secondary:hover {
    background: var(--bg-hover);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group .input-with-icon {
    position: relative;
}

.form-group .input-with-icon input {
    padding-left: 45px;
}

.form-group .input-with-icon .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Barcode Generation */
.barcode-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.generate-barcode-btn {
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.generate-barcode-btn:hover {
    background: var(--accent-light);
}

.barcode-preview {
    margin-top: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
}

.barcode-preview svg {
    max-width: 100%;
    height: auto;
}

/* Barcode Scanner Styles */
.barcode-scanner-area {
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.scanner-preview {
    width: 100%;
    height: 200px;
    background: #000;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.scanner-preview .scanner-line {
    position: absolute;
    width: 80%;
    height: 2px;
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger), 0 0 20px var(--danger);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 20%; }
    50% { top: 80%; }
    100% { top: 20%; }
}

.scanner-preview .scanner-corners {
    position: absolute;
    width: 60%;
    height: 60%;
    border: 3px solid var(--accent);
    border-radius: 10px;
}

.scanner-preview .placeholder-text {
    color: var(--text-muted);
    font-size: 14px;
    z-index: 1;
}

.scanner-instructions {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
}

.scanner-manual {
    display: flex;
    gap: 10px;
}

.scanner-manual input {
    flex: 1;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.scanner-manual input:focus {
    outline: none;
    border-color: var(--accent);
}

.scanner-manual button {
    padding: 14px 24px;
    background: var(--success);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.scanner-manual button:hover {
    background: #059669;
}

/* Image Upload */
.image-upload {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.image-upload:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.image-upload .upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.image-upload p {
    color: var(--text-muted);
    font-size: 13px;
}

.image-upload span {
    color: var(--accent-light);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1400px) {
    .categories-section {
        gap: 20px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .pos-container {
        grid-template-columns: 1fr 350px;
    }

    .categories-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .pos-container {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .order-panel {
        display: none;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-toggle {
        display: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* ============================================================================
   ONBOARDING SIDEBAR
   ============================================================================ */

/* Body adjustment when onboarding is active */
body.onboarding-active .pos-container {
    margin-right: 280px;
}

/* Sidebar container */
#onboarding-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #1f2937;
    border-left: 1px solid #374151;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.3s ease;
}

#onboarding-sidebar.collapsed {
    width: 50px;
}

/* Header */
.onboarding-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #374151;
    background: #111827;
}

.onboarding-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.onboarding-icon {
    font-size: 20px;
}

.onboarding-text {
    font-weight: 600;
    color: #f9fafb;
    font-size: 14px;
}

.onboarding-toggle {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    transition: color 0.2s;
}

.onboarding-toggle:hover {
    color: #f9fafb;
}

/* Content */
.onboarding-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.onboarding-content.collapsed {
    display: none;
}

/* Progress */
.onboarding-progress {
    margin-bottom: 20px;
}

.progress-text {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.progress-bar {
    height: 6px;
    background: #374151;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Sections */
.onboarding-section {
    margin-bottom: 16px;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Items */
.onboarding-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #374151;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.onboarding-item:hover {
    background: #4b5563;
}

.onboarding-item.completed {
    background: rgba(16, 185, 129, 0.15);
    cursor: default;
}

.onboarding-item.completed:hover {
    background: rgba(16, 185, 129, 0.2);
}

.onboarding-item.skipped {
    opacity: 0.5;
    cursor: default;
}

.item-status {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #9ca3af;
}

.onboarding-item.completed .item-status {
    color: #10b981;
    font-weight: bold;
}

.item-icon {
    font-size: 16px;
}

.item-label {
    flex: 1;
    font-size: 13px;
    color: #e5e7eb;
}

.onboarding-item.completed .item-label {
    text-decoration: line-through;
    color: #9ca3af;
}

.item-skip {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
}

.onboarding-item:hover .item-skip {
    opacity: 1;
}

.item-skip:hover {
    color: #ef4444;
}

/* Dismiss button */
.onboarding-dismiss-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #4b5563;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
}

.onboarding-dismiss-btn:hover {
    background: #374151;
    color: #f9fafb;
}

/* Blocker Modal */
.onboarding-blocker-modal .modal-content {
    max-width: 400px;
}

.onboarding-blocker-modal .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blocker-items {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.blocker-items li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #374151;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* Success Modal */
.onboarding-success-modal .modal-content {
    max-width: 420px;
    text-align: center;
    padding: 32px;
}

.success-animation {
    font-size: 64px;
    margin-bottom: 16px;
    animation: celebrate 0.5s ease-out;
}

@keyframes celebrate {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.success-modal h2 {
    color: #10b981;
    margin-bottom: 8px;
}

.success-modal p {
    color: #9ca3af;
    margin-bottom: 24px;
}

.next-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.next-step-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #374151;
    border: none;
    border-radius: 8px;
    color: #e5e7eb;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.next-step-btn:hover {
    background: #4b5563;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body.onboarding-active .pos-container {
        margin-right: 0;
        margin-bottom: 60px;
    }

    #onboarding-sidebar {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: auto;
        max-height: 60vh;
        border-left: none;
        border-top: 1px solid #374151;
        border-radius: 16px 16px 0 0;
    }

    #onboarding-sidebar.collapsed {
        width: 100%;
        height: 50px;
    }

    .onboarding-content.collapsed {
        display: none;
    }
}

/* ============================================================================
   PAGE-LEVEL STYLES (Sub-pages like Expenses, Income, Products, etc.)
   ============================================================================ */

/* Page Container - Full height flex layout with scrolling */
.page-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Main Content Area - For 2-column layouts */
.main-content {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    min-height: 0; /* Important: allows flex children to shrink */
    overflow: hidden;
}

/* Scrollable content sections within main-content */
.main-content > * {
    overflow-y: auto;
}

/* Single column layout option */
.main-content.single-column {
    grid-template-columns: 1fr;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* Top Bar Left Section */
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Back Button */
.back-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.back-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
}

/* Page Title */
.page-title {
    display: flex;
    flex-direction: column;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px 30px;
    background: var(--bg-secondary);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.danger {
    border-left: 3px solid var(--danger);
}

.stat-card.danger:hover {
    border-color: var(--danger);
}

.stat-card.warning {
    border-left: 3px solid var(--warning);
}

.stat-card.warning:hover {
    border-color: var(--warning);
}

.stat-card.success {
    border-left: 3px solid var(--success);
}

.stat-card.success:hover {
    border-color: var(--success);
}

.stat-card.accent {
    border-left: 3px solid var(--accent);
}

.stat-card.accent:hover {
    border-color: var(--accent);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

.stat-value.danger { color: var(--danger); }
.stat-value.warning { color: var(--warning); }
.stat-value.success { color: var(--success); }
.stat-value.accent { color: var(--accent); }

.stat-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Content Section */
.content-section {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
}

/* Card Styles */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 14px 16px;
    background: var(--bg-card);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

tr:hover td {
    background: rgba(59, 130, 246, 0.05);
}

tr:last-child td {
    border-bottom: none;
}

/* Filters Section */
.filters-section {
    display: flex;
    gap: 15px;
    padding: 20px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.filter-group select,
.filter-group input {
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 13px;
    min-width: 150px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Buttons */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

/* Action Buttons in Tables */
.action-buttons {
    display: flex;
    gap: 8px;
}

.action-btn-small {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn-small:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.action-btn-small.danger:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
}

/* Category Filter Pills */
.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-pill {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.category-pill:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.category-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Search Input */
.search-input {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.search-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-input .icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Page Responsive */
@media (max-width: 1200px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .content-section {
        padding: 15px;
    }

    .top-bar {
        padding: 15px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select,
    .filter-group input {
        flex: 1;
    }
}
