* { box-sizing: border-box; }

:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --border: #e1e4eb;
    --text: #1a1d29;
    --muted: #6b7280;
    --primary: #1ed3a0;
    --primary-hover: #18b58a;
    --primary-soft: rgba(30, 211, 160, 0.1);
    --primary-bright: #50eab4;
    --dark: #1a1a1a;
    --dark-soft: #2a2a2a;
    --dark-line: rgba(255, 255, 255, 0.12);
    --weekend: #fafbfc;
    --weekend-border: #e1e4eb;
    --success: #10b981;
    --error: #ef4444;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: var(--dark);
    color: #fff;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.topbar h1 {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.3px;
}

.actor-name-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 4px 10px;
    margin: -4px -10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}
.actor-name-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.actor-name-btn:active {
    background: rgba(255, 255, 255, 0.12);
}
.actor-name-lock {
    font-size: 13px;
    opacity: 0.7;
}

.topbar-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.topbar-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.topbar-divider {
    width: 1px;
    height: 24px;
    background: var(--dark-line);
    margin: 0 8px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.back-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s;
}
.back-link:hover { color: var(--primary-bright); }

.container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn {
    display: inline-block;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}
.btn:hover { background: #f3f4f6; }

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 48px 24px;
}

/* === Strona glowna - kafelki === */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(30,211,160,0.15);
    border-color: var(--primary);
}

.tile-initials {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #14b890 100%);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tile-name {
    font-weight: 500;
    font-size: 15px;
}

/* === Dialog dodawania aktora === */
dialog {
    border: none;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    min-width: 320px;
}
dialog::backdrop {
    background: rgba(0,0,0,0.4);
}
dialog h2 {
    margin: 0 0 16px;
    font-size: 18px;
}
dialog label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted);
}
dialog input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
}
.dialog-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
}
.dialog-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
}
.dialog-actions .btn-primary {
    border-color: var(--primary);
}

/* === Harmonogram - kalendarz pelnoekranowy === */
.container-wide {
    max-width: 1600px;
}

.month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}
.current-month {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    text-transform: capitalize;
}

.calendar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal-grid-headers {
    background: #fafbfc;
    border-bottom: 1px solid var(--border);
}
.cal-header {
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.cal-header-weekend {
    color: var(--primary-hover);
}

.cal-cell {
    background: var(--surface);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    min-height: 130px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background 0.15s;
}
.cal-cell:nth-child(7n) {
    border-right: none;
}
/* ostatni rzad bez dolnego boordera */
.cal-grid-days .cal-cell:nth-last-child(-n+7) {
    border-bottom: none;
}

.cal-cell.cal-empty {
    background: #fafbfc;
}

.day-weekend {
    background: var(--weekend);
}

.day-today {
    background: var(--primary-soft);
}
.day-today .day-num {
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.cal-cell .day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    min-height: 24px;
}
.cal-cell .day-num {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.cal-cell .day-notes {
    flex: 1;
    width: 100%;
    min-height: 80px;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.35;
    color: var(--text);
    resize: none;
    transition: background 0.15s, border-color 0.15s;
}
.cal-cell .day-notes::placeholder {
    color: transparent;
}
.cal-cell:hover .day-notes {
    background: rgba(255,255,255,0.6);
    border-color: var(--border);
}
.cal-cell .day-notes:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.cal-cell.has-notes .day-notes {
    border-color: var(--border);
    background: rgba(255,255,255,0.5);
}

.cal-cell .day-status {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 10px;
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.cal-cell .day-status.show { opacity: 1; }
.cal-cell .day-status.saved { color: var(--success); }
.cal-cell .day-status.error { color: var(--error); }

/* === Topbar - logged in user widget === */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    border-left: 1px solid var(--dark-line);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}
.topbar-user-name {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.topbar-user-name:hover {
    color: var(--primary-bright);
}
.btn-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.btn-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* === Login page === */
.login-body {
    background: var(--dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}
.login-body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 234, 180, 0.25) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}
.login-body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(80, 234, 180, 0.15) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
}
.login-card {
    background: var(--dark-soft);
    padding: 40px 36px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 380px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--dark-line);
}
.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}
.login-logo img {
    height: 40px;
    width: auto;
}
.login-title {
    margin: 0 0 4px;
    font-size: 22px;
    color: #fff;
    text-align: center;
    font-weight: 500;
}
.login-subtitle {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-size: 13px;
}
.login-form label {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.login-form input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--dark-line);
    border-radius: 8px;
    font-size: 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.15s, background 0.15s;
}
.login-form input::placeholder { color: rgba(255, 255, 255, 0.3); }
.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.btn-block {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    font-size: 15px;
    border-radius: 8px;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-bright);
    border: 1px solid var(--primary);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover:not(:disabled) {
    background: var(--primary);
    color: var(--dark);
}
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 14px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--dark-line);
}
.login-divider span {
    padding: 0 12px;
}

