* {
    box-sizing: border-box;
}

body {
    font-family: Arial;
    background: #111;
    color: #fff;
    margin: 0;
}

/* ===== WRAPPER ===== */

.app {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 15px;
}

/* ===== TYTU艁 ===== */

h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* ===== SEKCJE (ZAMIAST CARD) ===== */

.section {
    background: #222;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 15px;
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== INPUTY ===== */

input, select, textarea {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* ===== LABEL ===== */

label {
    font-size: 14px;
    opacity: 0.9;
}

/* checkbox lepszy wygl膮d */
.section label {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

/* ===== BUTTONY ===== */
.test-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.test-row input {
    flex: 1;
}

.btn-test-inline {
    width: auto;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    background: #00c853;
    color: #fff;
    white-space: nowrap;
}
.btn, button {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    margin-top: 10px;
}

.btn {
     background: #2196F3;
    color: #fff;
}
button {
    background: #00c853;
    color: #fff;
}
.btn-save {
     width: 100%;
    padding: 16px;
    font-size: 18px;
    border-radius: 12px;
    border: none;
    margin-top: 10px;
    background: #00c853;
}
.btn-photo {
    background: #2196F3;
}

.btn-red {
    background: #d50000;
    color: #fff;
    display: block;
    width: 100%;
    text-align: center;
     text-decoration: none;
}
.btn-room {
    background: #2962ff;   /* 🔵 niebieski */
    color: #fff;
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.btn.btn-room:hover {
    background: #0039cb;
}
/* ===== LAYOUT ===== */

.game-full {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ===== MOBILE (KLUCZ) ===== */

@media (max-width: 600px) {

   .app {
    max-width: 500px;
    margin: auto;
    padding: 15px;
     padding-bottom: 40px;
}

h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 20px;
}

   

    label {
        font-size: 16px;
    }

    input, select, textarea {
        font-size: 18px;
        padding: 18px;
        margin-bottom: 14px;
    }

    .btn, button {
        font-size: 20px;
        padding: 20px;
        border-radius: 14px;
    }

    
}
/* ===== LISTA REZERWACJI ===== */

.reservation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.reservation-info {
    display: flex;
    flex-direction: column;
}

/* przycisk niech si臋 nie rozci膮ga */
.reservation .btn {
    width: auto;
    padding: 12px 18px;
    font-size: 16px;
    white-space: nowrap;
}
/* ===== ROOM TILES (APP STYLE) ===== */

.room-tile {
    display: block;
    width: 100%;
    padding: 22px;
    margin-bottom: 14px;
    background: #2c2c2c;
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: 0.2s;
}

/*efekt kliknięcia */
.room-tile:active {
    transform: scale(0.98);
    background: #3a3a3a;
}

/* hover na PC */
.room-tile:hover {
    background: #3a3a3a;
    transform: scale(0.99);
}
input[type="checkbox"] {
    transform: scale(2);
}
.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}

.checkbox-row span {
    white-space: nowrap;
}
/* 馃敟 MOBILE FIRST */
body {
    font-size: 18px;
}

/* 馃敟 SEKCJE (karty rezerwacji) */
.section.reservation {
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    font-size: 18px;
}

/* 馃敟 INFO */
.reservation-info {
    line-height: 1.6;
    font-size: 18px;
}

/* 馃敟 GODZINA */
.reservation-info b {
    font-size: 22px;
}

/* 馃敟 MA艁E TEKSTY */
.reservation-info small {
    font-size: 16px;
}

/* 馃敟 PRZYCISKI */
.btn, button {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    border-radius: 14px;
    margin-top: 12px;
}


/* 馃敟 CZERWONY */
.btn-red {
    background: #ff1744;
    font-size: 20px;
    padding: 20px;
    border-radius: 14px;
}
.btn.btn-red:hover {
    background: #a31a35;
}
/* 馃敟 LISTA POKOI */
.room-btn {
    width: 100%;
    padding: 22px;
    font-size: 20px;
    border-radius: 14px;
    margin-bottom: 12px;
    background: #2c2c2c;
    color: #fff;
}

/* 馃敟 NAG艁脫WEK */
h1, h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

/* 馃敟 CHECKBOX */
.checkbox-row {
    font-size: 20px;
    padding: 10px 0;
}
.field {
    margin-bottom: 12px;
   
}
.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 15px; /* 🔥 to jest to */
}

.checkbox-row label {
    flex: 1;
    font-size: 16px;
}

.checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 25px; /* lekkie odsunięcie */
}
/* ===== LOADER ===== */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 22px;
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #444;
    border-top: 5px solid #00c853;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#resultBox {
    display: none;
    align-items: center;
    justify-content: center;
}

#resultBox .btn {
    width: auto;
    min-width: 200px;
    max-width: 300px;
    margin-top: 20px;
}
/* wynik SMTP */
.smtp-result {
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}

.smtp-error {
    color: #ff5252;
}

.smtp-ok {
    color: #00e676;
}

/* rząd testowy */
.test-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.test-row input {
    flex: 1;
    height: 48px;
    box-sizing: border-box;
    margin-top: 0 !important;
}

.btn-test-inline {
    width: 120px;
    height: 48px;
    padding: 0;
    font-size: 14px;
    border-radius: 10px;
    border: none;
    background: #00c853;
    color: #fff;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    box-sizing: border-box;
}

