@font-face {
  font-family: "Tccc-Unitytext-Bold";
  font-style: normal;
  font-display: block;
  src: url("../fonts/TCCC-UnityText_CYR-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Tccc-Unitytext-Light";
  font-style: normal;
  font-display: block;
  src: url("../fonts/TCCC-UnityText_CYR-Light.woff2") format("woff2");
}

@font-face {
  font-family: "Tccc-Unitytext-Regular";
  font-style: normal;
  font-display: block;
  src: url("../fonts/TCCC-UnityText_CYR-Regular.woff2") format("woff2");
}

/* ==========================================
   ZMIENNE CSS - CENTRALNE DEFINICJE
   ========================================== */
:root {
  /* Kolory Coca-Cola */
  --color-coca-red: #F40009;
  --color-black: #000;
  --color-white: #fff;
  --color-gray-light: #d9d9d9;
  --color-gray-medium: #dcdcdc;
  --color-gray-dark: #a0a0a0;
  --color-text-dark: #1a1a1a;
  --color-text-muted: #353535;

  /* Czcionki */
  --font-regular: 'Tccc-Unitytext-Regular', sans-serif;
  --font-bold: 'Tccc-Unitytext-Bold', sans-serif;
  --font-light: 'Tccc-Unitytext-Light', sans-serif;

  /* Rozmiary */
  --btn-height: 50px;
  --border-radius: 0;
  --spacing-sm: 5px;
  --spacing-md: 15px;
  --spacing-lg: 25px;

  /* Cienie */
  --shadow-light: 0px 4px 10px rgba(0,0,0,0.05);
  --shadow-medium: 0px 4px 10px rgba(0,0,0,0.3);

  --header-height: 80px;
}



html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-regular) !important;
  font-size: 16px;
  color: var(--color-black) !important;
  background-color: var(--color-white);
}


.modal-body p {
  color: #353535;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.animate {
  opacity: 0;
  animation-name: fadeIn;
  animation-duration: 0.7s;
  animation-fill-mode: forwards;
}

.d-none {
  display: none !important;
}

/* ==========================================
   UNIWERSALNE KLASE UTILITY
   ========================================== */

/* Przyciski bazowe */
.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-bold);
  font-size: 16px;
  height: var(--btn-height);
  padding: 0 var(--spacing-md);
  border-radius: var(--border-radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--color-coca-red);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #d10005; /* Ciemniejszy czerwony */
}

.btn-secondary {
  background-color: var(--color-gray-light);
  color: var(--color-black);
}

.btn-secondary:hover {
  background-color: #c0c0c0;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-black);
  color: var(--color-black);
}

.btn-outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Inputy bazowe */
.input {
  border: 2px solid var(--color-black);
  height: var(--btn-height);
  box-sizing: border-box;
  padding: 0 var(--spacing-md);
  font-size: 16px;
  font-family: var(--font-regular);
  border-radius: var(--border-radius);
  outline: none;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: var(--color-coca-red);
}

.input-red {
  border-color: var(--color-coca-red);
  color: var(--color-coca-red);
}

.input-red::placeholder {
  color: var(--color-coca-red);
}

/* Tekst błędów */
.error-text {
  color: var(--color-coca-red);
  font-size: 11px;
  font-family: var(--font-bold);
  margin-top: var(--spacing-sm);
  height: 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-bold);
}

h1 {
  font-size: 24px !important;
  line-height: 30px !important;
}

h2 {
  font-size: 40px !important;
  line-height: 44px !important;
}

h3 {
  font-size: 18px !important;
  font-family: var(--font-regular);
}

