* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; color: #333; }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #1a1a2e; color: #fff; display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; }
.sidebar-brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand h2 { font-size: 20px; color: #4fc3f7; }
.sidebar-brand span { font-size: 12px; color: #888; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.sidebar-nav a { display: block; padding: 12px 20px; color: #ccc; text-decoration: none; font-size: 14px; transition: all 0.2s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.08); color: #fff; border-left: 3px solid #4fc3f7; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.sidebar-footer a { color: #ccc; text-decoration: none; font-size: 14px; }
.main-content { flex: 1; margin-left: 240px; padding: 24px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar h1 { font-size: 24px; color: #222; }
.topbar-user { font-size: 14px; color: #666; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.stat-value { font-size: 28px; font-weight: 700; color: #1a73e8; }
.stat-label { font-size: 13px; color: #666; margin-top: 4px; }
.card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.card-header h2 { font-size: 18px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 13px; }
.data-table th { background: #f8f9fa; font-weight: 600; color: #555; }
.data-table tr:hover { background: #f8f9fa; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.thumb-sm { width: 32px; height: 32px; object-fit: cover; border-radius: 4px; }
.thumb-placeholder { width: 48px; height: 48px; background: #eee; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #999; }
.badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; display: inline-block; }
.badge-placed { background: #e8f0fe; color: #1a73e8; }
.badge-confirmed { background: #fff3e0; color: #e65100; }
.badge-shipped { background: #f3e8fd; color: #7b1fa2; }
.badge-delivered { background: #e6f4ea; color: #137333; }
.badge-cancelled { background: #fce8e6; color: #c5221f; }
.badge-info { background: #e0f7fa; color: #00695c; }
.btn { display: inline-block; padding: 8px 16px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 13px; border: none; cursor: pointer; background: #f1f3f4; color: #333; }
.btn:hover { background: #e8eaed; }
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1557b0; }
.btn-danger { background: #ea4335; color: #fff; }
.btn-danger:hover { background: #c5221f; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 13px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #1a73e8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; margin-right: 16px; cursor: pointer; }
.checkbox-label input { width: auto; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #e6f4ea; color: #137333; }
.alert-error { background: #fce8e6; color: #c5221f; }
.text-center { text-align: center; }
.filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-tabs .tab { padding: 8px 16px; border-radius: 20px; text-decoration: none; color: #555; background: #fff; font-size: 13px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.filter-tabs .tab.active { background: #1a73e8; color: #fff; }
.search-form { display: flex; gap: 8px; }
.search-form input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; width: 250px; }
.image-preview { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.image-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.order-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.order-totals { margin-top: 12px; text-align: right; }
.order-totals p { margin-bottom: 4px; font-size: 14px; }
.grand-total { font-size: 16px; color: #1a73e8; }
/* Login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #1a1a2e; }
.login-box { background: #fff; padding: 40px; border-radius: 16px; width: 380px; text-align: center; }
.login-box h1 { color: #1a73e8; margin-bottom: 4px; }
.login-box p { color: #666; margin-bottom: 24px; }
.login-box .form-group { text-align: left; }
