/* assets/css/main.css */
body { font-family: system-ui, -apple-system, sans-serif; background-color: #f4f4f5; margin: 0; color: #1f2937; }
* { box-sizing: border-box; }

.app-header { background: #ffffff; border-bottom: 1px solid #e5e7eb; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.app-header img { height: 45px; max-width: 100%; object-fit: contain; }
.user-controls { display: flex; align-items: center; gap: 1.5rem; }
.user-info { text-align: right; display: flex; flex-direction: column; }
.user-info strong { font-size: 0.9rem; color: #111827; }
.user-info span { font-size: 0.8rem; color: #6b7280; }

.btn-logout { background: #ef4444; color: #ffffff; padding: 0.5rem 1rem; border-radius: 4px; text-decoration: none; font-size: 0.875rem; font-weight: bold; transition: 0.2s; }
.btn-logout:hover { background: #dc2626; }
.btn-primary { background: #0f172a; color: #ffffff; padding: 0.75rem 1.5rem; border-radius: 4px; text-decoration: none; font-weight: bold; display: inline-block; transition: 0.2s; }
.btn-primary:hover { background: #334155; }

.container { max-width: 1200px; margin: 2rem auto; padding: 0 1rem; }
.header-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

.card { background: #ffffff; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); padding: 1.5rem; }
.tabs { display: flex; gap: 1rem; margin-bottom: 1.5rem; border-bottom: 2px solid #e5e7eb; }
.tab { padding: 0.75rem 1.5rem; cursor: pointer; font-weight: 600; color: #6b7280; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab.active { color: #0f172a; border-bottom-color: #0f172a; }

.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th, td { padding: 1rem; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; }
th { background: #f9fafb; font-weight: 600; color: #374151; }
tr:hover { background: #f9fafb; }

.status-badge { padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: bold; }
.status-new { background: #e0f2fe; color: #1e40af; }
.status-info { background: #fef3c7; color: #b45309; }
.status-apprv { background: #dcfce3; color: #166534; }
.status-sub { background: #e0e7ff; color: #3730a3; }
.status-paid { background: #d1fae5; color: #065f46; }
.status-dec { background: #fee2e2; color: #991b1b; }

.action-link { color: #2563eb; text-decoration: none; font-weight: 600; }
.action-link:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .user-info { display: none; }
    .app-header { padding: 1rem; }
}