/* Reset podstawowych ustawień */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tło strony – upewnij się, że obraz znajduje się w folderze /images */
body {
    background: url('/data/images/airplane.png') no-repeat center center fixed;
    background-size: cover;
    color: #e0f7fa;
    position: relative;
}
/* Czcionki */
/* <weight>: Use a value from 100 to 900 */
/* <uniquifier>: Use a unique and descriptive class name */

.doto-<uniquifier> {
  font-family: "Doto", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "ROND" 0;
}

a {
	text-decoration: none !important;  /* Usuwa podkreślenie */
    color: inherit !important;         /* Zachowuje kolor nagłówka */
    border-bottom: none !important;    /* Usuwa podkreślenie generowane przez border */
}


/* Nakładka – lekko przyciemnia tło */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Nagłówek */
header {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
	
}

header h1 {
    font-size: 3rem;
    color: #00bcd4;
	text-decoration: none !important;
	font-family: Doto;
	font-style: bold;
}

/* Główna zawartość – wyśrodkowana */
main {
    display: flex;
    flex-direction: column; /* Układ pionowy */
    align-items: center; /* Wyśrodkowanie poziome */
    justify-content: center; /* Wyśrodkowanie pionowe */
    min-height: 100vh; /* Minimalna wysokość ekranu */
    padding: 20px;
}

.opis {
	background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
	text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
	margin-bottom: 20px;
}

/* Opis parkingu */
.description {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* Formularz rezerwacji */
.reservation-form {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}

.reservation-form h2 {
    margin-bottom: 15px;
    color: #00bcd4;
}

.form-row {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.form-row label {
    flex: 1;
    min-width: auto;
    margin-left: 50px;
    font-size: 1rem;
}

.form-row-reg {
	margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: auto;
    margin-left: 50px;
    font-size: 1rem;
}
.form-row-reg input {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
	margin-left: 15px;
}

.form-row select,
.form-row input,
.form-row button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.form-row button {
    background-color: #00bcd4;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s;
}

.form-row button:hover {
    background-color: #0097a7;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    color: #e0f7fa;
    font-size: 0.9rem;
}

/* Responsywność */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    .description, .reservation-form {
        padding: 15px;
    }
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-row label,
    .form-row input {
        width: 100%;
        margin: 5px 0;
    }
}
/* Domyślnie Flatpickr blokuje daty wyblakłym stylem, nadpisujemy to */
.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    background: rgba(255, 0, 0, 0.5) !important; /* Czerwone tło */
    color: white !important;
    border-radius: 5px;
    cursor: not-allowed;
    opacity: 1 !important; /* Pełna widoczność, zamiast wyblakłego efektu */
}

/* Styl dla chmurki z ceną */
#price-popup {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    background: rgba(0, 188, 212, 0.9); /* Kolor pasujący do reszty */
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    font-size: 1.2rem;
    font-family: "Segoe UI", sans-serif;
    text-align: center;
    min-width: 250px;
    max-width: 400px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, transform 0.3s ease-out;
    z-index: 10;
}

/* Ikona w chmurce */
#price-popup .icon {
    font-size: 2rem;
    margin-bottom: 5px;
    display: block;
}

/* Animacja pojawiania się chmurki */
.show-popup {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(-10px);
}

/* CSS dla rezerwacji */
/* Główna sekcja rezerwacji */
.reservation-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    max-width: 650px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
	width: 100%;
}

/* Tytuł sekcji */
.reservation-container h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #00bcd4;
}

/* Formularz wyszukiwania */
.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Styl dla pól formularza */
.form-group {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Przycisk do sprawdzania rezerwacji*/
.form-group button {
	background: #00bcd4;
	padding: 10px;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 10px;
}

/* Styl dla podsumowania rezerwacji */
.reservation-summary {
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.6;
	background: rgba(0, 0, 0, 0.8);
	padding: 10px;
	border-radius: 15px;
	
}

/* Status zamówienia - kolorowanie */
.status {
    font-weight: bold;
}

.status.pending { color: #ff9800; }      /* Oczekujące */
.status.completed { color: #28a745; }    /* Opłacone */
.status.failed { color: #dc3545; }       /* Błąd płatności */
.status.cancelled { color: #6c757d; }    /* Anulowane */



.btn-payment {
    background: #00bcd4;
}

.btn-action {
    background: #00bcd4;
}

.btn-danger {
    background: #00bcd4;
}

/* Animacja hover */
button:hover {
    opacity: 0.8;
}

/* Responsywność */
@media (max-width: 600px) {
    .reservation-container {
        max-width: 90%;
        padding: 20px;
    }
}
