@font-face {
  font-family: "ProtestStrike";
  src: url("../souborykaktus/PROTESTSTRIKEFONT.ttf");
  font-display: swap;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "ProtestStrike" !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "ProtestStrike";
  line-height: 1.6;
  color: #1a3a1a;
  background:
    radial-gradient(700px 420px at 85% 8%, rgba(244, 241, 214, 0.80), transparent 62%),
    radial-gradient(900px 520px at 20% 18%, rgba(143, 190, 99, 0.09), transparent 65%),
    radial-gradient(900px 520px at 80% 85%, rgba(47, 107, 31, 0.07), transparent 68%),
    radial-gradient(1200px 720px at 18% 12%, rgba(244, 67, 54, 0.32), transparent 62%),
    radial-gradient(900px 520px at 30% 75%, rgba(244, 67, 54, 0.12), transparent 70%),
    linear-gradient(180deg, #ffffff, #e6e6e4 58%, #ffffff);
  background-size: auto;
  animation: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* Kaktusové pozadí pro admin */
body::before {
  content: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes kaktusFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(0.3deg); }
  50% { transform: translateY(-3px) rotate(-0.3deg); }
  75% { transform: translateY(-9px) rotate(0.2deg); }
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Modern Header */
.modern-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
}

.logo-icon img {
  width: 3.4rem;
  height: 2.3rem;
  border-radius: 0;
  object-fit: contain;
}

.site-title {
  font-family: "ProtestStrike";
  font-size: 1.5rem;
  color: #2d3748;
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Admin user badge – přihlášený uživatel a role */
.admin-user-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  margin-right: 0.5rem;
  background: linear-gradient(135deg, rgba(47, 107, 31, 0.12), rgba(47, 107, 31, 0.06));
  border: 2px solid rgba(47, 107, 31, 0.25);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(47, 107, 31, 0.08);
}

.admin-user-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(47, 107, 31, 0.2);
  border-radius: 50%;
  color: #14532d;
}

.admin-user-badge__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.admin-user-badge__content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-user-badge__name {
  font-size: 1rem;
  font-weight: 700;
  color: #14532d;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-user-badge__role {
  font-size: 0.8rem;
  color: #2f6b1f;
  opacity: 0.9;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: none;
  white-space: nowrap;
}


.nav-button.primary {
  background: rgba(47, 107, 31, 0.08);
  color: #14532d;
  border-color: rgba(47, 107, 31, 0.22);
}

.nav-button.primary:hover {
  transform: none;
  box-shadow: none;
  background: rgba(47, 107, 31, 0.12);
}


