* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fb; color: #1f2937; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.app-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { background: #111827; color: #ffffff; display: flex; flex-direction: column; min-height: 100vh; padding: 24px; position: sticky; top: 0; }
.brand { color: #ffffff; font-size: 18px; font-weight: 700; margin-bottom: 32px; }
.brand:hover { text-decoration: none; }
.sidebar-nav { display: grid; gap: 8px; }
.sidebar-nav a { border-radius: 10px; color: #dbeafe; padding: 12px 14px; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: #1f2937; color: #ffffff; text-decoration: none; }
.sidebar-footer { border-top: 1px solid #374151; display: grid; gap: 12px; margin-top: auto; padding-top: 18px; }
.sidebar-footer span { color: #d1d5db; font-size: 13px; overflow-wrap: anywhere; }
.container { margin: 0 auto; max-width: 1180px; padding: 32px; width: 100%; }
.auth-container { max-width: 520px; }
.page-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 24px; }
.page-header h1 { margin: 0 0 6px; }
.page-header p { color: #6b7280; margin: 0; }
.card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); padding: 24px; }
table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid #e5e7eb; padding: 14px 12px; text-align: left; vertical-align: top; }
th { color: #6b7280; font-size: 13px; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
code { background: #eef2ff; border-radius: 6px; color: #3730a3; padding: 3px 6px; }
.actions, .button-group { align-items: center; display: flex; gap: 12px; }
.button { background: #ffffff; border: 1px solid #d1d5db; border-radius: 10px; color: #111827; cursor: pointer; display: inline-block; font: inherit; padding: 10px 14px; }
.button.primary { background: #2563eb; border-color: #2563eb; color: #ffffff; }
.button:hover { text-decoration: none; }
.link-button { background: none; border: 0; color: #dbeafe; cursor: pointer; font: inherit; padding: 0; }
.link-button.danger { color: #dc2626; }
.flash { border-radius: 10px; margin-bottom: 18px; padding: 14px 16px; }
.flash.notice { background: #ecfdf5; color: #065f46; }
.flash.alert { background: #fef2f2; color: #991b1b; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .checkbox { color: #374151; font-weight: 600; }
textarea, select, input[type="text"], input[type="number"], input[type="email"], input[type="password"] { border: 1px solid #d1d5db; border-radius: 10px; font: inherit; padding: 10px 12px; width: 100%; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkbox { align-items: center; display: flex; gap: 8px; margin-top: 28px; }
.details dl { display: grid; gap: 14px; grid-template-columns: 220px 1fr; margin: 0; }
.details dt { color: #6b7280; font-weight: 700; }
.details dd { margin: 0; }
.empty-state { align-items: center; background: #ffffff; border: 1px dashed #cbd5e1; border-radius: 18px; color: #475569; display: flex; flex-direction: column; justify-content: center; min-height: 360px; padding: 48px; text-align: center; }
.empty-state-icon { align-items: center; background: #2563eb; border-radius: 18px; color: #ffffff; display: flex; font-weight: 800; height: 72px; justify-content: center; letter-spacing: 1px; margin-bottom: 22px; width: 72px; }
.empty-state h2 { color: #1f2937; margin: 0 0 8px; }
.empty-state p { margin: 0; max-width: 480px; }
.ideas-stats { display: grid; gap: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 22px; }
.idea-stat-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px; color: #1f2937; display: grid; gap: 8px; padding: 16px 18px; }
.idea-stat-card:hover, .idea-stat-card.active { border-color: #2563eb; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12); text-decoration: none; }
.idea-stat-card strong { font-size: 25px; }
.idea-stat-label { color: #6b7280; font-size: 13px; font-weight: 700; }
.ideas-panel { padding: 22px; }
.ideas-filters { align-items: end; display: grid; gap: 16px; grid-template-columns: minmax(240px, 1fr) 220px auto; }
.ideas-filter-actions { display: flex; gap: 10px; }
.ideas-list-heading { align-items: end; border-top: 1px solid #e5e7eb; display: flex; justify-content: space-between; margin-top: 24px; padding-top: 22px; }
.ideas-list-heading h2 { margin: 0 0 5px; }
.ideas-list-heading p { color: #6b7280; margin: 0; }
.table-wrap { overflow-x: auto; }
.ideas-table { min-width: 1120px; }
.ideas-table th { white-space: nowrap; }
.ideas-table td { vertical-align: middle; }
.idea-description { max-width: 300px; }
.idea-description strong, .cell-primary { display: block; }
.idea-description strong { line-height: 1.45; }
.muted { color: #94a3b8; display: block; font-size: 12px; margin-top: 5px; }
.idea-tags { display: flex; flex-wrap: wrap; gap: 6px; max-width: 190px; }
.idea-tag { background: #eff6ff; border-radius: 999px; color: #1d4ed8; font-size: 12px; padding: 5px 8px; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.vote-count { align-items: center; background: #f8fafc; border-radius: 999px; color: #475569; display: inline-flex; font-weight: 700; justify-content: center; min-width: 32px; padding: 5px 9px; }
.status-badge { border-radius: 999px; display: inline-block; font-size: 12px; font-weight: 700; margin-bottom: 10px; padding: 6px 9px; white-space: nowrap; }
.status-registered { background: #fef3c7; color: #92400e; }
.status-planned { background: #ede9fe; color: #5b21b6; }
.status-in_development { background: #dbeafe; color: #1e40af; }
.status-completed { background: #dcfce7; color: #166534; }
.status-backed_up { background: #fef3c7; color: #92400e; }
.status-officially_synchronized { background: #dcfce7; color: #166534; }
.status-form { align-items: center; display: flex; gap: 8px; }
.status-form select { min-width: 170px; }
.button-small { font-size: 13px; padding: 8px 10px; }
.empty-state.compact { min-height: 240px; }
.empty-state.compact .empty-state-icon { font-size: 24px; height: 56px; margin-bottom: 16px; width: 56px; }
.offline-receipts-table { min-width: 1120px; }
.offline-receipts-table th { white-space: nowrap; }
.offline-receipts-table td { vertical-align: middle; }
.pagination { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.payload-card { margin-top: 22px; }
.payload-card h2 { margin-top: 0; }
.payload-card pre { background: #0f172a; border-radius: 10px; color: #e2e8f0; max-height: 620px; overflow: auto; padding: 18px; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } .sidebar { min-height: auto; position: static; } .sidebar-footer { margin-top: 24px; } }
@media (max-width: 900px) { .ideas-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ideas-filters { grid-template-columns: 1fr 1fr; } .ideas-filter-actions { grid-column: 1 / -1; } }
@media (max-width: 760px) { .page-header, .actions { align-items: flex-start; flex-direction: column; } .grid, .details dl, .ideas-filters { grid-template-columns: 1fr; } .ideas-filter-actions { grid-column: auto; } }
