.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
}

.topbar-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-role {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    font-size: 11px;
    font-weight: 500;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.user-name {
    font-size: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 14px 14px 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.stat-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-footer {
    font-size: 11px;
    color: var(--text-muted);
}

.stat-footer span {
    font-weight: 600;
    color: #16a34a;
}

.stat-footer span.negative {
    color: #dc2626;
}

.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 14px;
}

.chart-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.chart-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.chart-placeholder {
    margin-top: 8px;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    background: #f9fafb;
}

.projects-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.projects-title {
    font-size: 14px;
    font-weight: 600;
}

.projects-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.btn-outline {
    border-radius: 999px;
    border: 1px solid var(--primary);
    padding: 5px 10px;
    background: transparent;
    color: var(--primary);
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: #e0f2fe;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.projects-table thead {
    background: #f9fafb;
}

.projects-table th,
.projects-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
}

.projects-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
}

.project-name {
    font-weight: 600;
    font-size: 12px;
}

.project-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.status-badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-running {
    background: rgba(14, 165, 233, 0.08);
    color: #0284c7;
}

.status-delayed {
    background: rgba(248, 113, 113, 0.1);
    color: #b91c1c;
}

.status-done {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.btn-icon {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    transition: background 0.15s ease, transform 0.1s ease, color 0.15s ease;
}

.btn-icon:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    color: var(--primary);
}
