html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8f9fa;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Modern CRUD UI Styles */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  margin: -1.5rem -15px 2rem -15px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-header h1 {
  margin: 0;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.crud-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 0;
  overflow: hidden;
  margin-bottom: 2rem;
}

.crud-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.crud-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.crud-content {
  padding: 1.5rem;
}

.modern-table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: none;
}

.modern-table thead th {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.modern-table tbody tr {
  transition: all 0.3s ease;
  border: none;
}

.modern-table tbody tr:hover {
  background-color: #f8f9fa;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modern-table tbody td {
  padding: 1rem;
  border: none;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.modern-form {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 2rem;
  margin: 0 auto;
  max-width: 600px;
}

.modern-form .form-group {
  margin-bottom: 1.5rem;
}

.modern-form .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.modern-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.modern-form .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
  transform: translateY(-1px);
}

.modern-form .form-check {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.modern-form .form-check:hover {
  background: #e9ecef;
}

.modern-form .form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

/* Modern Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 1px rgba(102, 126, 234, 0.5);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.toggle-container:hover {
  background: #e9ecef;
  border-color: #667eea;
}

.toggle-content {
  flex: 1;
}

.toggle-content .toggle-title {
  font-weight: 600;
  color: #495057;
  margin: 0;
  font-size: 1rem;
}

.toggle-content .toggle-description {
  color: #6c757d;
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
}

.btn-modern {
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary.btn-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-warning.btn-modern {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.btn-danger.btn-modern {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.btn-success.btn-modern {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
}

.btn-secondary.btn-modern {
  background: linear-gradient(135deg, #636e72 0%, #2d3436 100%);
}

.status-badge {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
}

.status-inactive {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.empty-state-icon {
  font-size: 4rem;
  color: #dee2e6;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: #6c757d;
  margin-bottom: 1rem;
}

.empty-state p {
  color: #adb5bd;
  margin-bottom: 2rem;
}

.delete-confirmation {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 2rem;
  margin: 0 auto;
  max-width: 600px;
}

.delete-warning {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: none;
}

.delete-warning h3 {
  margin: 0;
  font-weight: 600;
}

.detail-list {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.detail-list .row {
  margin-bottom: 1rem;
}

.detail-list .row:last-child {
  margin-bottom: 0;
}

.detail-list dt {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-list dd {
  color: #6c757d;
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .crud-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .crud-actions {
    justify-content: center;
  }
  
  .modern-table {
    font-size: 0.85rem;
  }
  
  .modern-form {
    margin: 0 1rem;
  }
  
  .btn-modern {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Purple button for playoff actions */
.btn-purple {
  color: #fff;
  background-color: #6f42c1;
  border-color: #6f42c1;
}

.btn-purple:hover {
  color: #fff;
  background-color: #5a359a;
  border-color: #5a359a;
}

.btn-purple:focus, .btn-purple.focus {
  color: #fff;
  background-color: #5a359a;
  border-color: #5a359a;
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.5);
}

.btn-purple:active, .btn-purple.active {
  color: #fff;
  background-color: #4c2d83;
  border-color: #4c2d83;
}

/* Purple background for card headers */
.bg-purple {
  background-color: #6f42c1 !important;
}

/* Purple border for cards */
.border-purple {
  border-color: #6f42c1 !important;
}

/* Purple text color */
.text-purple {
  color: #6f42c1 !important;
}

/* Enhanced Hero Section */
.hero-section {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7),
        rgba(40, 167, 69, 0.8)
    ), url('/assets/img/tenisbackgorud.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 20vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 3rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    margin-bottom: 1rem;
}

.hero-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    color: #e8f5e8;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-style: italic;
    margin-bottom: 1rem;
}

.hero-description {
    max-width: 900px;
}

.hero-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #f8f9fa;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 300;
}

.hero-highlight {
    font-size: 1.2rem;
    color: #d4edda;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    background: rgba(40, 167, 69, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

/* Hero CTA Button */
.hero-cta {
    margin-top: 2rem;
}

.btn-hero-cta {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-hero-cta:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
    text-decoration: none;
}

.btn-hero-cta:focus {
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    color: white;
    text-decoration: none;
}

.btn-hero-cta i {
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

/* Live Match Ticker */
.live-ticker-section {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    border-top: 4px solid #e74c3c;
    border-bottom: 4px solid #e74c3c;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.live-ticker-wrapper {
    display: flex;
    align-items: center;
    height: 70px;
}

.live-ticker-label {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1.5px;
    min-width: 160px;
    box-shadow: 3px 0 15px rgba(0,0,0,0.3);
    z-index: 2;
    position: relative;
    text-transform: uppercase;
}

.live-ticker-content {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.ticker-scroll {
    display: flex;
    align-items: center;
    height: 100%;
    animation: scroll-left 45s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    color: white;
    font-size: 0.9rem;
    border-right: 1px solid rgba(0, 206, 201, 0.3);
    height: 100%;
    min-width: 350px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.9) 0%, rgba(99, 110, 114, 0.9) 100%);
    border-radius: 4px;
    margin: 0 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
}

.match-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    margin-right: 15px;
}

.match-players {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    font-size: 0.9rem;
}

.winner {
    color: #00cec9;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(0, 206, 201, 0.5);
}

.loser {
    color: #ddd;
    font-weight: 400;
}

.vs-text {
    color: #888;
    margin: 0 8px;
    font-weight: 500;
    font-size: 0.8rem;
}

.match-datetime {
    color: #aaa;
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.match-result {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.match-score {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 0.8rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.match-league {
    color: #bbb;
    font-style: italic;
    font-size: 0.7rem;
    font-weight: 300;
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Header büyütme */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    background: white !important;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
}

.nav-link {
    font-size: 0.95rem;
    padding: 0.6rem 1rem !important;
    font-weight: 500;
    white-space: nowrap;
}

.navbar-nav .nav-item {
    margin: 0 0.2rem;
}

.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: none;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 18vh;
    }
    
    .hero-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-main-title {
        font-size: 2.2rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-text {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-highlight {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .btn-hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .live-ticker-wrapper {
        height: 60px;
    }
    
    .live-ticker-label {
        min-width: 120px;
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .ticker-item {
        min-width: 280px;
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .match-players {
        font-size: 0.8rem;
    }
    
    .match-datetime {
        font-size: 0.65rem;
    }
    
    .match-score {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .match-league {
        font-size: 0.65rem;
    }
    
    .ticker-scroll {
        animation-duration: 35s;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.6rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 15vh;
    }
    
    .hero-icon {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-main-title {
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-text {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .hero-highlight {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    .btn-hero-cta {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .live-ticker-wrapper {
        height: 50px;
    }
    
    .live-ticker-label {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0 12px;
    }
    
    .ticker-item {
        min-width: 220px;
        padding: 4px 12px;
        font-size: 0.75rem;
    }
    
    .match-players {
        font-size: 0.75rem;
    }
    
    .match-datetime {
        font-size: 0.6rem;
    }
    
    .match-score {
        padding: 2px 6px;
        font-size: 0.65rem;
    }
    
    .match-league {
        font-size: 0.6rem;
    }
    
    .ticker-scroll {
        animation-duration: 30s;
    }
}