/* Padel Ranking Custom Styles */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #e7f1ff;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
  }
  
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
  }
  
  
  .navbar-brand i {
    transform: rotate(-45deg);
  }
  
  .nav-link {
    position: relative;
    transition: all 0.2s;
    font-weight: 500;
  }
  
  .navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
  }

.navbar.navbar-dark.bg-primary {
  background: linear-gradient(to bottom, #0d6efd, transparent) !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: white;
}
  
  /* Cards */
  .card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
  }
  
  .card.shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  }
  
  .card.shadow-sm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1) !important;
  }
  
  /* Buttons */
  .btn {
    border-radius: 0.25rem;
    font-weight: 500;
    transition: all 0.2s;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.25);
  }
  
  .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  
  .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.25);
  }
  
  /* Form controls */
  .form-control, .form-select {
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ced4da;
    transition: all 0.2s;
  }
  
  .form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  }
  
  .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
  }
  
  /* Tables */
  .table th {
    font-weight: 600;
    border-top: none;
    border-bottom: 2px solid #e9ecef;
  }
  
  .table td {
    vertical-align: middle;
  }
  
  .table-hover tbody tr:hover {
    background-color: var(--primary-light);
  }

  th, td {
    white-space: nowrap;
  }
  
  
  /* Badges */
  .badge {
    padding: 0.4em 0.6em;
    font-weight: 500;
  }
  
/* Modern Footer Styles */
footer {
  background-color: #f8f9fa;
  margin-top: auto;
  border-top: 2px solid #0d6efd;
}

footer h5 {
  font-weight: 600;
  position: relative;
  display: inline-block;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0d6efd;
}

footer .text-lg-end h5::after {
  left: auto;
  right: 0;
}

footer .text-center h5::after {
  left: 50%;
  transform: translateX(-50%);
}

footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f1f3f5;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  margin: 0 5px;
  text-decoration: none;
}

footer .social-icons a:hover {
  background-color: #0d6efd;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2);
}

footer a {
  transition: all 0.2s ease;
  position: relative;
}

footer a:hover {
  color: #0d6efd !important;
  text-decoration: none;
}

footer ul a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

footer ul a:hover::after {
  width: 100%;
}

@media (max-width: 991.98px) {
  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
  
  /* Jumbotron */
  .jumbotron {
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  }
  
  /* Profile styles */
  .profile-stats {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
  }
  
  /* Admin dashboard stats */
  .card .display-4 {
    line-height: 1.2;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .fadeIn {
    animation: fadeIn 0.5s ease forwards;
  }
  
  /* Responsive adjustments */
  @media (max-width: 576px) {
    .table {
      font-size: 0.9rem;
    }
    
    .h5, h5 {
      font-size: 1.1rem;
    }
    
    .card-body {
      padding: 1rem;
    }
  }
  
  /* Add highlight for user's own row in rankings */
  .table-primary {
    background-color: var(--primary-light) !important;
  }
  
  /* Custom form validation colors */
  .was-validated .form-control:invalid,
  .form-control.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
  }
