/* Styl bazowy – nie nadpisuje Bootstrapa */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #999; /* #f9e9b9; */
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-link:hover {
    color: #ffc107 !important; /* żółty akcent */
}

#main-content {
	max-width:1400px;
	margin-left: auto;
    margin-right: auto;
    text-align: center;	
}

/* Modal bezczynności – blur tła */
body.idle-blur #main-content {
    filter: blur(5px);
    transition: filter 0.3s ease;
}
/* Tło pod modalem – jasne z blur */
#idleReminderModal::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    z-index: -1;
}

#idleReminderModal .modal-dialog {
        margin: 0 auto; /* centruje na mobilnych */
		margin-top: 100px; /* mniejszy odstęp od góry */
		margin-bottom: auto; /* żeby nie było centrowania od dołu */
    }

/* Treść modala */
#idleReminderModal .modal-content {
    border: none;
    max-width: 100%;
}

/* Kolor nagłówka */
#idleReminderModal h1 {
    color: #c27818 !important;
}

/* Styl mobilny */
@media (max-width: 576px) {
    #idleReminderModal .modal-dialog {
        margin: 0 auto; /* centruje na mobilnych */
		margin-top: 50px; /* mniejszy odstęp od góry */
		margin-bottom: auto; /* żeby nie było centrowania od dołu */
    }

    #idleReminderModal .modal-body h1 {
		font-size: 2rem;
		line-height: 1;
	}

    #idleReminderModal .btn {
        font-size: 0.95rem;
        padding: 0.5rem 1.2rem;
    }

    #idleReminderModal .modal-content {
        padding: 1.5rem !important;
    }
}

@media (max-width: 360px) {
    #idleReminderModal .modal-body h1 {
        font-size: 2rem;
    }
}

/* Pole telefonu */
.phone-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.phone-input {
    max-width: 280px;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 0.05rem;
    padding: 0.75rem 1rem;
    margin-left: auto;
    margin-right: auto;
}

.phone-hint {
    font-size: 1rem;
	line-height: 1.5;
}

#phone::placeholder, #blik-code::placeholder{
    color: #bbb;
    font-weight: normal;
    opacity: 1;
}

.swal2-popup .swal2-styled {
    font-size: 1.1rem;
    padding: 0.9rem 1.5rem;
    border-radius: 0.5rem;
}


@media (min-width: 576px) {
    .phone-input {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
    .phone-label,
    .phone-hint {
        text-align: left;
    }
}



/* modal podziekowania */
#thankYouModal a {
  font-size: 1rem;
  color: #0d6efd;
}
#thankYouModal a:hover {
  text-decoration: underline;
}
/* Wizualizacja */
#waffle-preview {
    position: fixed;
    top: 4rem;
    right: 1rem;
    z-index: 1050;
    background-color: #f8f9fa;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* USUNIĘTO display: none */
}

#waffle-preview-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

#waffle-base,
#waffle-toppings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* MOBILE – przyklejone do góry i pełna szerokość */
@media (max-width: 1279px) {
    #waffle-preview {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 1rem auto; /* Wyśrodkowanie */
        box-shadow: none;
        border: none;
        padding: 0;
    }

    #waffle-preview-inner {
        border: 1px solid #ccc;
        border-radius: 0.5rem;
        overflow: hidden;
    }
}



.topping-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Kafelek składnika */
.tile {
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem 1rem;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    user-select: none;
    text-align: center;
    min-width: 140px;
    box-sizing: border-box;
	font-size:1.5rem;
}

.tile small {
    background-color: #dee2e6;
    font-size:1.2rem;
	border-radius:5px;
	padding:0.2rem 0.5rem;
}
/* Zaznaczenie */
.tile.selected {
    background-color: #cc8e3e; /*#198754  zielony */
    color: #fff;
    border-color: #cc8e3e;
}
.tile.selected small{
    background-color: #dee2e6;
	color: #212529;
}