/* === Account page === */
.account-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
.account-section h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.section-hint {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    max-width: 480px;
}
.account-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 24px;
    margin: 0;
}
.account-meta dt {
    color: var(--muted);
    font-size: 13px;
}
.account-meta dd {
    margin: 0;
    font-weight: 500;
}

/* === Users management === */
.users-table {
    width: 100%;
    border-collapse: collapse;
}
.users-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
.users-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}
.users-table tr:last-child td {
    border-bottom: none;
}
.users-table .muted-cell {
    color: var(--muted);
    font-size: 13px;
}
.users-table .row-actions {
    text-align: right;
    white-space: nowrap;
}
.users-table .row-actions .btn-link {
    margin-left: 4px;
    color: var(--muted);
}
.users-table .row-actions .btn-link:hover {
    color: var(--text);
    background: #f3f4f6;
}
.users-table .row-actions .delete-user-btn:hover {
    color: var(--error);
    background: #fef2f2;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #f3f4f6;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-admin {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
    font-weight: normal !important;
    color: var(--text) !important;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    accent-color: var(--primary);
}
.checkbox-label span {
    display: inline-block;
}

.passkey-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.passkey-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
.passkey-item:first-child {
    border-top: none;
}
.passkey-name {
    font-weight: 500;
    font-size: 14px;
}
.passkey-meta {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}
.delete-passkey {
    color: var(--error);
}
.delete-passkey:hover {
    background: #fef2f2;
    color: var(--error);
}

/* === FullCalendar - dostosowanie do palety === */
.calendar-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.calendar-hint {
    margin: 14px 4px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}
.calendar-hint strong {
    color: var(--text);
    font-weight: 600;
}

/* FullCalendar overrides */
.fc {
    font-family: inherit;
    --fc-border-color: var(--border);
    --fc-page-bg-color: var(--surface);
    --fc-neutral-bg-color: #fafbfc;
    --fc-list-event-hover-bg-color: var(--primary-soft);
    --fc-today-bg-color: var(--primary-soft);
    --fc-button-bg-color: var(--surface);
    --fc-button-border-color: var(--border);
    --fc-button-text-color: var(--text);
    --fc-button-hover-bg-color: #f3f4f6;
    --fc-button-hover-border-color: var(--border);
    --fc-button-active-bg-color: var(--primary);
    --fc-button-active-border-color: var(--primary);
}

.fc .fc-toolbar-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
}

.fc .fc-button {
    font-weight: 500;
    text-transform: none;
    box-shadow: none !important;
    border-radius: 6px;
    padding: 6px 12px;
}
.fc .fc-button-primary:not(:disabled).fc-button-active {
    color: var(--dark);
    font-weight: 600;
}

.fc .fc-col-header-cell {
    background: #fafbfc;
}
.fc .fc-col-header-cell-cushion {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    font-weight: 600;
    padding: 10px 4px;
}