.qr-icon {
    stroke: var(--color-black);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

.close-icon {
    stroke: #999;
}

/* --- BUTTONS --- */
.btn-red {
    width: 100%;
    background-color:  #F40009 ;
    color: white;
    border: none;
    padding: 15px;
    font-family: 'Tccc-Unitytext-Regular', sans-serif;
    text-transform: uppercase;
    font-size: 16px ;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-outline{
    width: 100%;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid black !important ;
    color: black;
    border: none;
    padding: 15px;
    font-family: 'Tccc-Unitytext-Regular', sans-serif;
    text-transform: uppercase;
    font-size: 16px ;
    letter-spacing: 1px;
    cursor: pointer;
}

/*Text*/
.title {
  font-family: 'Tccc-Unitytext-Regular', sans-serif !important;
  font-weight: normal;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}


/* Link tekstowy "CHANGE TEAM" z podkreśleniem */
.btn-link {
    background: rgba(0, 0, 0, 0) !important;
    border: none !important;
    color: #F40009 !important; /* Możesz zmienić na np. #a0a0a0 jeśli wolisz szary */
    font-family: 'Tccc-Unitytext-Bold', sans-serif !important;
    font-size: 16px !important;
    text-transform: uppercase;
    text-decoration: underline !important; /* Podkreślenie */
    /* text-underline-offset: 4px;  */
    cursor: pointer;
    padding: 8px 0 !important; /* Drobny padding, by łatwiej było trafić palcem na telefonie */
    outline: none !important;
    width:100%;
}



/* ==========================================
   HEADER
   ========================================== */
/* 
.header-custom {
  height: var(--header-height);
  border-bottom: 1px solid #dcdcdc;
  box-sizing: border-box;


  display: flex;
  align-items: flex-end; 
  justify-content: space-between; 
  padding: 0 var(--spacing-md) 10px var(--spacing-md); 
  background-color: var(--color-white);
}
.header-custom .img-logo {
    height: 45px;    
   
    cursor: pointer;

}

.header-custom .back-btn {
  margin-top: 0 !important; 
  display: flex;
  align-items: center;
}

    .header-custom .back-btn img{
        max-height: 45px;
    }  */

.header-custom {
  height: var(--header-height);
  border-bottom: 1px solid #dcdcdc;
  box-sizing: border-box;

  display: flex;
  align-items: flex-end; /* Wyrównuje logo do dołu */
  justify-content: center; /* Zabezpiecza logo na idealnym środku */
  
  /* ZMIANA: Zmniejszyłem dolny odstęp z 10px na 2px (możesz dać 0, jeśli mają dotykać ramki) */
  padding: 0 var(--spacing-md) 10px var(--spacing-md); 
  background-color: var(--color-white);
}

.header-custom .img-logo {
  height: 45px; 
  cursor: pointer;
  /* display: block; upewnia się, że pod obrazkiem nie ma ukrytych marginesów */
  display: block; 
}

.header-custom .back-btn {
  /* ZMIANA: Skoro przycisk jest position-absolute, musimy go przyciągnąć do dołu ręcznie */
  bottom: 2px; /* Daj tutaj DOKŁADNIE TAKĄ SAMĄ WARTOŚĆ co padding-bottom w .header-custom */
  margin-top: 0 !important; 
  display: flex;
  align-items: center;
}

.header-custom .back-btn img {
  max-height: 45px;
}
/* ==========================================
   HOME
   ========================================== */
.section-2-wrapper {
    position: relative; 
    display: flex;
    flex-direction: column;
    
    background-image: url('../img/bg.jpg'); 
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;

    margin: 0 !important; 
    padding: 0 !important; 
    overflow: hidden;
    
    min-height: calc(100vh - var(--header-height));

}

/* Warstwa z postaciami (bez zmian) */
.home-characters {
    position: absolute;
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%); 
    width: 100%; 
    max-width: 600px; 
    height: auto;
    max-width: 480px;
    z-index: 1; 
    pointer-events: none; 
}
.home-characters img{
  width: 100%;
  height: auto; 
}

.home-characters::after{
  content: ''; 
  width: 80px; 
  height: 80px;
  position: absolute; 
  top:0; 
  left:2em; 
  background-image: url('../img/SvFF_logo.png'); 
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  transform: translateY(-50%);
}
/* Kontener na przyciski */
.home-content {
    position: relative;
    z-index: 2; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    flex-grow: 1; 
    
    padding: 2.5rem 2rem 1.5rem 2rem;
}


/* Białe przyciski na górze */
.home-top-btn {
    background-color: #fff;
    border: 2px solid #F40009;
    color: #F40009;

    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 12px 5px;
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
}

.home-top-btn:active {
    background-color: #f8f8f8;
    transform: translateY(1px);
}

/* Duży przycisk VOTE na dole */
.btn-home-vote {
    background-color: var(--color-coca-red);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    font-family: var(--font-bold);
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    padding: var(--spacing-md);
    width: 100%;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: background-color 0.2s;
}

.btn-home-vote:active {
    background-color: #F40009;
    transform: translateY(2px);
}

/* ==========================================
   HOW TO PLAY
   ========================================== */

.swiper.how-to-swiper {
    /* Wysokość: 100vh - 62px headera */
  height: calc(100vh - var(--header-height));
    width: 100%; /* Pełna szerokość */
    
    /* GRUBA CZERWONA RAMKA OGRANICZAJĄCA CAŁY SLIDER */
    border: 5px solid #F40009 !important; 
    
    /* BARDZO WAŻNE: Ramka wlicza się do rozmiaru elementu */
    box-sizing: border-box !important; 
    
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Zapobiega wystawaniu treści poza ramkę */
}

/* --- KONTENER NA SLAJDY --- */
.swiper.how-to-swiper .swiper-wrapper {
    height: 100%;
    display: flex;
}

/* --- POJEDYNCZY SLAJD (JAKO FLEXBOX) --- */
.swiper.how-to-swiper .swiper-slide {
    height: 100% !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Treść od góry */
    background: #F3F3F3;
}

.swiper.how-to-swiper .swiper-slide p{
    font-size: 0.75rem;
}

/* --- OBRAZEK NA GÓRZE --- */
.swiper.how-to-swiper .slide-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- PAGINACJA (ABSOLUTNIE NA DOLE) --- */
.swiper.how-to-swiper .swiper-pagination {
    position: absolute !important;
    /* Pozycjonujemy względem dolnej ramki rodzica */
    bottom: 30px !important; 
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 10;
    width: auto !important;
    /* Upewniamy się, że kropki są wyśrodkowane wierszowo */
    display: flex !important;
    justify-content: center;
    align-items: center;
}

/* --- TWOJE KROPKI (KWADRATY) --- */
.swiper.how-to-swiper .swiper-pagination-bullet {
    width: 18px !important;
    height: 18px !important;
    border-radius: 0 !important;
    border: 2px solid #F40009 !important;
    background: transparent !important;
    opacity: 1 !important;
    margin: 0 7px !important;
    display: inline-block;
}

.swiper.how-to-swiper .swiper-pagination-bullet-active {
    background-color: #F40009 !important;
}




/* ==========================================
   RANKING
   ========================================== */
.ranking-view-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}
.ranking-red-box {
   flex-grow: 1;
    margin: var(--spacing-md);
    border: 6px solid var(--color-coca-red);
      background-color: rgb(243, 243, 243);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#rankings-results-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
}

