.weekend {
    background-color: #e0e0e0!important;
}
/*moje*/
body {
    font-family: Arial;
    background: #f5f7fa;
    transition: background 0.3s ease;
}

/* formularz */
.form-card {
    background: white;
    padding: 20px;
    margin: 40px auto;
    width: 400px;
    border-radius: 12px;
}

/* pola */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px;
}

/* kolorowe kółka */
.color-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.color-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
}

    /* konkretne kolory */
    .color-circle:nth-child(1) {
        background: #ff6b6b;
    }

    .color-circle:nth-child(2) {
        background: #4ecdc4;
    }

    .color-circle:nth-child(3) {
        background: #45b7d1;
    }

    .color-circle:nth-child(4) {
        background: #f7b731;
    }

    .color-circle:nth-child(5) {
        background: #a55eea;
    }

    .color-circle:nth-child(6) {
        background: #2ecc71;
    }

    /* aktywny */
    .color-circle.active {
        border: 3px solid black;
    }


    .delete-btn:hover {
        background: #dc2626;
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 8px 18px rgba(239,68,68,0.35);
    }

    .delete-btn:active {
        transform: scale(0.95);
    }

    .delete-btn svg {
        pointer-events: none;
    }

.create-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
    transition: 0.2s;
}

    .create-btn:hover {
        transform: scale(1.1);
        background: #1d4ed8;
    }

/* =========================
   LAYOUT
========================= */

.app-container {
    display: flex;
}

.sideBar {
   
    background: #f4f4f4;
    padding: 8px;
    display: flex;
    flex-direction: row; /* elementy obok siebie */
    flex-wrap: wrap; /* przechodzenie do kolejnego wiersza */

    gap: 4px;
    align-content: flex-start;
    overflow-y: auto;
}

.main-content {
  
    width:100%;
}

/* =========================
   TASKS
========================= */

.task {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    transition: transform 0.15s ease;
}

    .task:hover {
        transform: scale(1.8);
    }

.task-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    margin: 12px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.description {
    margin-top: 10px;
    color: #374151;
}

.task-footer {
    margin-top: 12px;
    font-size: 13px;
    color: #6b7280;
}
/*modal*/
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

    .modal-overlay.show {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

.modal-box {
    background: white;
    padding: 24px;
    border-radius: 16px;
    width: 360px;
    max-width: 90%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    transform: translateY(10px) scale(0.95);
    animation: modalIn 0.18s ease forwards;
}

@keyframes modalIn {
    to {
        transform: translateY(0) scale(1);
    }
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel, .btn-confirm {
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cancel {
    background: #e5e7eb;
}

.btn-confirm {
    background: #ef4444;
    color: white;
}
/*modal kopniec*/
i{
    cursor: pointer;
}
/*tooltip*/
#global-tooltip {
    position: fixed;
    display: none;
    background: #222;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    pointer-events: none;
    z-index: 9999;
    max-width: 250px;
}

/* =========================
   CALENDAR
========================= */

.calendar-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.calendar-header h1 {
    font-size: 28px;
    margin: 0;
    color: #222;
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.calendar-nav-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    min-width: 50px;
}

.calendar-nav-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.calendar-nav-btn:active {
    transform: scale(0.95);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.weekday {
    text-align: center;
    font-weight: bold;
    color: #666;
    padding: 12px;
    font-size: 14px;
    background: #f5f7fa;
    border-radius: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 5px;
    background: #fafafa;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    max-width:100px;
    position: relative;
}

.calendar-day:hover {
    border-color: #2563eb;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day.empty:hover {
    border: none;
    background: transparent;
    transform: none;
    box-shadow: none;
}

.task-event {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    padding: 4px 6px;
    border-radius: 4px;
    background: #f0f0f0;
    font-size: 11px;
    overflow: hidden;
}

.task-title {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.calendar-day.today {
    background: #dbeafe;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.day-number {
    font-weight: bold;
    color: #222;
    font-size: 16px;
    margin-bottom: 6px;
}

.calendar-day.today .day-number {
    color: #2563eb;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    align-content: flex-start;
    overflow: hidden;
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-dot:hover {
    width: 10px;
    height: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.event-more {
    font-size: 11px;
    color: #666;
    font-weight: bold;
    padding: 0 2px;
}

.task-more {
    font-size: 11px;
    color: #666;
    font-weight: bold;
    padding: 2px 0;
}

.no-tasks {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* Responsive calendar */
@media (max-width: 768px) {
    .calendar-container {
        padding: 20px;
        margin: 20px;
    }

    .calendar-header h1 {
        font-size: 22px;
    }

    .calendar-nav-btn {
        padding: 10px 14px;
        font-size: 16px;
        min-width: 44px;
    }

    .weekday {
        padding: 8px;
        font-size: 12px;
    }

    .calendar-day {
        min-height: 80px;
        padding: 8px;
    }

    .day-number {
        font-size: 14px;
    }

    .task-event {
        font-size: 10px;
        padding: 3px 4px;
    }

    .task-title {
        font-size: 10px;
    }

    .task-more {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        padding: 15px;
        margin: 10px;
    }

    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }

    .calendar-header h1 {
        font-size: 18px;
    }

    .calendar-nav-btn {
        width: 100%;
    }

    .calendar-day {
        min-height: 70px;
        padding: 6px;
    }

    .day-number {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .event-dot {
        width: 6px;
        height: 6px;
    }

    .event-more {
        font-size: 10px;
    }

    .task-event {
        font-size: 9px;
        padding: 2px 3px;
    }

    .task-title {
        font-size: 9px;
    }

    .task-more {
        font-size: 9px;
    }
}
/*table*/
.table tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.05);
}

.table,
.table th,
.table td {
    border: 1px solid #dee2e6;
}

    .table tbody tr {
        transition: background-color 0.15s ease-in-out;
    }

        .table tbody tr:hover td {
            background-color: #dbeafe !important;
            cursor: pointer;
        }