.agent-body { background: #f0f4f8; }
.agent-layout { display: flex; min-height: 100vh; }

/* SIDEBAR */
.agent-sidebar { width: 240px; background: var(--primary); flex-shrink: 0; display: flex; flex-direction: column; }
.agent-sidebar-logo { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.agent-sidebar-logo img { height: 48px; width: auto; }
.agent-profile-mini { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.agent-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.agent-nav { padding: 12px 0; flex: 1; }
.agent-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: rgba(255,255,255,0.75); font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.agent-nav a:hover, .agent-nav a.active { background: rgba(255,255,255,0.12); color: var(--white); }
.agent-nav a.active { border-left: 3px solid var(--accent); }
.agent-nav a i { width: 18px; }

/* MAIN */
.agent-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.agent-topbar { background: var(--white); padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.agent-topbar h1 { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.agent-content { padding: 28px; flex: 1; overflow-y: auto; }

/* STATS */
.agent-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.agent-stat-card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); }
.agent-stat-card .stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.agent-stat-card .stat-icon.blue   { background: #e3f2fd; color: #1565c0; }
.agent-stat-card .stat-icon.green  { background: #e8f5e9; color: #2e7d32; }
.agent-stat-card .stat-icon.orange { background: #fff3e0; color: #e65100; }
.agent-stat-card h3 { font-size: 1.8rem; font-weight: 700; color: var(--primary); line-height: 1; }
.agent-stat-card p  { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }

/* QUOTA BAR */
.quota-bar-box { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 24px; }
.quota-track { height: 10px; background: var(--border); border-radius: 10px; overflow: hidden; }
.quota-fill { height: 100%; background: var(--primary); border-radius: 10px; transition: width 0.4s; }
.quota-fill.full { background: var(--danger); }

/* TABLE */
.agent-table-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.agent-table { width: 100%; border-collapse: collapse; }
.agent-table th { background: var(--light); padding: 11px 16px; text-align: left; font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.agent-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.agent-table tr:last-child td { border-bottom: none; }
.agent-table tr:hover td { background: var(--light); }

/* AUTH PAGES */
.agent-auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #2d6a9f); padding: 20px; }
.agent-auth-box { background: var(--white); border-radius: 14px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.agent-auth-logo { text-align: center; margin-bottom: 20px; }
.agent-auth-logo img { height: 56px; width: auto; margin: 0 auto; }
.agent-auth-box h2 { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-align: center; margin-bottom: 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.agent-auth-box .form-group { margin-bottom: 14px; }
.agent-auth-box label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.agent-auth-box input, .agent-auth-box textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; font-family: inherit; }
.agent-auth-box input:focus, .agent-auth-box textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,60,94,0.08); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid-2 .full { grid-column: 1 / -1; }

/* ACTION BTNS (reuse admin styles) */
.action-btns { display: flex; gap: 6px; }
.btn-icon { width: 32px; height: 32px; border-radius: 6px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; transition: all 0.2s; text-decoration: none; }
.btn-edit   { background: #e3f2fd; color: #1565c0; }
.btn-delete { background: #ffebee; color: #c62828; }
.btn-toggle { background: #fff3e0; color: #e65100; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.badge-open     { background: #e8f5e9; color: #2e7d32; }
.badge-closed   { background: #f5f5f5; color: #757575; }
.badge-pending  { background: #fff3e0; color: #e65100; }
.badge-approved { background: #e8f5e9; color: #2e7d32; }

@media (max-width: 768px) {
  .agent-sidebar { display: none; }
  .agent-stats { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .agent-stats { grid-template-columns: 1fr; }
  .agent-content { padding: 16px; }
}
