/* SR Computer - Modern Style */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Hind Siliguri', 'Inter', sans-serif; background: #f0f4ff; color: #1a1a2e; min-height: 100vh; display: flex; flex-direction: column; }

:root {
    --primary: #1565c0; --primary-dark: #0d47a1; --primary-light: #42a5f5;
    --secondary: #00838f; --accent: #ff6d00; --success: #2e7d32;
    --danger: #c62828; --warning: #f9a825; --bg: #f0f4ff;
    --card-bg: #ffffff; --text: #1a1a2e; --text-muted: #607d8b;
    --border: #e3eafc; --shadow: 0 2px 16px rgba(21,101,192,0.10);
    --shadow-hover: 0 8px 32px rgba(21,101,192,0.18);
    --radius: 14px; --radius-sm: 8px;
}

/* NAVBAR */
.main-navbar { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%); box-shadow: 0 4px 24px rgba(13,71,161,0.25); padding: 6px 0; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); }
.brand-name { font-size: 18px; font-weight: 700; color: white; line-height: 1.2; }
.brand-sub { font-size: 11px; color: rgba(255,255,255,0.75); }
.navbar-nav .nav-link { color: rgba(255,255,255,0.88) !important; font-size: 13.5px; font-weight: 500; padding: 7px 11px; border-radius: 8px; transition: all 0.2s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: white !important; background: rgba(255,255,255,0.18); }
.lang-btn { background: rgba(255,255,255,0.18); border: 1.5px solid rgba(255,255,255,0.4); color: white; border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.lang-btn:hover { background: rgba(255,255,255,0.3); }

/* MAIN CONTENT */
.main-content { flex: 1; padding: 24px 20px; }
.page-header { background: white; border-radius: var(--radius); padding: 18px 24px; margin-bottom: 22px; box-shadow: var(--shadow); border-left: 5px solid var(--primary); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.page-header h4 { margin: 0; font-weight: 700; color: var(--primary); font-size: 18px; }

/* CARDS */
.stat-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid var(--border); position: relative; overflow: hidden; }
.stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.stat-card .stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: white; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; color: var(--text); margin-top: 10px; }
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* TABLES */
.table-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-card .table-header { padding: 16px 20px; border-bottom: 2px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.table thead th { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; font-weight: 600; font-size: 13px; padding: 12px 14px; border: none; white-space: nowrap; }
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: #e8f0fe; }
.table td, .table th { vertical-align: middle; }

/* FORMS */
.form-control, .form-select { border-radius: var(--radius-sm); border: 1.5px solid #d0d9f0; padding: 10px 14px; font-family: 'Hind Siliguri', sans-serif; font-size: 14px; transition: all 0.2s; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,0.12); }
.form-label { font-weight: 600; font-size: 13.5px; color: var(--text); margin-bottom: 5px; }

/* BUTTONS */
.btn { border-radius: var(--radius-sm); font-family: 'Hind Siliguri', sans-serif; font-weight: 500; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* FOOTER */
.main-footer { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: rgba(255,255,255,0.85); padding: 14px 20px; margin-top: auto; font-size: 13px; }

/* TOAST */
.toast-notification { position: fixed; bottom: 25px; right: 25px; z-index: 9999; background: var(--success); color: white; padding: 14px 22px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 8px 28px rgba(0,0,0,0.2); transform: translateY(80px); opacity: 0; transition: all 0.35s; max-width: 350px; }
.toast-notification.show { transform: translateY(0); opacity: 1; }
.toast-notification.toast-error { background: var(--danger); }

/* PRODUCT */
.product-img { width: 45px; height: 45px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--border); }
.modal-content { border-radius: var(--radius); border: none; }
.modal-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; border-radius: var(--radius) var(--radius) 0 0; }
.modal-header .btn-close { filter: invert(1); }
.alert { border-radius: var(--radius-sm); border: none; font-size: 14px; }
.alert-success { background: #e8f5e9; color: var(--success); }
.alert-danger { background: #ffebee; color: var(--danger); }
.pagination .page-link { border-radius: 8px !important; margin: 0 2px; border: 1.5px solid var(--border); color: var(--primary); font-weight: 500; }
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.search-box { position: relative; }
.search-box .form-control { padding-left: 38px; border-radius: 20px; }
.search-box .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 14px; }
.stock-ok { color: var(--success); font-weight: 600; }
.stock-low { color: var(--warning); font-weight: 600; }
.stock-out { color: var(--danger); font-weight: 600; }
.invoice-header { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; padding: 25px; border-radius: var(--radius) var(--radius) 0 0; }
.invoice-logo { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; border: 2px solid rgba(255,255,255,0.4); }

/* PUBLIC SHOP */
.shop-navbar { background: white; box-shadow: 0 2px 16px rgba(21,101,192,0.12); padding: 10px 0; position: sticky; top: 0; z-index: 100; }
.shop-logo { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
.shop-brand-name { font-size: 20px; font-weight: 700; color: var(--primary); }
.shop-brand-sub { font-size: 12px; color: var(--text-muted); }
.hero-banner { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%); padding: 70px 20px; text-align: center; color: white; }
.hero-banner h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; }
.hero-banner p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 28px; }
.hero-search { max-width: 520px; margin: 0 auto; }
.hero-search .form-control { border-radius: 30px 0 0 30px; padding: 14px 20px; font-size: 15px; border: none; }
.hero-search .btn { border-radius: 0 30px 30px 0; padding: 14px 24px; background: var(--accent); border-color: var(--accent); font-weight: 600; color: white; }
.category-tabs { background: white; padding: 14px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.cat-chip { display: inline-block; padding: 7px 18px; border-radius: 20px; background: var(--bg); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; border: 1.5px solid var(--border); margin: 3px; text-decoration: none; }
.cat-chip:hover, .cat-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.product-card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid var(--border); overflow: hidden; height: 100%; }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.product-card .product-thumb { width: 100%; height: 200px; object-fit: cover; }
.product-card .no-img { width: 100%; height: 200px; background: linear-gradient(135deg, #e8f0fe, #bbdefb); display: flex; align-items: center; justify-content: center; font-size: 50px; color: var(--primary-light); }
.product-card .card-body { padding: 15px; }
.product-card .product-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.product-card .product-price { font-size: 20px; font-weight: 700; color: var(--primary); }
.product-card .product-cat { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.shop-footer { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: rgba(255,255,255,0.85); padding: 40px 20px 20px; margin-top: 50px; }
.shop-footer h5 { color: white; font-weight: 700; margin-bottom: 12px; }
.shop-footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; }
.shop-footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 15px; margin-top: 25px; font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 768px) { .main-content { padding: 15px 12px; } .hero-banner h1 { font-size: 1.8rem; } .stat-card .stat-value { font-size: 20px; } }

.fw-600 { font-weight: 600; }
.badge { border-radius: 6px; font-weight: 600; font-size: 11px; padding: 4px 8px; }
