/* Resetowanie domyślnych marginesów i paddingów */
* {
    box-sizing: border-box;
}

/* Styl dla sloganu pod logiem */
.logo-container .slogan {
    font-size: 12px;
    color: #ffffff !important;  /* Wymuszenie białego koloru */
    text-align: center;
    margin-top: 3px; /* Dystans między logo a tekstem */
}



html, body {
    background: #111322;
    color: #DD0273;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.container {
    max-width: 100%;
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h2, h3 {
    color: #DD0273;
    margin-bottom: 15px;
    font-size: 1.8em; /* Dostosowanie rozmiaru czcionki dla nagłówków */
    white-space: normal; /* Pozwala na łamanie linii */
    word-wrap: break-word; /* Przełamuje długie słowa */
}

.form-container {
    background-color: #1d1f33;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
}

label, input {
    display: block;
    margin: 10px 0;
    width: 100%;
}

input[type="text"], input[type="password"], input[type="date"], input[type="submit"] {
    padding: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    width: 100%;
    border: 2px solid #DD0273;
    border-radius: 5px;
    background-color: #f9f9f9;
}

input[type="submit"] {
    background-color: #DD0273;
    color: white;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #c60063;
}

/* Poprawa wyglądu pola wyboru daty */
input[type="date"] {
    padding: 12px;
    font-size: 18px;
    width: 100%;
    border: 2px solid #DD0273;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

/* Usunięcie przycisków strzałek w polu daty (dla WebKit) */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

/* Dostosowanie stylu dla urządzeń mobilnych */
@media only screen and (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    h2, h3 {
        font-size: 1.5em;
        white-space: normal;
    }

    input[type="text"], input[type="password"], input[type="date"], input[type="submit"] {
        font-size: 14px;
        padding: 14px;
    }

    .modal-content {
        width: 90%;
        margin-top: 40%;
    }

    .logo {
        max-width: 100%;
    }
}

/* Styl dla listy historii zamówień */
ul.order-history {
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-x: hidden;
}

ul.order-history li {
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    word-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    color: white;
}

/* Styl logo */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 100%;
    height: auto;
}

/* Styl dla modalnego okna (Pop-upu) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #1d1f33;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #DD0273;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    color: white;
    position: relative;
}

.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #c60063;
    text-decoration: none;
    cursor: pointer;
}

button {
    background-color: #DD0273;
    border: none;
    color: white;
    padding: 12px 24px;
    text-align: center;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #c60063;
}

/* Styl dla zamówień w zależności od statusu */

/* Styl domyślny zamówienia (dla innych statusów) */
.default-order {
    border: 2px solid #2a2d45;
    background-color: #2a2d45;
    transition: all 0.3s ease;
}

/* Styl dla zamówienia ze statusem "Nowe" */
.new-order {
    border: 2px solid #DD0273;
    background-color: #3e2346;
    transition: all 0.3s ease;
    position: relative;  /* Ustawienie pozycji relatywnej, aby krzyżyk był umieszczony wewnątrz kontenera */
    padding: 10px;  /* Dostosowanie paddingu */
    margin-bottom: 10px;  /* Odstęp między zamówieniami */
}

/* Styl dla napisu "Anuluj zamówienie" */
.cancel-order-text {
    color: red;  /* Czerwony kolor napisu */
    font-weight: bold;
    margin-top: 5px;
    display: inline-block;  /* Aby poprawnie obsługiwać nową linię */
    cursor: pointer;
}


/* Styl dla zamówienia ze statusem "Potwierdzone" */
.confirmed-order {
    border: 2px solid #4CAF50;
    background-color: #1d362a;
    transition: all 0.3s ease;
}

/* Styl dla zamówienia ze statusem "Zrealizowane" */
.completed-order {
    border: 2px solid #2a2d45;
    background-color: #2a2d45;
    transition: all 0.3s ease;
}

/* Dostosowanie dla urządzeń mobilnych */
@media (max-width: 768px) {
    .default-order, .new-order, .confirmed-order, .completed-order {
        padding: 10px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Styl dla sloganu pod logiem */
.slogan {
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    margin-top: 10px; /* Dystans między logo a tekstem */
}