/* Reset i baza */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f9;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

img, .container, .restaurant-card, .restaurant-row {
  max-width: 100%;
}

/* Top panel */
.top-panel {
  background-color: #1a1a1a;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  height: 45px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
}
.top-link { color: #fff; text-decoration: none; transition: color 0.3s ease;}
.top-link:hover { color: #ff6f61; }

/* Fixed panel */
.fixed-panel {
  position: fixed;
  top: 45px;
  width: 100%;
  height: 55px;
  background-color: #911003;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.fixed-panel .container { padding: 0; }

/* Buttons */
.btn-primary {
  background-color: #CC3333 !important;
  border-color: #CC3333 !important;
}
.btn-primary:hover {
  background-color: #AA2222 !important;
  border-color: #AA2222 !important;
}

.square-btn {
  min-width: 150px;
  max-width: 250px;
  min-height: 45px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: bold;
  border-radius: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}
.square-btn:hover { transform: scale(1.05); }

.btn-download, .btn-register {
  background-color: #d41704;
  color: #fff;
}
.btn-download:hover, .btn-register:hover { background-color: #e65a50; }

/* Logo - DESKTOP jako bazowe */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all 0.3s ease;
}
.navbar-brand:hover { color: #ffffff; }

.navbar-logo {
  width: 124px;
  height: 85px;
  object-fit: cover;
  border-radius: 10px;
}
.navbar-brand:hover .navbar-logo {
  transform: rotate(360deg) scale(1.1);
}

/* Hero */
.hero-section {
  /*background-color: #911003; */
  background: linear-gradient(135deg, #8457bf 0%, #910365 100%);  /* Gradient zamiast koloru */
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 40px 0 25px;
  text-align: center;
  margin-top: 80px;
}

/* Przycisk konta użytkownika w fixed-panel */
.fixed-panel .btn-user-account {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.fixed-panel .btn-user-account:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: white;
    color: white;
}

.fixed-panel .btn-user-account:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Search box */
.search-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin-top: -110px;
  position: relative;
  z-index: 1;
}

/* Nav links */
.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  transition: color 0.3s ease;
}
.nav-link:hover { color: #ff6f61; }

/* Restaurant cards */
.restaurant-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* DESKTOP: 4 kolumny */
  gap: 1.5rem;
  padding: 1rem;
  margin: 0;
}
.restaurant-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.restaurant-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.restaurant-card .card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  background-color: #f4f4f9;
  transition: transform 0.3s ease;
}
.restaurant-card:hover .card-img-top { transform: scale(1.1); }
.restaurant-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}
.restaurant-card .card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  min-height: 2.5rem;
}
.restaurant-card .card-text {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.restaurant-card .btn-outline-primary {
  margin-top: auto;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.restaurant-card .btn-outline-primary:hover {
  background-color: #2980b9;
  color: white;
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #e74c3c;
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
}
.discount-card { position: relative; }

/* Forms */
.register-section {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.register-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-size: 1.8rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-weight: bold;
  color: #34495e;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2980b9;
  box-shadow: 0 0 5px rgba(41,128,185,0.3);
}

.btn-submit {
  background-color: #2980b9;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.btn-submit:hover { background-color: #1c6ea4; }

/* Footer */
.footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #6c757d;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #dee2e6;
}
.divider span { padding: 0 10px; }

.user-name {
  color: #CC3333;
  font-weight: 500;
  text-decoration: none;
}

/* Kontenery - symetria */
.container,
.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
}

    /* Mniejsze karty przy 2 kolumnach */
    .restaurant-card .card-body {
        padding: 0.6rem;
    }
    
    .restaurant-card .card-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        min-height: auto;
    }
    
    .restaurant-card .card-text {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }
    
    .restaurant-card .btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .card-img-top {
        height: 120px !important;
    }
    
    .discount-badge {
        font-size: 0.75rem;
        padding: 4px 6px;
        top: 5px;
        right: 5px;
    }
    
    .discount-title {
        font-size: 0.75rem;
    }
    
    .discount-desc {
        display: none;
    }
    
    .time-restriction {
        font-size: 0.65rem;
    }
    
    .promo-code-box {
        display: none;
    }

/* ===================== MEDIA QUERIES ===================== */