/* === OBSZAR LISTY I SCROLLA =============== */
.ranking-scroll-area {
    flex-grow: 1;
    overflow-y: auto; /* Włącza pionowy pasek przewijania */
    min-height: 0; /* Wymusza trzymanie się w granicach rodzica */
    padding: 10px 0;
}
.ranking-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;

    cursor: pointer;
    transition: background-color 0.2s;
}
.ranking-list-item.selected-red {
    background-color: #F40009 !important;
    color: white !important;
    border: 2px solid white; 
}

/* === TOP 3 (ŁEZKI I TEKSTY) =============== */
.rank-badge {
    color: #000;
    font-weight: bold;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    background-image: url('../img/rank-badge.png'); 
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
.selected-red .rank-badge {

    color: #F40009 !important;
}
.rank-number {
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-size: 14px;
    min-width: 25px; /* Stała szerokość dla wyrównania nazw */
}
.club-name {
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-size: 16px;
    display: block;
}
.ranking-list .club-name {
     font-family: 'Tccc-Unitytext-Regular', sans-serif;
}
.club-code {
    font-size: 11px;
    color: #888;
}
.selected-red .club-code {
    color: rgba(255, 255, 255, 0.7);
}
.club-votes {
    font-family: 'Tccc-Unitytext-Regular', sans-serif;
    font-size: 14px;
    margin-left: auto; /* Wypycha głosy do prawej */
}

/* === STOPKA (PAGINACJA I VOTE)============= */
.ranking-footer-container {
    flex-shrink: 0; /* ZABRANIA stopce kurczenia się i znikania */
    padding: 0px;
    z-index: 10;
}
.ranking-pagination {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding:  10px 15px; 

    min-height: 30px; /* Rezerwuje miejsce, by paginacja nie skakała */
}
.page-btn {
    border: none;
    background: transparent;
    font-family: 'Tccc-Unitytext-Regular', sans-serif;
    padding: 5px 8px;
    cursor: pointer;
}
.page-btn.active {
    color: var(--color-coca-red);
    font-weight: bold;
}
.btn-vote-main {
    width: 100%;
    background-color: var(--color-coca-red);
    color: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 16px;
    font-family: var(--font-bold);
    font-size: 18px;
    text-transform: uppercase;
}
.btn-underline {
    width: 100%;
    color: var(--color-coca-red);
    border: none;
    text-decoration: underline;
    font-family: var(--font-bold);
    font-size: 18px;
    padding: 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}
/* --- KONTENER DLA DWÓCH PRZYCISKÓW --- */
.action-buttons-wrapper {
    display: flex;
    width: 100%;
    /* Dodajemy górny border, żeby odciąć przyciski od paginacji, 
       szczególnie lewy biały przycisk zlewałby się z tłem */
    border-top: 2px solid #F40009; 
}

/* --- LEWY PRZYCISK (BIAŁY) --- */
.btn-half-white {
    flex: 1; /* Zajmuje równe 50% */
    background-color: #ffffff;
    color: #F40009;
    border: none;
    padding: 1rem 0;
    cursor: pointer;
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
}

/* Efekt podkreślenia dla tekstu na lewym przycisku */
.btn-half-white .underline-text {
    text-decoration: underline;
    text-underline-offset: 3px; /* Odsunięcie linii od tekstu, żeby wyglądało estetyczniej */
}

.btn-half-white:hover {
    background-color: #ffffff; /* Delikatny efekt hover */
}

/* --- PRAWY PRZYCISK (CZERWONY) --- */
.btn-half-red {
    flex: 1; /* Zajmuje równe 50% */
    background-color: #F40009;
    color: #ffffff;
    border: none;
    padding: 1rem 0;
    cursor: pointer;
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    text-align: center;
}

.btn-half-red:hover {
    background-color: #d40008; /* Ciemniejszy czerwony na hover */
}

/* === WYSZUKIWARKA (HEADER) ================ */
.ranking-title {
    font-family: var(--font-bold);
    font-size: 36px;
}

.ranking-search-btn {
    background: none;
    border: 1px solid rgb(243, 243, 243);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-search-input {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;

    height: var(--btn-height);
    padding: 0 var(--spacing-md) 0 20px;

    background-color: var(--color-white);
    border: none;
    border-radius: 0 50px 50px 50px;

    font-size: 14px;
    font-family: var(--font-bold);
    color: var(--color-coca-red);
    outline: none;
}

.ranking-search-input::placeholder {
    color: var(--color-coca-red);
    font-family: var(--font-bold);
    text-transform: uppercase;
    opacity: 1;
}
.ranking-search-input.text-black {
      color: var(--color-black);
}

.ranking-search-input.text-black::placeholder {
     color: black;

}

/* --- KONTENER DROPDOWNU --- */
.custom-dropdown-wrapper {
    position: relative;
    width: 100%;
    padding-left: 1rem ; 
    padding-right: 1rem;
}
/* --- PRZYCISK SORTOWANIA (PIGUŁKA) --- */
.custom-sort-btn, .custom-year-btn{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px; /* Taka sama wysokość jak wyszukiwarka */
    padding: 0 20px;
    background-color: #ffffff;
    border: none;
    border-radius: 50px; 
    cursor: pointer;
    /* Typografia */
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    border-radius: 0 25px 25px 25px;
}
.custom-sort-btn.open, .custom-year-btn.open {
    border-radius: 0 25px 0 0;
}
/* Animacja strzałki */
.custom-sort-icon {
    transition: transform 0.2s ease-in-out;
}

/* --- MENU ROZWIJANE (BIAŁY BOX) --- */
.custom-sort-menu, .custom-year-menu {
    position: absolute;
    top: calc(100% ); 
    
    /* ZAMIAST w-100 (width: 100%), ROZCIĄGAMY KRAWĘDZIE: */
    left: 0;
    right: 0;
    
    /* TERAZ MOŻESZ DODAĆ DOWOLNY MARGINES! */
    /* Np. margin: 0 10px; sprawi, że menu będzie po 10px węższe z każdej strony niż przycisk */
    margin: 0 1rem; 
    
    background-color: #ffffff;
    border-bottom-left-radius: 20px; 
    border-bottom-right-radius: 20px;


    z-index: 100;
        max-height: 240px;
    overflow-y: scroll;
}
.custom-year-menu {
      margin: 0 !important; 
}
/* --- POJEDYNCZE OPCJE W MENU --- */
.custom-sort-option {
    padding: 12px 20px;
    font-family: var(--font-regular) !important;
    font-size: 14px;
    color: var(--color-black);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-sort-option:hover {
    background-color: #f8f9fa;
    color: var(--color-coca-red);
}
/* ==========================================
   EKRAN WYBORU KLUBU (Choose a club)
   ========================================== */
.manual-search-wrapper {
    display: flex;
    align-items: center; /* Zmienione ze stretch, żeby elementy były wyśrodkowane w pionie */
    justify-content: space-between;
    gap: 10px; /* Odstęp między inputem a QR */
    width: 100%;
    box-sizing: border-box;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    
}

/* --- POLE TEKSTOWE (INPUT) --- */
.ranking-search-input2 {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px; /* Trochę wyższy, żeby wyglądał masywniej jak na projekcie */
    padding: 0 20px 0 25px;
    
    background-color: #ffffff;
    border: none;
    border-radius: 0 50px 50px 50px; /* Ostry lewy-górny róg, reszta okrągła */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.06); /* Dodany miękki cień z projektu */
    outline: none;

    font-size: 14px;
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-weight: 800;
    color: #F40009;
}

/* Stan :focus - zapobiega brzydkiej domyślnej ramce przeglądarki */
.ranking-search-input:focus {
    box-shadow: 0px 4px 15px rgba(244, 0, 9, 0.15); /* Cień lekko zabarwia się na czerwono przy kliknięciu */
}

/* Placeholder */
.ranking-search-input::placeholder {
    color: #F40009;
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 1;
}

/* --- PRZYCISK SKANOWANIA QR --- */
.scan-qr-btn {
    display: flex;
    flex-direction: column; /* KLUCZOWE: Ikona nad tekstem, a nie obok */
    align-items: center;
    justify-content: center;
    gap: 4px; /* Mały odstęp między ikoną a tekstem */
    flex-shrink: 0;
    cursor: pointer;
    min-width: 60px; /* Utrzymuje stałą szerokość, żeby przycisk nie skakał */
}

/* Tekst pod QR */
.scan-qr-btn span {
    font-size: 9px; /* Bardzo mały tekst, jak na projekcie */
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-weight: 800;
    color: #000000;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
}

/* Szary przycisk Dropdown "SHOW ALL" */
.filter-dropdown-btn {
  width: 100%;
  height: var(--btn-height);
  background-color: var(--color-gray-light);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--spacing-md);
  font-family: var(--font-bold);
  font-size: 16px;
  color: var(--color-black);
  cursor: pointer;
  box-sizing: border-box;
  text-transform: uppercase;
}

/* ==========================================
   LISTA KLUBÓW W "CHOOSE A CLUB"
   ========================================== */
.club-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Odstępy między poszczególnymi elementami na liście (bez obramowań) */
}

