/* Styl bazowy */
body {
    background-color: #acac90;
}

.navbar {
    min-height: 40px;
    font-size: 15px;
}

.sekcja1 {
    height: auto;
    width: auto;
    text-align: left;
    border-color: rgba(200, 0, 255, 0.31);
    border-width: 1px;
    margin-top: 60px;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 30px;
}

.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 21px;
    font-size: 11px;
    color: rgb(34, 255, 0);
    background-color: #8a8a70;
    border: solid;
    border-width: 1px;
    border-color: rgb(64, 255, 0);
    text-align: center;
    z-index: 1000;
}

.register-card {
    max-width: 460px;
    margin: 5rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.form-signin {
    width: 100%;
    max-width: 330px;
    padding: 15px;
    margin: auto;
}

.form-signin .checkbox {
    font-weight: 400;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

.form-signin input[type="text"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* ============================================ */
/* Style dla TODO                               */
/* ============================================ */

/* Karta zadania */
.task-card {
    background: #d4d4b8;
    border: 1px solid #9a9a7e;
    border-radius: 12px;
    color: #333;
}

.task-card .card-header {
    background-color: #c4c4a8;
    border-bottom: 1px solid #9a9a7e;
    border-radius: 12px 12px 0 0;
}

.task-card .card-footer {
    background-color: #c4c4a8;
    border-top: 1px solid #9a9a7e;
    border-radius: 0 0 12px 12px;
}

/* Kolory podzadań według stanu */
.subtask-red {
    border-left: 5px solid #dc3545 !important;
    color: #dc3545;
}

.subtask-red strong {
    color: #dc3545;
}

.subtask-black {
    border-left: 5px solid #212529 !important;
    color: #212529;
}

.subtask-black strong {
    color: #212529;
}

.subtask-green {
    border-left: 5px solid #198754 !important;
    color: #198754;
}

.subtask-green strong {
    color: #198754;
}

/* Progress bar */
.progress {
    background-color: #e9ecef;
    border: 1px solid #9a9a7e;
}

/* Lista zadań */
.list-group-item {
    background-color: #e8e8d0;
    border-color: #9a9a7e;
}

.list-group-item:hover {
    background-color: #deded0;
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    background: linear-gradient(to right, #dc3545 0%, #212529 50%, #198754 100%);
    border-radius: 5px;
    height: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    cursor: pointer;
}

/* Tabela w panelu admina */
.table-responsive {
    max-height: 500px;
    overflow-y: auto;
}

/* Karty statystyk */
.card h3 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sekcja1 {
        margin-top: 70px;
        margin-bottom: 40px;
    }

    .task-card {
        margin-bottom: 15px;
    }

    input[type="range"] {
        width: 100px !important;
    }
}
