/* ====== MACBOOK FRAME ====== */
.laptop {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.laptop-screen {
    background: linear-gradient(180deg, #e8e8ed 0%, #d1d1d6 100%);
    border-radius: 16px 16px 0 0;
    padding: 10px 10px 0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(0, 0, 0, 0.08);
}

.laptop-bezel-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    position: relative;
}

.laptop-camera {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at 30% 30%, #a0a0a5, #505055);
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.laptop-viewport {
    background: #fafbfc;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.laptop-base {
    background: linear-gradient(180deg, #d8d8dd 0%, #c5c5ca 50%, #b8b8bd 100%);
    height: 12px;
    border-radius: 0 0 16px 16px;
    position: relative;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 4px;
    background: linear-gradient(180deg, #b0b0b5, #a0a0a5);
    border-radius: 0 0 4px 4px;
}

.laptop-base::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(180deg, #f0f0f2 0%, #e0e0e4 50%, #d0d0d5 100%);
    border-radius: 0 0 8px 8px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ====== DASHBOARD MOCKUP ====== */
.dash {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    color: #334155;
    display: flex;
    height: 450px;
}

.dash-sidebar {
    width: 56px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 6px;
    flex-shrink: 0;
}

.dash-sidebar-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.dash-sidebar-logo svg {
    width: 28px;
    height: 28px;
    color: #7c3aed;
}

.dash-sidebar-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dash-sidebar-icon:hover {
    background: #f1f5f9;
}

.dash-sidebar-icon.active {
    background: #f3f0ff;
}

.dash-sidebar-icon svg {
    width: 18px;
    height: 18px;
    color: #64748b;
}

.dash-sidebar-icon.active svg {
    color: #7c3aed;
}

.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dash-topbar {
    background: white;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-topbar-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.dash-topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.dash-topbar-subtitle {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 400;
}

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

.dash-topbar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.dash-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    background: #fafbfc;
    min-height: 280px;
}

/* Tiles */
.dash-tile {
    background: white;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s, transform 0.25s;
    cursor: pointer;
}

.dash-tile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dash-tile-header {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* KPI Stats Grid */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.dash-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    transition: background 0.2s;
}

.dash-stat:hover {
    background: #f1f5f9;
}

.dash-stat-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.dash-stat-icon svg {
    width: 16px;
    height: 16px;
    color: #64748b;
}

.dash-stat-label {
    font-size: 9px;
    color: #64748b;
    font-weight: 500;
}

.dash-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

/* Bottom Tiles Row */
.dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dash-cf-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.dash-cf-icon {
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-cf-icon svg {
    width: 18px;
    height: 18px;
    color: #64748b;
}

.dash-cf-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.dash-cf-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.dash-cf-value.positive { color: #10b981; }
.dash-cf-value.negative { color: #ef4444; }

.dash-cf-details {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-cf-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

.dash-cf-row span:first-child { color: #64748b; }
.dash-cf-row span:last-child { font-weight: 600; color: #334155; }
.dash-cf-row .cost { color: #ef4444; }

/* Progress bar */
.dash-progress-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.dash-progress-fill {
    height: 100%;
    background: #64748b;
    border-radius: 4px;
    transition: width 1s ease;
}

.dash-occ-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dash-occ-card {
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.dash-occ-card:hover { background: #f1f5f9; }
.dash-occ-card svg { width: 16px; height: 16px; flex-shrink: 0; }

.dash-occ-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
}

.dash-occ-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.dash-occ-unit {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 2px;
}

/* ====== TOAST NOTIFICATION ====== */
@keyframes toastPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(16, 185, 129, 0.7), 0 0 0 8px rgba(16, 185, 129, 0.2);
    }
}

@keyframes toastRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

.dash-toast {
    position: absolute;
    top: 86px;
    right: 26px;
    z-index: 100;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dash-toast::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 2px solid #10b981;
    opacity: 0;
}

.dash-toast.show {
    opacity: 1;
    transform: translateX(0);
    animation: toastPulse 1s ease-in-out infinite;
}

.dash-toast.show::before {
    animation: toastRing 1.5s ease-out infinite;
}

.dash-toast:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    animation: none;
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}

.dash-toast:hover::before {
    animation: none;
    opacity: 0;
}

.dash-toast-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-toast-icon svg { width: 14px; height: 14px; }

.dash-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-toast-title { font-weight: 700; font-size: 11px; }
.dash-toast-subtitle { font-size: 10px; opacity: 0.9; }

/* ====== PAGES ====== */
.dash-page { display: none; }
.dash-page.active {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ====== BESTAND PAGE ====== */
.dash-bestand-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    font-size: 9px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.dash-bestand-btn svg { width: 12px; height: 12px; }

.dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dash-project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s, transform 0.25s;
    cursor: pointer;
}

.dash-project-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dash-project-card.placeholder {
    opacity: 0.5;
    background: #f1f5f9;
}

.dash-project-card.placeholder .dash-card-image { background: #e2e8f0; }
.dash-project-card.placeholder .dash-card-body { background: #f8fafc; }

.dash-card-image {
    position: relative;
    height: 100px;
    background: #f1f5f9;
    overflow: hidden;
}

.dash-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-card-image .placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #cbd5e1;
}

.dash-card-image .placeholder-icon svg { width: 24px; height: 24px; }

.dash-card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    font-size: 8px;
    font-weight: 600;
    color: #10b981;
}

.dash-card-body {
    padding: 10px;
    text-align: left;
}

.dash-card-title {
    font-size: 10px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.dash-card-address {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    font-size: 9px;
    color: #64748b;
    margin-bottom: 8px;
    text-align: left;
}

.dash-card-address svg { width: 10px; height: 10px; flex-shrink: 0; }

.dash-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.dash-card-type { font-size: 8px; color: #94a3b8; }
.dash-card-price { font-size: 10px; font-weight: 700; color: #7c3aed; }

/* ====== MIETEN PAGE ====== */
.dash-rental-header {
    display: grid;
    grid-template-columns: 20px 1fr 70px 70px 50px;
    gap: 6px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    font-size: 8px;
    letter-spacing: 0.3px;
}

.dash-rental-row {
    display: grid;
    grid-template-columns: 20px 1fr 70px 70px 50px;
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.dash-checkbox {
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dash-checkbox:hover { border-color: #10b981; }
.dash-checkbox.checked { background: #10b981; border-color: #10b981; }
.dash-checkbox svg { width: 10px; height: 10px; color: white; opacity: 0; }
.dash-checkbox.checked svg { opacity: 1; }

.dash-ai-match {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border-left: 3px solid #818cf8;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    text-align: left;
    animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(129, 140, 248, 0); }
    50% { box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.15); }
}

.dash-ai-match-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.dash-ai-icon {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-ai-icon svg { width: 14px; height: 14px; color: white; }

.dash-ai-badge {
    background: #c7d2fe;
    color: #4338ca;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 4px;
}

.dash-ai-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    margin-left: 34px;
}

.dash-ai-btn {
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.dash-ai-btn.confirm {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.dash-ai-btn.confirm:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.dash-ai-btn.reject {
    background: white;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 5px 8px;
}

.dash-ai-btn.reject:hover { background: #fef2f2; }

.dash-rental-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 600;
}

.dash-rental-status.pending { background: #fef3c7; color: #d97706; }
.dash-rental-status.paid { background: #d1fae5; color: #059669; }

/* ====== BELEG-ANALYSE PAGE ====== */
.dash-doc-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.dash-doc-confidence { height: 3px; background: #10b981; }

.dash-doc-content { padding: 12px; }

.dash-doc-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.dash-doc-thumb {
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-doc-thumb svg { width: 24px; height: 24px; color: #94a3b8; }

.dash-doc-info { flex: 1; min-width: 0; text-align: left; }

.dash-doc-title {
    font-size: 10px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.dash-doc-meta { font-size: 8px; color: #64748b; margin-bottom: 4px; text-align: left; }

.dash-doc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 600;
}

.dash-doc-badge.confidence { background: #d1fae5; color: #059669; }
.dash-doc-badge.project {
    background: #ede9fe;
    color: #7c3aed;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-doc-analysis-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.dash-doc-folder-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    text-align: left;
    flex-direction: column;
    gap: 6px;
}

.dash-doc-folder-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
}

.dash-doc-cost-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 8px;
    text-align: left;
}

.dash-doc-cost-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    text-align: left;
}

.dash-doc-cost-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2px;
    text-align: left;
}

.dash-doc-actions { display: flex; gap: 6px; }

.dash-doc-btn {
    flex: 1;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
}

.dash-doc-btn.accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.dash-doc-btn.accept:hover { transform: scale(1.02); }

.dash-doc-btn.edit {
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.dash-doc-btn.edit:hover { background: #f8fafc; }
.dash-doc-btn svg { width: 10px; height: 10px; }

/* ====== NEBENKOSTENABRECHNUNG PAGE ====== */
.dash-letter-layout {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.dash-letter-wrapper {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
}

.dash-letter-preview {
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 20px 18px;
    width: 100%;
    max-width: 220px;
    font-family: 'Arial', sans-serif;
    font-size: 7px;
    line-height: 1.3;
    color: #1e293b;
    position: relative;
}

.dash-letter-header {
    border-bottom: 2px solid #7c3aed;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.dash-letter-sender-line {
    font-size: 5px;
    color: #64748b;
    text-decoration: underline;
    margin-bottom: 6px;
}

.dash-letter-address-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dash-letter-recipient { font-size: 7px; line-height: 1.4; }
.dash-letter-recipient strong { font-size: 8px; }
.dash-letter-meta { text-align: right; font-size: 6px; color: #64748b; }
.dash-letter-meta div { margin-bottom: 2px; }

.dash-letter-subject {
    font-weight: 700;
    font-size: 8px;
    margin-bottom: 8px;
    color: #0f172a;
}

.dash-letter-content-placeholder {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-letter-text-line { height: 4px; background: #e2e8f0; border-radius: 2px; }
.dash-letter-text-line.short { width: 60%; }
.dash-letter-text-line.medium { width: 80%; }
.dash-letter-text-line.long { width: 95%; }

.dash-letter-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 8px;
    margin: 8px 0;
}

.dash-letter-summary-title {
    font-size: 6px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.dash-letter-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 7px;
    padding: 2px 0;
}

.dash-letter-summary-row.total {
    border-top: 1px solid #cbd5e1;
    margin-top: 4px;
    padding-top: 4px;
    font-weight: 700;
}

.dash-letter-summary-row.result {
    background: #d1fae5;
    margin: 4px -8px -8px -8px;
    padding: 6px 8px;
    border-radius: 0 0 3px 3px;
    font-weight: 700;
    color: #059669;
}

.dash-letter-table-placeholder { margin: 8px 0; }

.dash-letter-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4px;
    padding: 4px 6px;
    background: #f1f5f9;
    border-radius: 3px 3px 0 0;
    font-size: 5px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.dash-letter-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4px;
    padding: 4px 6px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 6px;
}

.dash-letter-table-row .amount { text-align: right; color: #64748b; }

.dash-letter-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.dash-letter-btn {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 7px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}

.dash-letter-btn.download,
.dash-letter-btn.email,
.dash-letter-btn.post {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
}

.dash-letter-btn.download:hover,
.dash-letter-btn.email:hover,
.dash-letter-btn.post:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.dash-letter-btn svg { width: 12px; height: 12px; }

.dash-nk-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dash-nk-badge.success { background: #d1fae5; color: #059669; }
.dash-nk-badge svg { width: 12px; height: 12px; }

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .dash {
        min-height: 260px;
    }

    .dash-sidebar {
        width: 40px;
        padding: 8px 0;
        gap: 4px;
    }

    .dash-sidebar-logo { width: 28px; height: 28px; }
    .dash-sidebar-logo svg { width: 20px; height: 20px; }
    .dash-sidebar-icon { width: 28px; height: 28px; }

    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-stat-value { font-size: 12px; }
    .dash-row { grid-template-columns: 1fr; }

    .dash-content {
        padding: 10px 12px;
        gap: 8px;
    }

    .dash-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
