body {
    margin: 0;
    background: #f5f7fb;
    color: #1f2937;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: 250px;
    background: #111827;
    color: #ffffff;
    flex-shrink: 0;
}

.sidebar-brand {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand-mark {
    width: 34px;
    height: 34px;
    background: #2563eb;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0;
}

.sidebar-nav {
    padding: 16px 12px;
}

.sidebar-nav .nav-link {
    display: block;
    color: #d1d5db;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 4px;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: #1f2937;
    color: #ffffff;
}

.app-main {
    flex: 1;
    min-width: 0;
}

.app-header {
    min-height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.page-subtitle,
.panel-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin-top: 2px;
}

.header-actions,
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-bell {
    position: relative;
    width: 34px;
    height: 34px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111827;
    font-weight: 700;
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-content {
    padding: 24px;
}

.panel,
.metric-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.panel {
    padding: 18px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-open { background: #e0f2fe; color: #075985; }
.status-in-progress { background: #fef3c7; color: #92400e; }
.status-waiting { background: #ede9fe; color: #5b21b6; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.priority-critical { color: #b91c1c; font-weight: 700; }
.priority-high { color: #c2410c; font-weight: 700; }
.priority-medium { color: #a16207; font-weight: 700; }
.priority-low { color: #166534; font-weight: 700; }

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f5f7fb;
}

.auth-card {
    width: min(420px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}

@media (max-width: 768px) {
    .app-shell { display: block; }
    .app-sidebar { width: 100%; }
    .app-header { align-items: flex-start; }
    .app-content { padding: 16px; }
}