/* FLEX KONTENER dla kafelków – np. #add-ons-* */
.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Desktop: bez ograniczeń */
/* Mobile: dwa kafelki w rzędzie */
@media (max-width: 576px) {
    .tile {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
		font-size:1.2rem;
		padding: 1.3rem 0.3rem;
    }
}

#order-list li {
    display: flex;
    align-items: center; /* zamiast flex-start */
    gap: 1rem;
    padding: 0.75rem 1rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}


/* Przycisk z lewej, treść z prawej */
#order-list li .order-remove {
    flex-shrink: 0; /* nie kurcz przy długim opisie */
    margin-top: 0.2rem;
}

/* Przycisk Usuń */
.order-remove {
    background-color: #dc3545;
    border: none;
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 0.4rem;
    font-size: 1.2rem;
}

.order-remove:hover {
    background-color: #c82333;
}

/* Treść po prawej */
#order-list li span {
    flex-grow: 1;
	text-align: right;
}

/* Mobilnie: kolumnowy układ */
@media (max-width: 576px) {
    #order-list li {
        flex-direction: column;
        align-items: flex-start;
        font-size: 1.2rem;
    }

    #order-list li .order-remove {
        width: 100%;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    #order-list li span {
        width: 100%;
		text-align: left;
    }
}


/* Ilość gofrów – DOMYŚLNY UKŁAD (PC) */
.qty-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.qty-box button {
    font-size: 2rem;
    padding: 1rem 2rem;
    min-width: 60px;
}

.qty-box span {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

/* MOBILE – większe i na całą szerokość */
@media (max-width: 576px) {
    .qty-box {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        gap: 0.5rem;
    }

    .qty-box button {
        flex: 1 1 40%;
        font-size: 2.5rem;
        padding: 1rem 2rem;
    }

    .qty-box span {
        flex: 1 1 30%;
        font-size: 3rem;
        text-align: center;
    }
}

/* Kuchnia – przyciski statusu mobilnie w kolumnie */
@media (max-width: 576px) {
    .status-form {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .status-form button {
        flex: 1 1 48%;
        font-size: 0.9rem;
    }
}
/* Kuchnia */
.assigned-label {
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    word-break: break-word;
}

.assigned-label.realizuje {
    color: #0d6efd; /* Bootstrap primary (blue) */
}

.assigned-label.zrealizowal {
    color: #6c757d; /* Bootstrap secondary (gray) */
}

:root {
    --demo-bar-height: 56px; /* wysokość czerwonego paska */
}

#demo-reset-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f22c3d;
  color: #fff;
  font-size: 1.1rem;
  z-index: 9999;
}

#demo-reset-bar a.btn {
  transition: all 0.2s ease;
}

#demo-reset-bar a.btn:hover {
  background-color: #f5c542;
  color: #000;
  text-decoration: none;
}

#reklama-marquee-bar {
  position: fixed;
  left: 0;
  /* bottom będzie ustawione dynamicznie przez JS */
  width: 100%;
  height: 100px;
  background: #007bff;
  color: #fff;
  font-size: 2rem;
  z-index: 10000;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  gap: 200px;
  width: max-content;
  animation: scroll-marquee linear infinite;
  will-change: transform;
}

.marquee-item {
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes scroll-marquee {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}
/* Przycisk wyloguj usera w index */
.logout-mobile-btn {
	width: 100%;
	max-width: 100%;
}

@media (min-width: 576px) {
	.logout-mobile-btn {
		width: auto;
		max-width: none;
	}
}

@media (max-width: 575.98px) {
	.logout-mobile-btn {
		width: 80%;
		margin: 0 auto;
	}
}

/* Przyciski w menu clienta mniejsze na mobilnych */
.btn-ls {
  font-size: 1rem; /* domyślny rozmiar */
  padding: 0.7rem 1rem; /* domyślne paddingi */
}

@media (max-width: 575.98px) {
  .btn-ls {
    font-size: 0.9rem; /* mniejszy tekst na mobilnych */
    padding: 0.7rem 0.6rem; /* mniejsze paddingi */
  }
}