/* WAMAT CRM — style własne */

:root {
    --wamat-accent: #0d6efd;
}

body {
    background: #f4f6f9;
    font-size: 0.95rem;
}

/* --- logowanie --- */
.login-page {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.login-logo {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto;
    border-radius: 16px;
    background: var(--wamat-accent);
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
}

/* --- nawigacja --- */
.brand-mark {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 6px;
    background: var(--wamat-accent);
    color: #fff;
    font-weight: 700;
    margin-right: 4px;
}

/* --- karty statystyk --- */
.stat-card {
    border: 0;
    border-left: 4px solid var(--wamat-accent);
    transition: transform .12s ease, box-shadow .12s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08) !important;
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-card.danger  { border-left-color: #dc3545; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.success { border-left-color: #198754; }
.stat-card.info    { border-left-color: #0dcaf0; }

/* --- tabele --- */
.table-hover tbody tr {
    cursor: pointer;
}

.table td, .table th {
    vertical-align: middle;
}

tr.row-unread td:first-child {
    box-shadow: inset 3px 0 0 var(--wamat-accent);
}

tr.row-unread .task-title {
    font-weight: 600;
}

/* --- oznaczenia terminu (wysoki kontrast) --- */
.due-flag {
    display: inline-block;
    padding: .18rem .5rem;
    border-radius: .35rem;
    font-weight: 600;
    font-size: .82rem;
    line-height: 1.3;
    white-space: nowrap;
}

/* po terminie — biały tekst na czerwonym */
.due-overdue {
    background: #d32f2f;
    color: #fff;
}

/* dziś — biały tekst na pomarańczowym */
.due-today {
    background: #e65100;
    color: #fff;
}

/* jutro i najbliższy tydzień — ciemny brąz na jasnym bursztynie */
.due-soon {
    background: #ffe08a;
    color: #7a4100;
    border: 1px solid #f0b429;
}

/* dalszy termin — neutralnie, ale czytelnie */
.due-ok {
    background: #eef1f5;
    color: #33415c;
    font-weight: 500;
}

/* sprawa zamknięta */
.due-done {
    background: transparent;
    color: #6c757d;
    font-weight: 400;
    padding-left: 0;
}

/* --- oś czasu / komentarze --- */
.comment {
    border-left: 3px solid #e5e7eb;
    padding: .35rem 0 .35rem .85rem;
    margin-bottom: 1rem;
}

.comment.mine {
    border-left-color: var(--wamat-accent);
    background: #f8faff;
}

.comment-body {
    white-space: pre-wrap;
    word-break: break-word;
}

.activity-item {
    font-size: .85rem;
    color: #6b7280;
    padding: .25rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.activity-item:last-child {
    border-bottom: 0;
}

/* --- pozostałe --- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-size: .75rem;
    font-weight: 600;
    flex: 0 0 auto;
}

.desc-box {
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 576px) {
    .stat-card .stat-value { font-size: 1.5rem; }
    .table-responsive { font-size: .875rem; }
}

@media print {
    .navbar, footer, .no-print { display: none !important; }
    body { background: #fff; }
}
