/* style.css - Wspólne style dla wszystkich stron Mapy Jury */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { 
  height: 100%; 
  background: black; 
  color: #f2f2f2; 
  font-family: "Plus Jakarta Sans", sans-serif; 
  overflow-x: hidden; 
}

/* === STYLE GŁÓWNEJ STRONY (index.html) === */
body.main-page { 
  background-image: url("../img/App_7.jpg"); 
  background-size: cover; 
  background-position: center; 
  background-attachment: fixed; 
  position: relative; 
}

body.main-page::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(circle at 50% 30%, rgba(0,255,224,0.15), rgba(0,0,0,0.95)); 
  pointer-events: none; 
}

/* === STYLE PODSTRONY FILTROWANIA (zestawienia/index.html) === */
body.filter-page { 
  background-image: url("../img/App_4.jpg"); 
  background-size: cover; 
  background-position: center; 
  background-attachment: fixed; 
  position: relative; 
}

body.filter-page::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: radial-gradient(circle at 50% 30%, rgba(0,255,224,0.12), rgba(0,0,0,0.95)); 
  pointer-events: none; 
}

/* === WSPÓLNE KONTENERY === */
.main-container { 
  position: relative; 
  z-index: 2; 
  max-width: 1280px; 
  margin: 0 auto; 
  padding: 60px 30px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  backdrop-filter: blur(2px); 
}

/* === HEADER - WSPÓLNY === */
.header-container {
  border-bottom: 1px solid rgba(0,255,224,0.3);
  padding: 20px 0;
  background-image: url("../img/App_4.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  margin-bottom: 5px;
}

.header-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-content img {
  height: 160px;
  border: 1px solid rgba(0,255,224,0.3);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,255,224,0.15);
}

.nav-icons {
  display: flex;
  gap: 15px;
}

.nav-icons a {
  transition: 0.3s;
  filter: grayscale(100%) brightness(0.6);
}

.nav-icons a:hover {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.1);
}

.nav-icons img {
  width: 34px;
  height: 34px;
}

/* === MENU GŁÓWNEJ STRONY === */
#menu { 
  display: flex; 
  justify-content: center; 
  flex-wrap: wrap; 
  gap: 40px; 
  margin-bottom: 60px; 
  border-bottom: 1px solid rgba(0,255,224,0.3); 
  padding-bottom: 20px; 
}

#menu figure { 
  text-align: center; 
  transition: all 0.3s ease; 
  filter: grayscale(100%) brightness(0.6); 
}

#menu figure:hover { 
  filter: grayscale(0%) brightness(1); 
  transform: scale(1.08); 
  text-shadow: 0 0 10px #00ffe0; 
}

figcaption { 
  margin-top: 10px; 
  font-size: 11pt; 
  color: #00ffe0; 
  text-shadow: 0 0 5px rgba(0,255,224,0.6); 
  letter-spacing: 1px; 
}

/* === TYTUŁY === */
.title2 { 
  text-align: center; 
  font-size: 1rem; 
  font-weight: 600; 
  color: #f2f2f2; 
  letter-spacing: 1px; 
  margin: 5px 0 10px 0; 
  animation: fadeIn 1.2s ease-in-out; 
}

.title { 
  text-align: center; 
  font-size: 1.6rem; 
  font-weight: 600; 
  color: #f2f2f2; 
  letter-spacing: 1px; 
  margin: 30px 0 80px 0; 
  animation: fadeIn 1.2s ease-in-out; 
}	

.title2 a { 
  color: #00ffe0; 
  text-decoration: none; 
  font-weight: 700; 
  transition: 0.3s; 
}

.title a { 
  color: #00ffe0; 
  text-decoration: none; 
  font-weight: 700; 
  transition: 0.3s; 
}

.title2 a:hover { 
  color: #ffffff; 
  text-shadow: 0 0 12px #00ffe0; 
}

.title a:hover { 
  color: #ffffff; 
  text-shadow: 0 0 12px #00ffe0; 
}

@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(15px); } 
  to { opacity: 1; transform: translateY(0); } 
}

/* === LAYOUT FILTROWANIA === */
.three-columns {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.column {
  flex: 1;
  min-width: 360px;
}

.column-left {
  flex: 0.8;
  min-width: 300px;
}

/* === NAGŁÓWKI SEKCJI === */
h1 {
  color: #00ffe0;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(0,255,224,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* === BOXY COUNTER I FILTRY === */
.counter-box {
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(0,255,224,0.2);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,255,224,0.05);
}

.counter-number {
  color: #00ffe0;
  font-size: 36pt;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0,255,224,0.6);
}

.counter-label {
  font-size: 12pt;
  color: #f2f2f2;
  margin-top: 8px;
}

.counter-text {
  color: #cccccc;
  font-size: 10.5pt;
  text-align: justify;
  margin-top: 10px;
  line-height: 1.4em;
}

/* === SEKCJA FILTRÓW === */
.filter-section {
  background: rgba(15,15,15,0.85);
  border: 1px solid rgba(0,255,224,0.2);
  border-radius: 10px;
  padding: 20px;
  margin: 15px 0 25px 0;
  box-shadow: 0 0 15px rgba(0,255,224,0.05);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  color: #00ffe0;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  font-size: 11pt;
  text-shadow: 0 0 5px rgba(0,255,224,0.4);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
}

.checkbox-group label {
  color: #f2f2f2;
  font-size: 10pt;
  display: flex;
  align-items: center;
  cursor: pointer;
}

input[type="checkbox"] {
  accent-color: #00ffe0;
  transform: scale(1.1);
  margin-right: 6px;
}

.range-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.range-group span {
  color: #f2f2f2;
  font-size: 10pt;
}