.club-list-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.club-list-name {
  font-family: var(--font-regular);
  font-size: 18px;
  color: var(--color-black);
  line-height: 1.2;
}

.club-list-code {
  font-family: var(--font-regular);
  font-size: 13px;
  color: var(--color-gray-dark);
  line-height: 1.2;
  margin-top: 2px;
}

/* ==========================================
   NIESTANDARDOWY DROPDOWN (SELECT)
   ========================================== */
.custom-dropdown-menu {
  position: absolute;
  top: 100%; /* Ustawia się dokładnie pod przyciskiem */
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #dcdcdc; /* Jasnoszara ramka */
  border-top: none; /* Brak górnej ramki, by płynnie łączyło się z szarym guzikiem */
  z-index: 1000;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.05);
  font-family: 'Tccc-Unitytext-Bold', sans-serif; /* Ta sama czcionka co w przycisku */
  font-size: 16px;
}

.custom-dropdown-item {
  padding: 10px 15px;
font-family: 'Tccc-Unitytext-Bold', sans-serif; /* Ta sama czcionka co w przycisku */
  font-size: 16px;
  color: #333;
  cursor: pointer;
  text-transform: uppercase;
  background-color: #fff;
  transition: background-color 0.2s ease;
}

/* Opcjonalny efekt hover po najechaniu na element listy */
.custom-dropdown-item:hover {
  background-color: #f5f5f5;
}

