:root {
    --sidebar-width: 250px;
    --sidebar-bg: #1e293b;
    --sidebar-hover: rgba(255,255,255,0.06);
    --sidebar-active: #3b82f6;
    --topbar-height: 60px;
    --content-bg: #f1f5f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--content-bg);
    color: #1e293b;
    font-size: 14px;
}

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

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
}

.sidebar-header i { font-size: 1.3rem; color: var(--sidebar-active); }

.sidebar-nav { padding: 12px 0; flex: 1; overflow-y: auto; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #94a3b8;
    text-decoration: none;
    transition: 0.15s;
    border-left: 3px solid transparent;
    font-weight: 500;
}

.sidebar-link:hover { background: var(--sidebar-hover); color: #e2e8f0; }

.sidebar-link.active {
    background: rgba(59,130,246,0.12);
    color: #fff;
    border-left-color: var(--sidebar-active);
}

.sidebar-link i { font-size: 1.05rem; min-width: 20px; }

.app-main {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-topbar {
    height: var(--topbar-height);
    background: #fff;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-content { padding: 24px; flex: 1; }

.stat-card { border: none; border-radius: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}

.table > :not(caption) > * > * { padding: 0.6rem 0.75rem; }
.table-hover tbody tr:hover { background: #f8fafc; }

.print-report {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
}

.print-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #1e293b;
}

.print-header h2 { font-size: 1.4rem; font-weight: 700; }
.print-header p { color: #64748b; margin: 4px 0 0; }

.print-info { margin-bottom: 20px; }
.print-info table { font-size: 0.85rem; }
.print-info td:first-child { font-weight: 600; width: 120px; background: #f8fafc; }

.print-task-table th {
    background: #1e293b !important;
    color: #fff !important;
    font-size: 0.8rem;
    text-align: center;
}
.print-task-table td { font-size: 0.82rem; vertical-align: middle; }

.signature-block {
    display: flex;
    justify-content: space-around;
    margin-top: 60px;
    padding-top: 20px;
}

.signature-box { text-align: center; width: 220px; }
.signature-name { font-weight: 600; margin-bottom: 60px; }
.signature-line { border-top: 1px solid #333; padding-top: 4px; font-size: 0.8rem; color: #64748b; }

@media print {
    .app-sidebar, .app-topbar, .no-print { display: none !important; }
    .app-main { margin: 0 !important; }
    .app-content { padding: 0 !important; }
    body { background: #fff; }
    .print-report { max-width: 100% !important; padding: 0 !important; }
    .print-task-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 768px) {
    .app-sidebar { transform: translateX(-100%); transition: 0.3s; }
    .app-sidebar.show { transform: translateX(0); }
    .app-main { margin-left: 0; }
}