.nav-button.secondary {
  background: linear-gradient(135deg, #2196f3, #42a5f5, #64b5f6);
  color: white;
  box-shadow: none;
}

.nav-button.secondary:hover {
  transform: none;
  box-shadow: none;
  filter: saturate(1.02);
}


.nav-button.danger {
  background: linear-gradient(135deg, #f44336, #ef5350, #e57373);
  color: white;
  box-shadow: none;
}

.nav-button.danger:hover {
  transform: none;
  box-shadow: none;
}


.nav-icon {
  font-size: 1.1rem;
}

/* Admin login button - same style as player portal */
.pk-entry-button {
  --line_color: #2f6b1f;
  --back_color: #f4f1d6;
  position: relative;
  z-index: 0;
  width: 240px;
  height: 56px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--line_color);
  letter-spacing: 2px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  margin: 0 auto;
  display: block;
  padding: 0;
}

.pk-entry-button__text {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.pk-entry-button::before,
.pk-entry-button::after,
.pk-entry-button__text::before,
.pk-entry-button__text::after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 2px;
  background: var(--line_color);
  transition: all 0.5s ease;
}

.pk-entry-button::before {
  top: 0;
  left: 54px;
  width: calc(100% - 56px * 2 - 16px);
}

.pk-entry-button::after {
  top: 0;
  right: 54px;
  width: 8px;
}

.pk-entry-button__text::before {
  bottom: 0;
  right: 54px;
  width: calc(100% - 56px * 2 - 16px);
}

.pk-entry-button__text::after {
  bottom: 0;
  left: 54px;
  width: 8px;
}

.pk-entry-button__line {
  position: absolute;
  top: 0;
  width: 56px;
  height: 100%;
  overflow: hidden;
}

.pk-entry-button__line::before {
  content: "";
  position: absolute;
  top: 0;
  width: 150%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 300px;
  border: solid 3px var(--line_color);
}

.pk-entry-button__line:nth-child(1),
.pk-entry-button__line:nth-child(1)::before {
  left: 0;
}

.pk-entry-button__line:nth-child(2),
.pk-entry-button__line:nth-child(2)::before {
  right: 0;
}

.pk-entry-button:hover {
  letter-spacing: 6px;
}

.pk-entry-button:hover::before,
.pk-entry-button:hover .pk-entry-button__text::before {
  width: 8px;
}

.pk-entry-button:hover::after,
.pk-entry-button:hover .pk-entry-button__text::after {
  width: calc(100% - 56px * 2 - 16px);
}

.pk-entry-button__drow1,
.pk-entry-button__drow2 {
  position: absolute;
  z-index: -1;
  border-radius: 16px;
  transform-origin: 16px 16px;
}

.pk-entry-button__drow1 {
  top: -16px;
  left: 40px;
  width: 32px;
  height: 0;
  transform: rotate(30deg);
}

.pk-entry-button__drow2 {
  top: 44px;
  left: 77px;
  width: 32px;
  height: 0;
  transform: rotate(-127deg);
}

.pk-entry-button__drow1::before,
.pk-entry-button__drow1::after,
.pk-entry-button__drow2::before,
.pk-entry-button__drow2::after {
  content: "";
  position: absolute;
}

.pk-entry-button__drow1::before {
  bottom: 0;
  left: 0;
  width: 0;
  height: 32px;
  border-radius: 16px;
  transform-origin: 16px 16px;
  transform: rotate(-60deg);
}

.pk-entry-button__drow1::after {
  top: -10px;
  left: 45px;
  width: 0;
  height: 32px;
  border-radius: 16px;
  transform-origin: 16px 16px;
  transform: rotate(69deg);
}

.pk-entry-button__drow2::before {
  bottom: 0;
  left: 0;
  width: 0;
  height: 32px;
  border-radius: 16px;
  transform-origin: 16px 16px;
  transform: rotate(-146deg);
}

.pk-entry-button__drow2::after {
  bottom: 26px;
  left: -40px;
  width: 0;
  height: 32px;
  border-radius: 16px;
  transform-origin: 16px 16px;
  transform: rotate(-262deg);
}

.pk-entry-button__drow1,
.pk-entry-button__drow1::before,
.pk-entry-button__drow1::after,
.pk-entry-button__drow2,
.pk-entry-button__drow2::before,
.pk-entry-button__drow2::after {
  background: var(--back_color);
}

.pk-entry-button:hover .pk-entry-button__drow1 {
  animation: pk_entry_drow1 ease-in 0.06s;
  animation-fill-mode: forwards;
}

.pk-entry-button:hover .pk-entry-button__drow1::before {
  animation: pk_entry_drow2 linear 0.08s 0.06s;
  animation-fill-mode: forwards;
}

.pk-entry-button:hover .pk-entry-button__drow1::after {
  animation: pk_entry_drow3 linear 0.03s 0.14s;
  animation-fill-mode: forwards;
}

.pk-entry-button:hover .pk-entry-button__drow2 {
  animation: pk_entry_drow4 linear 0.06s 0.2s;
  animation-fill-mode: forwards;
}

.pk-entry-button:hover .pk-entry-button__drow2::before {
  animation: pk_entry_drow3 linear 0.03s 0.26s;
  animation-fill-mode: forwards;
}

.pk-entry-button:hover .pk-entry-button__drow2::after {
  animation: pk_entry_drow5 linear 0.06s 0.32s;
  animation-fill-mode: forwards;
}

@keyframes pk_entry_drow1 {
  0% { height: 0; }
  100% { height: 100px; }
}

@keyframes pk_entry_drow2 {
  0% { width: 0; opacity: 0; }
  10% { opacity: 0; }
  11% { opacity: 1; }
  100% { width: 120px; }
}

@keyframes pk_entry_drow3 {
  0% { width: 0; }
  100% { width: 80px; }
}

@keyframes pk_entry_drow4 {
  0% { height: 0; }
  100% { height: 120px; }
}

@keyframes pk_entry_drow5 {
  0% { width: 0; }
  100% { width: 124px; }
}

.pk-entry-button:focus {
  outline: none;
}

.pk-entry-button:focus-visible {
  outline: 3px solid rgba(47, 107, 31, 0.30);
  outline-offset: 3px;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-family: "ProtestStrike";
  font-size: 3rem;
  color: #c62828;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-shadow: none;
  flex-wrap: wrap;
}

.title-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Messages */
.success-message,
.error-message {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease;
}

.success-message.fade-out,
.error-message.fade-out {
  opacity: 0;
}

.success-message {
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.error-message {
  border-left: 4px solid #f44336;
  color: #c62828;
}

.success-icon,
.error-icon {
  font-size: 1.2rem;
}

/* Login Wrapper */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 500px;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  font-size: 2rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #718096;
  font-size: 1.1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Floating label (animated letters) - login input, same behavior as portal.php */
.login-card .form-control {
  position: relative;
  margin: 1.75rem 0 1.25rem;
}

.login-card .form-control input {
  background-color: transparent;
  border: 0;
  border-bottom: 2px solid rgba(15, 23, 42, 0.28);
  display: block;
  width: 100%;
  padding: 15px 0;
  font-size: 18px;
  color: #1a3a1a;
}

.login-card .form-control input:focus,
.login-card .form-control input:valid {
  outline: 0;
  border-bottom-color: rgba(47, 107, 31, 0.95);
}

.login-card .form-control label {
  position: absolute;
  top: 15px;
  left: 0;
  pointer-events: none;
}

.login-card .form-control label span {
  display: inline-block;
  font-size: 18px;
  min-width: 5px;
  color: rgba(15, 23, 42, 0.62);
  transition: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-card .form-control input:focus ~ label span,
.login-card .form-control input:valid ~ label span {
  color: rgba(47, 107, 31, 0.95);
  transform: translateY(-30px);
}

.login-card .form-control input {
  padding-right: 3.25rem;
}

.login-card .form-control .password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-card .form-control .password-toggle:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px rgba(45, 55, 72, 0.12);
}

.login-card .form-control .password-toggle:active {
  transform: translateY(-50%) scale(0.98);
}

.login-card .form-control .password-toggle:focus {
  outline: 2px solid rgba(47, 107, 31, 0.45);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .login-card .form-control input {
    font-size: 16px;
  }

  .login-card .form-control label span {
    font-size: 16px;
  }
}

.label-icon {
  font-size: 1.1rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Password input wrapper s tlačítkem pro zobrazení/skrytí */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-input-wrapper .form-input {
  padding-right: 3.5rem; /* Místo pro tlačítko */
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 6px;
  z-index: 10;
}

.password-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.password-toggle:active {
  background: rgba(0, 0, 0, 0.1);
}

.password-toggle-icon {
  font-size: 1.2rem;
  line-height: 1;
  user-select: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.password-toggle:hover .password-toggle-icon {
  opacity: 1;
}

.password-toggle.active .password-toggle-icon {
  opacity: 1;
}

.login-button,
.password-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.login-button:hover,
.password-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.button-icon {
  font-size: 1.2rem;
}

.login-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.info-section {
  margin-bottom: 1.5rem;
}

.info-section h3 {
  color: #2d3748;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.info-section p {
  color: #718096;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* Admin Wrapper */
.admin-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(25px);
  border-radius: 25px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 
    0 12px 40px rgba(76, 175, 80, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 3px solid rgba(76, 175, 80, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4caf50, #66bb6a, #8bc34a, #4caf50);
  background-size: 200% 100%;
  animation: kaktusShimmer 3s ease-in-out infinite;
}

.admin-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 20px 60px rgba(76, 175, 80, 0.3),
    0 8px 25px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(76, 175, 80, 0.5);
}

@keyframes kaktusShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  color: #2d3748;
  font-weight: 600;
}

.section-icon {
  font-size: 1.5rem;
}

/* Admin Matches */
.admin-matches {
  display: grid;
  gap: 2rem;
}

.admin-match-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.admin-match-card.future {
  border-color: #4caf50;
}

.admin-match-card.past {
  border-color: #9e9e9e;
}

/* Styly pro pískání v admin portálu */
.admin-match-card.piskani-card {
  border-color: #ff9800;
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.05), rgba(255, 193, 7, 0.05));
}

.admin-match-card.piskani-card .match-title h3 {
  color: #e65100;
}

.admin-match-card.piskani-card .summary-item.jdu {
  background: rgba(255, 152, 0, 0.1);
  color: #e65100;
}

.admin-match-card.piskani-card .summary-item.nejdu {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
}

.admin-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.match-title h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.match-date {
  color: #718096;
  font-size: 1rem;
}

.match-summary {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.summary-item {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.summary-item.jdu {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
}

.summary-item.nevim {
  background: rgba(255, 193, 7, 0.1);
  color: #f57c00;
}

.summary-item.nejdu {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
}

.summary-item.neodpovedeli {
  background: rgba(158, 158, 158, 0.1);
  color: #616161;
}

.response-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.response-group {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

.group-icon {
  font-size: 1.2rem;
}

.players-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.player-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.player-badge.jdu {
  background: rgba(76, 175, 80, 0.2);
  color: #2e7d32;
}

.player-badge.nevim {
  background: rgba(255, 193, 7, 0.2);
  color: #f57c00;
}

.player-badge.nejdu {
  background: rgba(244, 67, 54, 0.2);
  color: #c62828;
}

.player-badge.neodpovedeli {
  background: rgba(158, 158, 158, 0.2);
  color: #616161;
}

.player-badge.neodpovedeli:hover {
  background: rgba(158, 158, 158, 0.3);
  transform: none;
}

.match-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: #718096;
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 600;
  color: #2d3748;
  font-size: 1rem;
}

/* Admin controls */
.admin-controls {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.delete-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid #f44336;
}

.delete-warning {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(244, 67, 54, 0.05);
  border-radius: 12px;
  border-left: 4px solid #f44336;
}

.delete-warning h3 {
  color: #c62828;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.delete-warning p {
  color: #d32f2f;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.delete-button {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.delete-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #718096;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.empty-state p {
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .logo-icon img {
    width: 3.75rem;
    height: 2.5rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .title-icon {
    font-size: 2rem;
  }

  .content-container {
    padding: 0 1rem;
  }

  .admin-wrapper {
    padding: 1.5rem;
  }

  .login-card {
    padding: 2rem;
    margin: 0 1rem;
  }

  .admin-match-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-summary {
    justify-content: flex-start;
  }

  .response-groups {
    grid-template-columns: 1fr;
  }

  .match-stats {
    grid-template-columns: 1fr;
  }

  .header-nav {
    justify-content: center;
  }

  .admin-user-badge {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .admin-user-badge {
    padding: 0.4rem 0.75rem 0.4rem 0.6rem;
  }

  .admin-user-badge__name {
    font-size: 0.9rem;
  }

  .admin-user-badge__role {
    font-size: 0.75rem;
  }

  .logo-icon img {
    width: 3rem;
    height: 2rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .login-card {
    padding: 1.5rem;
  }

  .nav-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .admin-match-card {
    padding: 1rem;
  }
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-match-card,
.login-card {
  animation: fadeIn 0.6s ease forwards;
}

/* Hover effects */
.admin-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Focus styles for accessibility */
.form-input:focus,
.login-button:focus,
.password-button:focus {
  outline: 2px solid #4caf50;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .modern-header,
  .nav-button {
    display: none;
  }

  .page-wrapper {
    background: white;
  }

  .admin-match-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    break-inside: avoid;
  }
}

/* Clickable player badges */
.player-badge.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.player-badge.clickable:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Clickable player badges - rozšíření pro všechny typy */
.player-badge.jdu.clickable,
.player-badge.nevim.clickable,
.player-badge.nejdu.clickable,
.player-badge.neodpovedeli.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.player-badge.jdu.clickable:hover {
  background: rgba(76, 175, 80, 0.4);
  transform: none;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.player-badge.nevim.clickable:hover {
  background: rgba(255, 193, 7, 0.4);
  transform: none;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.player-badge.nejdu.clickable:hover {
  background: rgba(244, 67, 54, 0.4);
  transform: none;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.player-badge.neodpovedeli.clickable:hover {
  background: rgba(158, 158, 158, 0.4);
  transform: none;
  box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2d3748;
  font-size: 1.5rem;
  margin: 0;
}

.modal-icon {
  font-size: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #718096;
  transition: color 0.3s ease;
  padding: 0.5rem;
  border-radius: 8px;
}

.modal-close:hover {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

.close-icon {
  display: block;
}

.modal-body {
  margin-bottom: 1rem;
}

.player-info {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.player-info h3 {
  color: #2d3748;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.player-info p {
  color: #718096;
  margin: 0;
}

.response-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.response-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.response-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.response-option.jdu {
  border-color: #4caf50;
  color: #2e7d32;
}

.response-option.jdu:hover {
  background: #4caf50;
  color: white;
}

.response-option.nevim {
  border-color: #ffc107;
  color: #f57c00;
}

.response-option.nevim:hover {
  background: #ffc107;
  color: white;
}

.response-option.nejdu {
  border-color: #f44336;
  color: #c62828;
}

.response-option.nejdu:hover {
  background: #f44336;
  color: white;
}

/* ===== STYLY PRO POSILY (PŘIDANÉ HRÁČE) ===== */

/* Badge pro posilu - odlišení od běžných hráčů */
.player-badge.posila-badge {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.2), rgba(186, 104, 200, 0.2)) !important;
  color: #6a1b9a !important;
  border: 2px solid rgba(156, 39, 176, 0.3);
  position: relative;
  padding-right: 2.5rem;
}

.player-badge.posila-badge::before {
  content: "⚡ ";
  margin-right: 0.25rem;
  font-size: 0.9rem;
}

/* Tlačítko pro smazání posily */
.delete-posila-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(244, 67, 54, 0.2);
  border: none;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  color: #c62828;
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  line-height: 1;
}

.delete-posila-btn:hover {
  background: rgba(244, 67, 54, 0.4);
  transform: translateY(-50%);
  color: #d32f2f;
}

/* Tlačítko pro přidání posily */
.add-posila-btn {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
}

.add-posila-btn:hover {
  transform: translateY(-2px);
  box-shadow: none;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
}

/* Formulář pro přidání posily */
.add-posila-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.posila-name-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.posila-name-input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.posila-save-btn,
.posila-cancel-btn {
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  border: none;
  border-radius: 8px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
}

.posila-save-btn:hover {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  transform: none;
}

.posila-cancel-btn {
  background: linear-gradient(135deg, #f44336, #d32f2f);
}

.posila-cancel-btn:hover {
  background: linear-gradient(135deg, #c62828, #b71c1c);
  transform: none;
}

.response-option.current-response {
  border-width: 3px;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
  background: rgba(76, 175, 80, 0.05);
}

.response-option.current-response::before {
  content: "✓ Aktuální odpověď";
  position: absolute;
  top: -10px;
  right: 10px;
  background: #4caf50;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.option-icon {
  font-size: 1.5rem;
}

.option-text {
  font-size: 1.1rem;
}

/* Responsive modal */
@media (max-width: 480px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .response-option {
    padding: 1rem;
    font-size: 1rem;
  }

  .option-icon {
    font-size: 1.3rem;
  }

  .option-text {
    font-size: 1rem;
  }
}

/* Loading stav pro tlačítka */
.response-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.response-option:disabled:hover {
  transform: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* New styles for action buttons and password form */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.button.warning {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.button.warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.button.info {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.button.info:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

.password-form {
  display: none;
  margin-top: 0.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.password-form.active {
  display: block;
}

.password-form input {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
}

.password-form .form-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.button.small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.button.cancel {
  background: #6c757d;
  color: white;
}

.button.cancel:hover {
  background: #5a6268;
}

/* Responsive updates for mobile devices */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .logo-icon img {
    width: 3.75rem;
    height: 2.5rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .title-icon {
    font-size: 2rem;
  }

  .content-container {
    padding: 0 1rem;
  }

  .admin-wrapper {
    padding: 1.5rem;
  }

  .login-card {
    padding: 2rem;
    margin: 0 1rem;
  }

  .admin-match-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-summary {
    justify-content: flex-start;
  }

  .response-groups {
    grid-template-columns: 1fr;
  }

  .match-stats {
    grid-template-columns: 1fr;
  }

  .header-nav {
    justify-content: center;
  }

  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .action-buttons .button {
    width: 100%;
    justify-content: center;
  }

  .password-form .form-buttons {
    flex-direction: column;
  }

  .password-form .form-buttons .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .logo-icon img {
    width: 3rem;
    height: 2rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .login-card {
    padding: 1.5rem;
  }

  .nav-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .admin-match-card {
    padding: 1rem;
  }
}