/* Klasa dodawana z poziomu JS by obrócić strzałkę */
.icon-rotated {
  transform: rotate(180deg);
}

/* Płynna animacja strzałki */
#sortDropdownIcon {
  transition: transform 0.3s ease;
}


/* Etykiety nad polami */
.details-label {
    font-family: 'Tccc-Unitytext-Regular', sans-serif;
    font-size: 14px;

}

/* Custom Radio Buttons (Kółka z kropką) */
.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-regular);
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: var(--color-white);
    border: 2px solid var(--color-black);
    border-radius: 50%;
}

.radio-container:hover input ~ .checkmark {
    background-color: #eee;
}

.radio-container input:checked ~ .checkmark {
    border-color: var(--color-coca-red);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked ~ .checkmark:after {
    display: block;
}

.radio-container .checkmark:after {
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-coca-red); /* Czerwona kropka w środku */
}

/* Przycisk VOTE na dole */

.error-text {
    color:  #F40009 ; /* Czerwony Coca-Cola */
    font-size: 11px;
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    margin-top: 5px;
    height: 14px; /* Stała wysokość zapobiega "skakaniu" elementów */
    text-transform: uppercase;
}

/* Opcjonalnie: zmiana ramki inputa na czerwoną przy błędzie */
.input-invalid {
    border-color: var(--color-coca-red) !important;
}