/* Tablet <992px: 3 kolumny */
@media (max-width: 991px) {
  .restaurant-row { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet <768px: 2 kolumny + mniejsze logo */
@media (max-width: 767px) {
  .restaurant-row { grid-template-columns: repeat(2, 1fr); }
  .navbar-logo { width: 50px; height: 50px; }
  .navbar-brand { font-size: 1.3rem; }
  
  .fixed-panel {
    height: auto;
    padding: 10px 0;
  }
  .fixed-panel .container {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  .square-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Mobile <576px: 1 kolumna */
@media (max-width: 575px) {
  .restaurant-row { 
    grid-template-columns: 1fr; 
    padding: 0.75rem;
  }
  .restaurant-card .card-img-top { height: 180px; }
  .restaurant-card .card-body { padding: 1rem; }
  
  .navbar-logo { width: 35px; height: 35px; }
  .navbar-brand { font-size: 1.1rem; gap: 8px; }
  
  .square-btn { 
    font-size: 0.7rem; 
    min-height: 42px; 
    padding: 8px 10px; 
  }
  
  .container,
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .hero-section {
    margin-top: 140px; /* Większy margin dla mobile fixed-panel */
    padding: 40px 0 30px;
  }
}

/* ===================== BOOTSTRAP ROW/COL FIX ===================== */
/* ===================== ROW + RESTAURANT-COLUMN ===================== */

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 1rem;
}

.restaurant-column {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0.5rem;
  box-sizing: border-box;
}

.card-img-top {
  height: 200px !important;
  width: 100% !important;
  object-fit: cover !important;
}

/* Tablet <992px: 3 karty */
@media (max-width: 991px) {
  .restaurant-column {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* Tablet <768px: 2 karty */
@media (max-width: 767px) {
  .restaurant-column {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Mobile <576px: 1 karta */
@media (max-width: 575px) {
  .restaurant-column {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .row {
    padding: 0.75rem;
  }
  .card-img-top {
    height: 180px !important;
  }
}

/* ========================================
   OPTYMALIZACJA DLA TELEFONU
   ======================================== */

@media (max-width: 768px) {
    
    /* UKRYJ LOGO I NAZWĘ NA TELEFONIE */
    .fixed-panel .navbar-brand {
        display: none !important;
    }
    
    /* Fixed Panel - bez logo, MNIEJSZY */
    .fixed-panel {
        padding: 6px 0 !important;
        min-height: auto !important;
    }
    /*
    .fixed-panel .container {
        flex-direction: column;
        gap: 6px;
        padding: 0 10px;
        justify-content: center;
    } */
    
    /* Przyciski w navbarze - OBOK SIEBIE I MNIEJSZE */
    /*.fixed-panel .d-flex.gap-3,
    .fixed-panel > .container > .d-flex {
        flex-direction: row !important;
        gap: 6px !important;
        width: 100%;
    } */
    
    /* PRZYCISKI - MNIEJSZE O 25% */
    .fixed-panel .square-btn,
    .fixed-panel a.square-btn,
    a.square-btn.btn-download,
    a.square-btn.btn-register {
        width: 100% !important;
        padding: 6px 4px !important; /* Zmniejszone */
        font-size: 9px !important; /* Zmniejszone */
        text-align: center !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
        min-height: auto !important;
        height: auto !important;
        display: inline-block !important;
    }
    
    /* User info dla zalogowanych */
    .fixed-panel .d-flex.align-items-center {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
    
    .user-name {
        font-size: 12px;
        text-align: center;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown .btn {
        width: 100%;
        font-size: 11px !important;
        padding: 6px 8px !important;
    }
    
    /* Hero Section - WYŻEJ, żeby był widoczny */
    .hero-section {
        padding: 25px 15px 20px !important;
        margin-top: 60px !important; /* Zmniejszony margin */
        min-height: auto !important;
        position: relative;
        z-index: 1;
    }
    
    .hero-section .container {
        padding: 0 15px;
    }
    
    .hero-section h1 {
        font-size: 14px !important;
        line-height: 1.3 !important;
		margin-top: 10px !important;
        margin-bottom: 2px !important;
        font-weight: 600 !important;
    }
    
    .hero-section p {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }
    
    /* Top Panel */
    .top-panel {
        padding: 6px 0 !important;
        font-size: 11px;
    }
    
    .top-panel .container {
        padding: 0 10px;
    }
    
    .top-link {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
    
    /* Search Box */
    .search-box {
        flex-direction: column;
        padding: 15px;
        gap: 12px;
        margin-top: 15px !important;
    }
    
    .search-box .col-md-3,
    .search-box .col-md-2 {
        width: 100%;
        max-width: 100%;
    }
    
    .search-box label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .search-box .form-control,
    .search-box .btn {
        font-size: 14px;
        padding: 10px;
    }
    
    .search-box .d-flex.align-items-end {
        margin-top: 8px;
    }
    
    /* Discounts Section */
    .discounts-section {
        padding-top: 25px;
    }
    
    .discounts-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
	.restaurant-column {
			flex: 0 0 50%;
			max-width: 50%;
			padding: 0.25rem;
			margin-bottom: 10px;
		}
    
    .restaurant-card {
        margin-bottom: 12px;
    }
    
    .discount-badge {
        font-size: 16px;
        padding: 6px 10px;
        top: 8px;
        right: 8px;
    }
    
    .urgency-banner {
        font-size: 11px;
        padding: 5px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .discount-title {
        font-size: 13px;
    }
    
    .discount-desc {
        font-size: 11px;
    }
    
    .promo-code-box {
        padding: 8px;
        margin: 8px 0;
    }
    
    .promo-code {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .promo-code-box small {
        font-size: 9px;
    }
    
    .time-restriction {
        font-size: 11px;
    }
    
    .card-text {
        font-size: 12px;
    }
    
    .card .btn {
        font-size: 13px;
        padding: 8px;
    }
    
    /* Recommended Restaurants */
    .container.my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .container.my-5 h2 {
        font-size: 20px;
    }
    
    .card-img-top {
        height: 160px;
        object-fit: cover;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-body .btn {
        font-size: 13px;
        padding: 8px;
    }
    
    .modal-body input {
        font-size: 13px;
        padding: 8px;
    }
    
    /* Footer */
    footer {
        padding: 15px 10px;
        font-size: 11px;
    }
    
    footer p {
        margin-bottom: 6px;
    }
    
    footer a {
        font-size: 11px;
    }
}

/* Dla bardzo małych ekranów (< 400px) */
@media (max-width: 400px) {
    .fixed-panel .square-btn {
        font-size: 8px !important;
        padding: 5px 3px !important;
    }
    
    .hero-section {
        padding: 20px 10px 15px !important;
        margin-top: 55px !important;
    }
    
    .hero-section h1 {
        font-size: 18px !important;
    }
    
    .hero-section p {
        font-size: 12px !important;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .discount-badge {
        font-size: 14px;
        padding: 5px 8px;
    }
}

/* Poprawki dla layoutu */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* NADPISANIE dla mobile - na samym końcu pliku */
@media (max-width: 768px) {
    .square-btn {
        height: 32px !important;
        max-height: 32px !important;
    }
}

.action-card {
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

.card-header.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* ========================================
   Maskowanie numeru telefonu
   ======================================== */

.phone-masked {
    position: relative;
}
.phone-masked .phone-display {
    cursor: pointer;
    user-select: none;
}
.phone-masked .phone-real {
    display: none;
}
.phone-masked:hover .phone-display,
.phone-masked:focus-within .phone-display {
    display: none;
}
.phone-masked:hover .phone-real,
.phone-masked:focus-within .phone-real {
    display: inline;
}
/* ========================================
   Maskowanie numeru telefonu
   ======================================== */
   
   
/* Klikalny obrazek restauracji */
.restaurant-image-link {
    display: block;
    overflow: hidden;
}

.restaurant-image-link img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.restaurant-image-link:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.qr-promo-item {
    transition: all 0.3s;
}

.qr-promo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.15);
}

.qr-promo-item:last-child {
    margin-bottom: 0 !important;
}
/* ./restaurant_owner/my_promotions.php */
.bg-purple {
	background-color: #6f42c1 !important;
	color: white;
}


/* ========================================
   Menu - restaurant owner
   ======================================== */
/* Tabela menu */
.table-responsive {
    overflow-x: auto;
    margin-top: 15px;
}

.menu-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-table thead {
    background: #2c3e50;
    color: white;
}

.menu-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.menu-table td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.menu-table tbody tr:hover {
    background-color: #f8f9fa;
}

.menu-table tbody tr.unavailable {
    background-color: #f5f5f5;
    opacity: 0.7;
}

.menu-table tbody tr.unavailable:hover {
    background-color: #eeeeee;
}

.item-name {
    font-weight: 600;
    color: #2c3e50;
    min-width: 150px;
}

.item-description {
    color: #666;
    font-size: 14px;
    max-width: 300px;
}

.item-description em {
    color: #999;
}

.item-price {
    font-weight: bold;
    color: #CC3333;
    white-space: nowrap;
    font-size: 16px;
}

.item-sort {
    text-align: center;
    color: #888;
}

.item-actions {
    white-space: nowrap;
    display: flex;
    gap: 8px;
}

/* Responsive dla tabeli */
@media (max-width: 768px) {
    .menu-table th,
    .menu-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .item-description {
        max-width: 150px;
    }
    
    .btn-edit, .btn-delete {
        padding: 5px 8px;
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .menu-table {
        font-size: 12px;
    }
    
    .menu-table th:nth-child(2),
    .menu-table td:nth-child(2),
    .menu-table th:nth-child(5),
    .menu-table td:nth-child(5) {
        display: none; /* Ukryj opis i kolejność na małych ekranach */
    }
}
/* ========================================
   Menu - restaurant owner
   ======================================== */
   
   

/* ============ BANERY WSZYSTKICH PROMOCJI ============ */
/* ============ Strona restaurant.php      ============ */
.qr-promotions-banner {
    border-top: 2px solid rgba(255,255,255,0.2);
}

.qr-promo-mini {
    transition: all 0.2s ease;
}

.qr-promo-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}
/* ============ BANERY WSZYSTKICH PROMOCJI ============ */

/* ============ Stwórz promocję ============ */
/* ============ /restaurant_owner/promotion_self_generate.php ============ */
#promo_code_section {
    transition: opacity 0.3s ease;
}
#no_code_info {
    transition: opacity 0.3s ease;
}
.fade-out {
    opacity: 0;
    pointer-events: none;
}
/* ============ Stwórz promocję ============ */


/* ============ PROMOTIONS - /restaurant.php ============ */
.promotions-section {
    background: linear-gradient(135deg, #e8847c 0%, #ee6b6e 50%, #e85d5d 100%);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.promotions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.promotions-section > .container {
    position: relative;
    z-index: 1;
}

/* Pojedyncza karta promocji */
.promo-item {
    position: relative;
    z-index: 1;
    padding: 1rem 0;
}

.promo-item:first-child {
    padding-top: 0;
}

.promo-item:last-child {
    padding-bottom: 0;
}

.promo-item + .promo-item {
    border-top: 1px solid rgba(255,255,255,0.15);
}

.promo-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Badge z rabatem */
.promo-badge {
    background: white;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    min-width: 75px;
    max-width: 90px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.promo-badge-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: #dc3545;
    line-height: 1;
    display: block;
}

.promo-badge-text.gratis {
    font-size: 1rem;
    font-style: italic;
    color: #28a745;
}

/* Treść promocji */
.promo-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.promo-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.promo-title i {
    color: #ffd700;
    flex-shrink: 0;
}

.promo-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.promo-conditions {
    color: rgba(255,255,255,0.95);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.promo-conditions strong {
    color: white;
}

/* Meta informacje (kod, data) */
.promo-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.promo-code-box {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
}

.promo-code-box i {
    opacity: 0.8;
}

.promo-code-value {
    background: #ffd700;
    color: #333;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.promo-code-value:hover {
    background: #ffe44d;
}

.promo-code-copy {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.15rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.promo-code-copy:hover {
    opacity: 1;
}

.promo-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
}

/* Status i akcje */
.promo-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.promo-status-badge {
    background: linear-gradient(135deg, #28a745 0%, #20963c 100%);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.4);
    white-space: nowrap;
}

.promo-status-badge.inactive {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 3px 10px rgba(108, 117, 125, 0.4);
}

/* Przycisk QR */
.promo-qr-action {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
    font-size: 0.8rem;
}

.promo-qr-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.promo-qr-btn.generate {
    background: white;
    color: #28a745;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.promo-qr-btn.generate:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #28a745;
}

.promo-qr-btn.view {
    background: #28a745;
    color: white;
    box-shadow: 0 3px 10px rgba(40,167,69,0.3);
}

.promo-qr-btn.view:hover {
    background: #218838;
    transform: scale(1.05);
    color: white;
}

.promo-qr-btn i {
    font-size: 1.1rem;
}

/* Przycisk regulaminu */
.promo-terms-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.promo-terms-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.6);
    color: white;
}

/* ============ RESPONSYWNOŚĆ ============ */
@media (max-width: 991px) {
    .promo-badge {
        min-width: 70px;
        padding: 0.6rem 0.8rem;
    }
    
    .promo-badge-text {
        font-size: 1.2rem;
    }
    
    .promo-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .promotions-section {
        padding: 1rem 0;
    }
    
    .promo-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .promo-badge {
        min-width: 65px;
        padding: 0.5rem 0.7rem;
    }
    
    .promo-badge-text {
        font-size: 1.1rem;
    }
    
    .promo-content {
        flex: 1 1 calc(100% - 85px);
    }
    
    .promo-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .promo-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .promo-badge {
        min-width: 80px;
    }
    
    .promo-content {
        width: 100%;
    }
    
    .promo-title {
        justify-content: center;
    }
    
    .promo-meta {
        justify-content: center;
    }
    
    .promo-actions {
        justify-content: center;
    }
}
/* ============ END PROMOTIONS ============ */


/* ========== INDEX.PHP - MOBILE Lista stron użytkownika np. my_reservation ========== */
/* ========== INDEX.PHP - MOBILE Lista stron użytkownika np. my_reservation ========== */

@media (max-width: 767px) {
    .mobile-user-dropdown .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        min-width: 200px;
        z-index: 1050;
        border-radius: 12px;
        border: none;
        margin-top: 8px;
    }
    
    /* Ukryj przycisk "Pobierz aplikację" na mobile */
    .btn-download {
        display: none !important;
    }
    
    /* ===== Dropdown użytkownika - wyrównanie do prawej ===== */
    .mobile-user-dropdown {
        margin-right: auto;
    }
    
    /* ===== Przycisk z emailem ===== */
    .fixed-panel .mobile-user-dropdown .btn-user-account {
        padding: 4px 10px;
        font-size: 12px;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1px;
        white-space: nowrap;
    }
    
    /* Ikona użytkownika */
    .mobile-user-dropdown .btn-user-account .bi-person-circle {
        font-size: 14px;
    }
    
    /* Email */
    .user-email-mobile {
        font-size: 12px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    /* Trójkącik dropdown - zawsze z prawej */
    .mobile-user-dropdown .btn-user-account.dropdown-toggle::after {
        margin-left: 6px;
        vertical-align: middle;
    }
}

/* Dla bardzo małych ekranów */
@media (max-width: 400px) {
    .user-email-mobile {
        max-width: 90px;
        font-size: 10px;
    }
    
    .fixed-panel .mobile-user-dropdown .btn-user-account {
        padding: 4px 8px;
        gap: 4px;
    }
    
    .mobile-user-dropdown .btn-user-account .bi-person-circle {
        font-size: 14px;
    }
}
/* ========== INDEX.PHP - MOBILE - UŻYTKOWNIK ========== */

/* Email użytkownika na mobile - BAZOWE (poza media query) */
.user-email-mobile {
    font-size: 12px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 767px) {
    /* Dropdown menu pozycjonowanie */
    .mobile-user-dropdown .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        min-width: 200px;
        z-index: 1050;
        border-radius: 12px;
        border: none;
        margin-top: 8px;
    }
    
    /* Ukryj przycisk "Pobierz aplikację" na mobile */
    .btn-download {
        display: none !important;
    }
    
    /* ===== NAPRAWIONE - Fixed panel layout ===== */
    .fixed-panel .container {
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 10px;
        padding: 0 10px !important;
    }
    
    /* Kontener przycisków - wyrównanie do prawej */
    .fixed-panel .d-flex.gap-3 {
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: auto !important;
        gap: 8px !important;
    }
    
    /* ===== Przycisk z emailem użytkownika ===== */
    .fixed-panel .mobile-user-dropdown .btn-user-account {
        padding: 4px 10px;
        font-size: 12px;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px;
        white-space: nowrap;
    }
    
    /* Ikona użytkownika */
    .mobile-user-dropdown .btn-user-account .bi-person-circle {
        font-size: 16px;
    }
    
    /* Trójkącik dropdown - z prawej strony */
    .mobile-user-dropdown .btn-user-account.dropdown-toggle::after {
        margin-left: 6px;
        vertical-align: middle;
    }
}

/* Bardzo małe ekrany */
@media (max-width: 400px) {
    .user-email-mobile {
        max-width: 90px;
        font-size: 10px;
    }
    
    .fixed-panel .mobile-user-dropdown .btn-user-account {
        padding: 4px 8px;
        gap: 4px;
    }
    
    .mobile-user-dropdown .btn-user-account .bi-person-circle {
        font-size: 14px;
    }
}

/* ========== KONIEC SEKCJI MOBILE USER ========== */

/* Przycisk "Pobierz aplikację" w górnym panelu */
.btn-download-top {
    background-color: #911003;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    width: fit-content;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-download-top:hover {
    background-color: #e65a50;
    color: white;
    text-decoration: none;
    transform: scale(1.1);
}


/* ========== PRZYCISK UŻYTKOWNIKA W FIXED-PANEL ========== */

/* Email w przycisku */
.user-email-display {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown toggle - usuń domyślny styl strzałki */
.fixed-panel .square-btn.dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
}

/* Dropdown menu */
.fixed-panel .dropdown-menu {
    min-width: 220px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-top: 5px;
}

.fixed-panel .dropdown-item {
    padding: 10px 16px;
    font-size: 14px;
}

.fixed-panel .dropdown-item:hover {
    background-color: #f8f9fa;
}

.fixed-panel .dropdown-item i {
    width: 20px;
}

/* Mobile */
@media (max-width: 576px) {
    .user-email-display {
        max-width: 100px;
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .user-email-display {
        max-width: 70px;
    }
}


/* ========== LOKALIZACJA W HERO - KOMPAKTOWA ========== */
.current-location-display {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(5px);
    flex-wrap: nowrap; /* Nie zawijaj! */
    white-space: nowrap;
}

.location-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.city-name {
    color: #fff;
    font-size: 1rem;
}

.region-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* Przycisk zmiany - kompaktowy */
.btn-change-city {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 15px;
    white-space: nowrap;
}

/* ===== MOBILE ===== */
@media (max-width: 576px) {
    .current-location-display {
        padding: 0.4rem 0.75rem;
        gap: 0.3rem;
        font-size: 0.85rem;
    }
    
    .location-label {
        font-size: 0.75rem;
    }
    
    /* Ukryj tekst "Wybrane miasto:" na mobile - zostaw tylko emoji */
    .location-label-text {
        display: none;
    }
    
    .city-name {
        font-size: 0.9rem;
    }
    
    /* Ukryj region na mobile */
    .region-name {
        display: none;
    }
    
    /* Przycisk: tylko ikonka */
    .btn-change-city .btn-text {
        display: none;
    }
    
    .btn-change-city {
        padding: 0.2rem 0.4rem;
    }
}

/* ========== MODAL WYBORU MIASTA ========== */
#cityModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#citySearch {
    border-radius: 8px;
}

#citySearch:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    border-color: #28a745;
}

.city-quick-btn {
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    transition: all 0.2s;
}

.city-quick-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.city-select-btn {
    color: #333;
    font-size: 0.9rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    transition: all 0.15s;
}

.city-select-btn:hover {
    background: #f0f7ff;
    color: #007bff;
}

.region-header {
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #6c757d !important;
}

.city-list {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f8f9fa;
}

.city-list::-webkit-scrollbar {
    width: 6px;
}

.city-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.city-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.city-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Ukrywanie podczas wyszukiwania */
.city-item.hidden,
.region-group.hidden {
    display: none !important;
}\

/* ========== LOKALIZACJA W HERO ========== */


