* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #eef6ef;
  color: #143524;
}

.hidden {
  display: none !important;
}

/* LOGIN */

.login-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #073d28, #188050);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card {
  background: white;
  width: 100%;
  max-width: 420px;
  padding: 35px;
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.logo {
  font-size: 54px;
  margin-bottom: 10px;
}

.login-card h1 {
  margin-bottom: 8px;
  color: #073d28;
}

.login-card p {
  color: #65756c;
  margin-bottom: 22px;
}

#loginError {
  color: #b00020;
  font-weight: bold;
  margin-top: 12px;
}

.forgot-btn {
    width: auto;
    background: transparent;
    border: none;
    color: #0f6b43;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
    padding: 0;
    text-decoration: underline;
    display: inline-block;
}

.forgot-btn:hover {
    background: transparent;
    color: #0a4d30;
}

.password-wrapper{
    position:relative;
}

.password-wrapper input{
    width:100%;
    padding-right:50px;
    box-sizing:border-box;
}

.password-toggle{

    position:absolute;

    right:14px;

    top:50%;

    transform:translateY(-50%);

    background:none;

    border:none;

    padding:0;

    cursor:pointer;

    color:#777;

    display:flex;

    align-items:center;

    justify-content:center;

    transition:.2s;

}

.password-toggle:hover{
    color:#222;
}

/* APP HEADER */

.app-header {
  background: linear-gradient(135deg, #073d28, #188050);
  color: white;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-header p {
  opacity: 0.9;
  margin-top: 5px;
}

.container {
  max-width: 950px;
  margin: 0 auto;
  padding: 20px;
}

/* CARDS */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: white;
  padding: 22px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;

  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card span {
  display: block;
  color: #65756c;
  font-size: 14px;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 32px;
  color: #0f6b43;
}

.card {
  background: white;
  padding: 22px;
  border-radius: 22px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card h2 {
  margin-bottom: 16px;
  color: #073d28;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* FORM */

label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: bold;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #cbd8cf;
  font-size: 16px;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

button {
  background: #0f6b43;
  color: white;
  border: none;
  margin-top: 18px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #0a4d30;
}

.logout-btn {
  width: auto;
  margin-top: 0;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
}

.small-btn {
  width: auto;
  margin-top: 0;
  padding: 10px 16px;
}

/* COURT TABS */

.court-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.court-tab {
  margin-top: 0;
  padding: 12px 8px;
  border-radius: 12px;
  background: #e8f3ec;
  color: #0f6b43;
  border: 1px solid #cfe2d6;
  font-size: 14px;
}

.court-tab.active {
  background: #0f6b43;
  color: white;
}

/* SINGLE COURT SCHEDULE */

.court-grid {
  display: block;
}

.single-court-title {
  text-align: center;
  color: #0f6b43;
  margin-bottom: 14px;
}

.court-booking {
  background: white;
  border-left: 5px solid #0f6b43;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.court-booking strong {
  display: block;
  margin-bottom: 5px;
}

.court-booking p {
  margin: 4px 0;
}

.court-booking.available {
  opacity: 0.55;
  border-left-color: #d5ddd8;
}

.court-booking.booked {
  border-left-color: #f58220;
}

.court-booking.booked p {
  font-weight: bold;
  color: #073d28;
}

.court-delete-btn {
  background: #b00020;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 10px;
}

.court-delete-btn:hover {
  background: #7d0017;
}

/* RESPONSIVE */

@media (max-width: 700px) {
  .app-header {
    display: block;
  }

  .logout-btn {
    width: 100%;
    margin-top: 15px;
  }

  .stats-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-card {
  padding: 14px 8px;
}

.stat-card span {
  font-size: 12px;
}

.stat-card strong {
  font-size: 26px;
}

  .court-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.login-logo {
  width: 140px;
  height: auto;
  margin-bottom: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.club-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  padding: 4px;
}
  .header-left {
    flex-direction: column;
    text-align: center;
  }

  .club-logo {
    width: 80px;
    height: 80px;
  }
.booking-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.court-edit-btn {
  background: #0f6b43;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 0;
}

.court-delete-btn {
  margin-top: 0;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 999;
}

.modal-box {
  background: white;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-box h2 {
  color: #073d28;
  margin-bottom: 16px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.cancel-btn {
  background: #8a9a90;
}

.cancel-btn:hover {
  background: #68766d;
}

.delete-confirm-btn {
  background: #b00020;
}

.delete-confirm-btn:hover {
  background: #7d0017;
}


.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-weight: bold;
}

.checkbox-row input {
  width: auto;
}

.repeat-options {
  display: none;
  margin-top: 10px;
}

.repeat-options.show {
  display: block;
}

.daily-screen {
  min-height: 100vh;
  background: #eef6ef;
}

.date-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0;
}

.date-btn {
  min-width: 58px;
  padding: 12px 10px;
  border-radius: 18px;
  background: #e8f3ec;
  color: #0f6b43;
  border: 1px solid #cfe2d6;
  font-weight: bold;
  margin-top: 0;
}

.date-btn.active {
  background: #0f6b43;
  color: white;
}

.daily-grid {
  overflow-x: auto;
}

.daily-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.daily-table th,
.daily-table td {
  border: 1px solid #dce8df;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

.daily-table th {
  background: #0f6b43;
  color: white;
  position: sticky;
  top: 0;
}

.daily-table td.time-cell {
  font-weight: bold;
  background: #f7fbf8;
  color: #073d28;
}

.daily-booked {
  background: #fff3e8;
  color: #073d28;
  font-weight: bold;
  border-radius: 10px;
  padding: 6px;
}

.daily-available {
  color: #9aaa9f;
}

.modal-actions.single {
  grid-template-columns: 1fr;
}

.clickable-slot {
  cursor: pointer;
  background: #f7fbf8;
}

.clickable-slot:hover {
  background: #e8f3ec;
}

.clickable-slot .daily-available {
  color: #0f6b43;
  font-weight: bold;
}
.modal-actions.three-buttons {
  grid-template-columns: 1fr 1fr 1fr;
}

.booking-private {
  border-left: 8px solid #2196f3 !important;
}

.booking-kids {
  border-left: 8px solid #4caf50 !important;
}

.booking-tournament {
  border-left: 8px solid #ff9800 !important;
}

.booking-member {
  border-left: 8px solid #9c27b0 !important;
}

.badge-luka {
  background: #2196f3;
}

.badge-stipe {
  background: #4caf50;
}

.badge-frane {
  background: #ff9800;
}

.badge-miro {
  background: #9c27b0;
}

.badge-unknown {
  background: #777;
}

.booking-badge-row {
  float: right;
  display: flex;
  gap: 4px;
}

.daily-badge-row {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}

.booking-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.daily-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.occupied-text {
  color: #d32f2f;
  font-weight: bold;
  text-transform: uppercase;
}


@media (max-width: 600px) {
  .modal-actions.three-buttons {
    grid-template-columns: 1fr;
  }
}

.password-wrapper .password-toggle {
  width: auto;
  height: auto;
  margin-top: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none;
  padding: 0;
  color: #65756c;
}

.password-wrapper .password-toggle:hover {
  background: transparent !important;
  color: #073d28;
}