/* ==========================================
   MODAL POTWIERDZENIA (Zgodnie z obrazkiem f8b50b.png)
   ========================================== */

.custom-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    z-index: 99999 !important; /* Przykrywa całą aplikację */
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Przyklejony do dołu */
    animation: fadeIn 0.3s ease forwards;
}

.custom-modal-box {
    background-color: #fff;
    width: 100%;

    box-shadow: 0px -5px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Czyste docięcie przycisków */
    transform: translateY(100%);
    animation: slideUp 0.35s ease-out forwards;
    margin: 6px;
}

/* Teksty wewnątrz */
.modal-content-wrapper {
    padding: 35px 25px 40px 25px; /* Duży padding wokół tekstu */
}

.modal-close{
position: absolute !important;
  display: block;
  top: 15px; right: 15px; cursor: pointer;
}

.modal-pre-title {
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-size: 24px ;
    line-height: 1.2;
    color: #000 ;
    text-align: center;


}

.modal-club-name {
    font-family: 'Tccc-Unitytext-Regular', sans-serif;
    font-size: 18px;
    color: #000;
    line-height: 1.2;
    word-break: break-word;
}

.modal-team-details {

    font-family: 'Tccc-Unitytext-Regular', sans-serif;
    font-size: 14px !important; /* Gruby czarny tekst */
    color: #000 !important;
    /* text-transform: uppercase; */
}

