
/* GLOBAL RESET */
* {
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    padding: 15px;
    margin: 0;
    background-color: #f4f6f9;
}

/* FORM ELEMENTS - identyczna szerokość */
input,
textarea,
button {
    width: 100%;
    font-size: 16px;
    margin: 8px 0;
    padding: 12px;
    border-radius: 6px;
}

/* INPUT / TEXTAREA */
input,
textarea {
    border: 1px solid #ccc;
}

/* BUTTON BASE */
button {
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* ZAPISZ / DODAJ */
button.btn-save {
    background-color: #6fdc6f;
    color: #ffffff;
}

button.btn-save:hover {
    background-color: #4ecb4e;
}

/* WYJDŹ */
button.btn-exit {
    background-color: #ff6b6b;
    color: #ffffff;
}

button.btn-exit:hover {
    background-color: #e74c4c;
}

/* LISTA */
ul {
    list-style: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

/* KARTA Z TEKSTEM */
.card {
    background: #ffffff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
}

/* WYRÓWNANIE DATA + DROPDOWN W JEDNEJ LINII */

.row-fields {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
}

.date-input,
.shift-select {
    width: 25%;
    height: 45px;
    font-size: 16px;
    margin: 0;               /* ważne */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* select musi mieć takie same właściwości jak input */
.shift-select {
    appearance: none;
    -webkit-appearance: none;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {

    .row-fields {
        flex-direction: column;
    }

    .date-input,
    .shift-select {
        width: 100%;
    }
}

/* === DATA + ZMIANA W JEDNEJ LINII === */

.row-fields {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
    width: 100%;
}

/* Nadpisujemy globalne width:100% */
.date-input {
    width: 25% !important;
    height: 45px;
    margin: 0 !important;
}

.shift-select {
    width: 25% !important;
    height: 45px;
    margin: 0 !important;
}

/* select musi być block */
.shift-select {
    display: block;
}

/* Na telefonie jedno pod drugim */
@media (max-width: 768px) {
    .row-fields {
        flex-direction: column !important;
    }

    .date-input,
    .shift-select {
        width: 100% !important;
    }
}

