:root {
	--color-bg: #f4f6f9;
	--color-surface: #ffffff;
	--color-primary: #003DA5;
	--color-primary-light: #066AFE;
	--color-text: #2E2E2E;
	--color-text-secondary: #5C5C5C;
	--color-border: #e1e5eb;
	--color-success: #0B827C;
	--color-warning: #F2A902;
	--color-error: #B60554;
	--radius: 6px;
	--shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--color-bg); color: var(--color-text); line-height: 1.5; }

.header { background: var(--color-primary); color: white; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.header-title { font-size: 1.25rem; font-weight: 600; }
.header-subtitle { font-size: 0.8rem; opacity: 0.8; margin-left: 0.75rem; }
.header-content { display: flex; align-items: baseline; }
.header-nav { display: flex; gap: 0.25rem; }
.nav-btn { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 0.5rem 1rem; border-radius: var(--radius); cursor: pointer; font-size: 0.85rem; transition: all 0.15s; }
.nav-btn:hover { background: rgba(255,255,255,0.1); }
.nav-btn.active { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }

.main { padding: 1.5rem 2rem; max-width: 1400px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
.filters { display: flex; gap: 0.5rem; align-items: center; }
.filter-select { padding: 0.4rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.85rem; background: white; }
.stats { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--color-text-secondary); }
.stat-item { display: flex; align-items: center; gap: 0.25rem; }

.btn { padding: 0.4rem 0.75rem; border: none; border-radius: var(--radius); cursor: pointer; font-size: 0.85rem; font-weight: 500; transition: all 0.15s; }
.btn-primary { background: var(--color-primary-light); color: white; }
.btn-primary:hover { background: var(--color-primary); }
.btn-secondary { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); }
.btn-secondary:hover { background: var(--color-bg); }
.btn-danger { background: var(--color-surface); border: 1px solid var(--color-error); color: var(--color-error); }
.btn-danger:hover { background: var(--color-error); color: white; }

.table-container { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th { background: var(--color-bg); padding: 0.75rem 1rem; text-align: left; font-weight: 600; color: var(--color-text-secondary); border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.data-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--color-border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }

.status-badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 3px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.status-beta { background: #e8f0fe; color: #1a56db; }
.status-validated { background: #def7ec; color: #046c4e; }
.status-promoted { background: #fdf2f8; color: #9b1c5c; }
.status-ga { background: #d1fae5; color: #065f46; }
.status-push_scheduled { background: #fef3c7; color: #92400e; }
.status-deprecated { background: #f3f4f6; color: #6b7280; }

.packages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.package-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; border-left: 4px solid var(--color-primary-light); }
.package-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.package-card p { font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 0.5rem; }
.package-card .meta { font-size: 0.75rem; color: var(--color-text-secondary); }

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.pagination button { padding: 0.4rem 0.75rem; border: 1px solid var(--color-border); background: white; border-radius: var(--radius); cursor: pointer; font-size: 0.8rem; }
.pagination button.active { background: var(--color-primary-light); color: white; border-color: var(--color-primary-light); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-overlay.hidden { display: none; }
.modal { background: white; border-radius: 8px; width: 90%; max-width: 700px; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border); }
.modal-header h2 { font-size: 1.1rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-text-secondary); }
.modal-body { padding: 1.5rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.detail-item { font-size: 0.85rem; }
.detail-label { font-weight: 600; color: var(--color-text-secondary); margin-bottom: 0.15rem; }
.detail-value { word-break: break-all; }
.detail-full { grid-column: 1 / -1; }

.mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.8rem; }
.truncate { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty-state { text-align: center; padding: 3rem; color: var(--color-text-secondary); }

.header-auth { display: flex; align-items: center; gap: 0.75rem; }
.user-display { font-size: 0.8rem; opacity: 0.9; }
.hidden { display: none !important; }
.main.hidden { display: none !important; }