.modal-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Wyśrodkowuje link w poziomie */
    width: 100%;

    padding: 0 !important; 
    margin: 0 !important;
}


/* Animacja */
@keyframes slideUp {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

/* ==========================================
   LOADER W MODALU (Kółko ładowania)
   ========================================== */

/* Wygląd i animacja kręcącego się kółka */
.custom-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3; /* Jasnoszary pierścień w tle */
    border-top: 5px solid #F40009; /* Czerwony element, który się kręci */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto; /* Wyśrodkowanie w poziomie */
}

/* Animacja obrotu o 360 stopni */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* ==========================================
   POPRAWIONE STYLES DLA GENEROWANEGO PLAKATU JPG
   Zapobiega błędom w "ukrytym kontenerze"
   ========================================== */

/* Główny kontener plakatu */
#votingPoster {
    background-color: #e61d2b !important; /* Wymuszony czerwony Coca-Cola */
    color: white !important;
    padding: 30px !important;
    border-radius: 12px !important; /* Nieco większe zaokrąglenie dla JPG */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    text-align: center;
    max-width: 400px; /* Stała szerokość dla przechwytywania */
    margin: 0 auto;
    font-family: 'Tccc-Unitytext-Bold', sans-serif; /* Wymuszona czcionka */
}

/* Główne nagłówki tekstu */
#votingPoster h2 {
    font-size: 26px !important;
    line-height: 1.2 !important;
    font-weight: bold !important;
    margin-bottom: 15px !important;
    text-transform: none !important; /* Zachowujemy małe i duże litery tak jak w HTML */
}

/* Nazwa drużyny na dole */
#votingPoster h3 {
    font-size: 20px !important;
    font-weight: bold !important;
    margin-top: 25px !important;
    text-transform: uppercase !important;
}

/* Stylowanie logo Coca-Cola */
#votingPoster img {
    display: block;
    margin: 0 auto;
}

/* Kontener na Kod QR (biały kwadrat) */
#votingPoster #posterQrCode {
    background-color: white !important;
    padding: 15px !important;
    display: inline-block !important;
    border-radius: 8px !important;
    margin-bottom: 25px !important;
    width: 190px !important; /* padding (15*2) + qr width (160) */
    height: 190px !important;
    box-sizing: border-box !important;
}

/* Wymuszenie wymiarów samego kodu QR narysowanego na Canvas */
#votingPoster #posterQrCode canvas {
    width: 160px !important;
    height: 160px !important;
}

/* Stylowanie listy instrukcji w formacie JPG */
#votingPoster .small-instructions-list {
    text-align: left;
    display: inline-block;
    max-width: 90%;
    margin: 0 auto;
}

#votingPoster .small-instructions-list p {
    font-family: var(--font-regular) !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    opacity: 0.85; /* Lekko stonowany biały tekst */
}


/* --- NAKŁADKA (OVERLAY) DLA SKANERA --- */
.qr-overlay {
    position: fixed; /* Przykrywa cały ekran telefonu */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Ciemne tło, by skupić wzrok na kamerze */
    backdrop-filter: blur(3px); /* Nowoczesny efekt lekkiego rozmycia tego co pod spodem */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Musi być absolutnie nad wszystkim */
}

/* Wymuszamy flexboxa, gdy element nie ma klasy d-none */
.qr-overlay:not(.d-none) {
    display: flex !important;
}

