/* Shemex POS - Modern Fintech Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #4f46e5; /* Deep Indigo */
    --secondary-color: #06b6d4; /* Electric Cyan */
    --accent-color: #f472b6; /* Soft Pink */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    /* Backgrounds */
    --bg-slate: #f8fafc;
    --bg-white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    
    /* Navigation */
    --sidebar-bg: #ffffff;
    --sidebar-width: 260px;
    --header-height: 70px;

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 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-glow: 0 0 15px rgba(6, 182, 212, 0.3);
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-slate);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

/* --- Layout Utilities --- */
.h-100vh-custom {
    height: calc(100vh - 80px);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Sidebar Navigation --- */
.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.sidebar a {
    color: var(--text-secondary);
    padding: 0.85rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar a i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    margin-right: 12px;
    color: var(--text-light);
    transition: color 0.2s;
}

.sidebar a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

.sidebar a:hover i {
    color: var(--primary-color);
}

.sidebar a.active {
    background-color: #eff6ff;
    color: var(--primary-color);
    font-weight: 600;
}

.sidebar a.active i {
    color: var(--primary-color);
}

.sidebar-submenu .nav-link {
    padding-left: 3rem !important;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Sidebar Logo */
.sidebar-logo {
    max-height: 40px;
    width: auto;
    display: block;
    margin: 0 auto;
}

/* --- Navbar --- */
.navbar {
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
}

.user-profile-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 4px 15px 4px 5px;
    transition: background 0.2s;
}

.user-profile-box:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* --- Dashboard & Cards --- */
.card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}

.card-stat {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f1f5f9;
}

.card-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.stat-icon.blue { background: #eff6ff; color: var(--primary-color); }
.stat-icon.green { background: #ecfdf5; color: var(--success-color); }
.stat-icon.orange { background: #fffbeb; color: var(--warning-color); }
.stat-icon.red { background: #fef2f2; color: var(--danger-color); }

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* --- Tables --- */
.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    color: var(--text-primary);
}

.table thead th {
    background-color: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}

/* --- Forms & Inputs --- */
.form-control, .form-select {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* --- Buttons --- */
.btn {
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
    transform: translateY(-1px);
}

/* --- POS Specifics (Preserved) --- */
.search-hero-wrapper { position: relative; }
.search-hero-input {
    border: 2px solid transparent;
    background: white;
    box-shadow: var(--shadow-sm);
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-primary);
}
.search-hero-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow);
    transform: scale(1.01);
}
.pos-product-card {
    background: white;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s var(--transition-bounce), box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 100%;
}
.pos-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.pos-price-tag {
    background: var(--bg-slate);
    color: var(--primary-color);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.95rem;
    display: inline-block;
}
.product-avatar-placeholder {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; color: white;
    margin: 0 auto 10px; text-transform: uppercase;
}
.pos-cart-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex; flex-direction: column;
}
.cart-header { padding: 20px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.cart-items-container { flex: 1; overflow-y: auto; padding: 0 10px; }
.cart-item-row {
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px; border-radius: var(--radius-sm);
    padding: 10px; transition: all 0.2s; border: 1px solid transparent;
}
.cart-item-row:hover { background: white; border-color: var(--secondary-color); }
.cart-footer { background: white; padding: 20px; box-shadow: 0 -4px 20px rgba(0,0,0,0.05); z-index: 10; }
.btn-checkout {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none; color: white; font-weight: 600; letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); transition: all 0.3s ease;
    border-radius: var(--radius-md);
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4); }
.btn-checkout:disabled { background: var(--text-light); transform: none; box-shadow: none; cursor: not-allowed; }
.wifi-status { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.wifi-online { background-color: var(--success-color); box-shadow: 0 0 10px var(--success-color); }
.wifi-offline { background-color: var(--danger-color); box-shadow: 0 0 10px var(--danger-color); }

/* Login */
.brand-logo { width: 100px; height: auto; }
.login-body {
    background: #f1f5f9;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 30px 30px;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}
.login-card {
    background: white; padding: 3rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); width: 100%; max-width: 420px;
}