.range-group input {
  background: rgba(0,0,0,0.6);
  color: #00ffe0;
  border: 1px solid rgba(0,255,224,0.3);
  border-radius: 4px;
  padding: 5px 8px;
  width: 80px;
  font-size: 10pt;
}

button {
  width: 100%;
  padding: 10px 15px;
  background: rgba(0,255,224,0.1);
  border: 1px solid rgba(0,255,224,0.4);
  color: #00ffe0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11pt;
  font-weight: 600;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover {
  background: rgba(0,255,224,0.2);
  box-shadow: 0 0 12px rgba(0,255,224,0.3);
  color: #fff;
}

/* === TABELE === */
.tables-container { 
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 40px; 
  width: 100%; 
}

.table-wrapper { 
  flex: 1; 
  min-width: 360px; 
  max-width: 600px; 
}

.top-table { 
  max-height: 460px; 
  overflow-y: auto; 
  border-radius: 10px; 
  box-shadow: 0 0 15px rgba(0,255,224,0.1); 
}

.filtered-table {
  max-height: 800px;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,255,224,0.05);
}

table.stats {
  width: 100%;
  border-collapse: collapse;
  background: rgba(10,10,10,0.85);
  border: 1px solid rgba(0,255,224,0.2);
  overflow: hidden;
  border-radius: 10px;
}

table.stats th, table.stats td {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,255,224,0.1);
  transition: 0.3s;
}

table.stats th {
  background: rgba(0,255,224,0.08);
  color: #00ffe0;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

table.stats tr:hover {
  background: rgba(0,255,224,0.1);
  color: #00ffe0;
}

table.stats a {
  color: #00ffe0 !important;
  text-decoration: none;
  text-shadow: 0 0 5px rgba(0,255,224,0.6);
  transition: all 0.3s ease;
}

table.stats a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(0,255,224,0.9);
}

table.stats span.auth-only { 
  color: #cccccc; 
}

table.stats span.auth-only small { 
  font-size: 0.8em; 
  opacity: 0.8; 
  font-style: italic; 
}

/* === SCROLLBAR === */
::-webkit-scrollbar { 
  width: 8px; 
}

::-webkit-scrollbar-thumb { 
  background: rgba(0,255,224,0.3); 
  border-radius: 4px; 
}

::-webkit-scrollbar-thumb:hover { 
  background: rgba(0,255,224,0.6); 
}

/* === SYSTEM LOGOWANIA === */
.login-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.login-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(0,255,224,0.3);
  border-radius: 15px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 30px rgba(0,255,224,0.2);
}

.login-content h2 {
  color: #00ffe0;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.4rem;
  text-shadow: 0 0 10px rgba(0,255,224,0.5);
}

.login-form input {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0,255,224,0.3);
  border-radius: 6px;
  color: #f2f2f2;
  font-size: 1rem;
  transition: all 0.3s;
}

.login-form input:focus {
  outline: none;
  border-color: #00ffe0;
  box-shadow: 0 0 10px rgba(0,255,224,0.3);
}

/* POPRAWIONE PRZYCISKI LOGOWANIA */
.login-form button {
  width: auto;
  min-width: 120px;
  padding: 12px 25px;
  background: rgba(0,255,224,0.1);
  border: 1px solid rgba(0,255,224,0.4);
  color: #00ffe0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 auto;
  display: block;
}

.login-form button:hover {
  background: rgba(0,255,224,0.2);
  box-shadow: 0 0 15px rgba(0,255,224,0.4);
  color: #fff;
}

.login-error {
  color: #ff6666;
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  display: none;
}

.login-info {
  text-align: center;
  margin-top: 20px;
  font-size: 0.8rem;
  color: #cccccc;
}

/* PRZYCISK LOGOWANIA W PASKU */
.login-button {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  background: rgba(0,255,224,0.1);
  border: 1px solid rgba(0,255,224,0.3);
  color: #00ffe0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.3s;
  z-index: 100;
  width: auto;
  min-width: auto;
}

.login-button:hover {
  background: rgba(0,255,224,0.2);
  box-shadow: 0 0 10px rgba(0,255,224,0.3);
}

.user-info {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #00ffe0;
  font-size: 0.8rem;
  display: none;
  background: rgba(0,255,224,0.1);
  border: 1px solid rgba(0,255,224,0.3);
  border-radius: 6px;
  padding: 8px 12px;
}

.logout-button {
  margin-left: 10px;
  padding: 4px 8px;
  background: rgba(255,0,0,0.1);
  border: 1px solid rgba(255,0,0,0.3);
  color: #ff6666;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: 0.3s;
  width: auto;
  min-width: auto;
}

.logout-button:hover {
  background: rgba(255,0,0,0.2);
  box-shadow: 0 0 8px rgba(255,0,0,0.3);
}

/* POPRAWIONE PRZYCISKI FILTRÓW */
.filter-btn {
  width: 100%;
  padding: 10px 15px;
  background: rgba(0,255,224,0.1);
  border: 1px solid rgba(0,255,224,0.4);
  color: #00ffe0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 11pt;
  font-weight: 600;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-btn:hover {
  background: rgba(0,255,224,0.2);
  box-shadow: 0 0 12px rgba(0,255,224,0.3);
  color: #fff;
}

/* RESPONSYWNOŚĆ DLA PRZYCISKÓW */
@media (max-width: 768px) { 
  .login-button, .user-info { 
    position: relative; 
    top: 0; 
    right: 0; 
    margin-bottom: 10px; 
    width: 100%;
    text-align: center;
  }
  
  .login-button {
    padding: 10px;
  }
  
  .user-info {
    padding: 10px;
    text-align: center;
  }
}