.qr-scanner-wrapper {
    width: 90%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ramka na wideo z kamery */
.qr-reader-box {
    width: 100%;
    border-radius: 20px; /* Ładne zaokrąglenie rogów wideo */
    overflow: hidden;
    border: 3px solid #F40009; /* Czerwona ramka dookoła kamery */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- NOWOCZESNY PRZYCISK CANCEL --- */
.btn-cancel-scan {
    background-color: #ffffff;
    color: #F40009;
    border: none;
    border-radius: 50px; /* Kształt pigułki nawiązujący do wyszukiwarki */
    padding: 12px 30px;
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-cancel-scan:hover {
    background-color: #f8f9fa;
    transform: scale(1.05); /* Lekkie powiększenie przy kliknięciu */
}

/* ==========================================
   VOTING
   ========================================== */
.vote-view-container{
    display: flex;
    flex-direction: column;
height: calc(100vh - var(--header-height));
    overflow: hidden;
}

.vote-red-box {
    flex-grow: 1;

    border: 6px solid var(--color-coca-red);
    background-color: rgb(243, 243, 243);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- STYLE PODSUMOWANIA GŁOSU --- */

.summary-club-name {
    font-family: var(--font-bold);
    font-size: 18px;
    color: var(--color-black);
    line-height: 1.2;
}

.summary-details-subtext {
    font-family: var(--font-regular);
    font-size: 14px;
    color: #333;
}

.summary-votes-subtext {
    font-family: var(--font-regular);
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    margin-left: 10px;
}

/* --- KONTENER LOADERA W MODALU --- */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Zamiast stylu inline */
    padding: 60px 20px 80px;
    
    /* Upewniamy się, że zajmuje odpowiednią przestrzeń */
    width: 100%;
    min-height: 250px; 
}



/* Spinner (zakładając, że masz już bazę, upewnijmy się że jest czerwony) */
.custom-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #F40009; /* Czerwień Coca-Coli */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- TOOLTIP KOPIOWANIA --- */
.copy-tooltip {
    visibility: hidden;
    width: 80px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px;
    position: absolute;
    z-index: 10;
    /* Pozycjonowanie dymka nad ikoną */
    bottom: 150%; 
    left: 50%;
    margin-left: -40px; /* Centrowanie (połowa szerokości) */
    
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* Żeby nie blokował kliknięć */
}

/* Mały trójkącik na dole dymka */
.copy-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Klasa aktywująca tooltip */
.copy-tooltip.show-tooltip {
    visibility: visible;
    opacity: 1;
}

.club-code-label{
  font-size: 14px; 
  color: gray; 
}
.club-code-display{
    font-family: 'Tccc-Unitytext-Bold', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
}

/* --- GLOBALNY LOADER (NAKŁADKA) --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.85); /* Lekko przezroczyste białe tło (lub zmień na czarne rgba(0,0,0,0.8), jeśli wolisz ciemne) */
    z-index: 999999; /* Musi być na samym szczycie (nad headerem i modalami) */
    backdrop-filter: blur(3px); /* Nowoczesny efekt lekkiego rozmycia aplikacji pod spodem */
}

/* Wewnętrzny kontener, który zawsze trzyma spinner na środku ekranu */
#loader .loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- GLOBALNA NAKŁADKA MESSAGE BOX --- */
.message-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* Ciemne tło */
    z-index: 999999; /* Zawsze na samej górze */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px); /* Rozmycie tła */
}

/* Wymuszenie flexboxa, gdy element jest widoczny */
.message-box-overlay:not(.d-none) {
    display: flex !important;
}

/* --- BIAŁE OKNO KOMUNIKATU --- */
.message-box-content {
    background: #ffffff;
    width: 85%;
    max-width: 350px;
    padding: 35px 25px;
    text-align: center;
    border: 3px solid var(--color-coca-red); /* Czerwona ramka Coca-Cola */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px; 
    position:relative;
}

/* --- SZARY BADGE Z KODEM --- */
.message-box-code-badge {
    display: inline-block;
   
    color: lightgray;
    padding: 5px 12px;
    font-family: var(--font-regular);
    font-size: 10px;

    position: absolute;
    top:5px; 
    right:5px; 
}