.fc .fc-day-sat .fc-col-header-cell-cushion,
.fc .fc-day-sun .fc-col-header-cell-cushion {
    color: var(--primary-hover);
}

.fc .fc-daygrid-day-number {
    color: var(--text);
    text-decoration: none;
    padding: 6px 8px;
    font-size: 13px;
    font-weight: 500;
}

.fc .fc-day-today .fc-daygrid-day-number {
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 4px;
    padding: 0;
}

/* Polskie swieta - kafelek dnia */
.fc .fc-day-holiday {
    background: rgba(239, 68, 68, 0.06) !important;
}
.fc .fc-day-holiday .fc-daygrid-day-number {
    color: #b91c1c;
    font-weight: 600;
}
.fc-day-holiday-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: #b91c1c;
    line-height: 1.2;
    padding: 0 6px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.fc-event {
    border-radius: 4px;
    border: none;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}
.fc-event:hover {
    opacity: 0.85;
}
.fc-event.fc-event-dragging {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.fc-daygrid-event {
    margin-top: 2px;
}

/* === Context menu === */
.context-menu {
    position: fixed;
    z-index: 10000;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 4px;
    min-width: 180px;
    animation: ctxFadeIn 0.12s ease-out;
}
@keyframes ctxFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    border-radius: 6px;
    font-family: inherit;
}
.context-menu-item:hover {
    background: #f3f4f6;
}
.context-menu-item.danger {
    color: var(--error);
}
.context-menu-item.danger:hover {
    background: #fef2f2;
}
.context-menu-icon {
    width: 18px;
    display: inline-flex;
    justify-content: center;
    font-size: 14px;
    opacity: 0.7;
}

/* === Toast (subtelne potwierdzenie) === */
.calendar-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--dark);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10001;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.calendar-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Bogaty kafelek eventu - tytul lewa / czas prawa, notatki pod spodem */
.fc-event-rich {
    padding: 1px 0;
    line-height: 1.25;
}
.fc-event-rich-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}
.fc-event-rich-title {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-event-rich-time {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 11px;
    opacity: 0.95;
    white-space: nowrap;
}
.fc-event-rich-notes {
    font-weight: 400;
    font-size: 10.5px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* === Event dialog === */
.event-dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 460px;
}
.event-dialog::backdrop {
    background: rgba(0,0,0,0.5);
}
.event-dialog form {
    padding: 24px;
}
.event-dialog h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
}
.event-dialog .dialog-hint {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}
.event-dialog label {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.event-dialog input,
.event-dialog select,
.event-dialog textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    background: var(--surface);
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
}
.event-dialog input:focus,
.event-dialog select:focus,
.event-dialog textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}
.event-dialog textarea {
    resize: vertical;
    min-height: 70px;
}
.event-dialog .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-danger {
    background: transparent;
    color: var(--error);
    border: 1px solid var(--error);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.btn-danger:hover {
    background: var(--error);
    color: #fff;
}

/* Mobile */
@media (max-width: 900px) {
    .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .topbar h1 { font-size: 14px; }
    .topbar-divider { display: none; }
    .topbar-logo img { height: 24px; }
    .container { padding: 0 12px; }
    .topbar-user { padding-left: 0; border-left: none; }
    .topbar-left { gap: 10px; flex-wrap: wrap; }

    /* Calendar - zwijanie do listy dni na mobile */
    .cal-grid-headers { display: none; }
    .cal-grid-days {
        grid-template-columns: 1fr;
    }
    .cal-cell {
        border-right: none;
        min-height: auto;
        padding: 12px;
    }
    .cal-cell.cal-empty { display: none; }
    .cal-cell .day-header {
        margin-bottom: 8px;
    }
    .cal-cell .day-num {
        font-size: 16px;
    }
    .cal-cell .day-notes {
        min-height: 50px;
        font-size: 14px;
    }
}
