/* Custom Premium Styling for Futbol App - Fully Glassmorphic & Seamless */
:root {
  --bg-dark: #121212;
  --accent-red: #e11d48;
  --accent-blue: #00f2fe;
  --accent-gold: #fbbf24;
  --text-primary: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --glass-bg: rgba(20, 20, 20, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --theme-gradient: linear-gradient(135deg, #a40606 0%, #d83c3c 35%, rgba(15, 15, 20, 0.9) 100%);
}

/* Global Background Setup for seamless transition */
.global-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.bg-image {
  position: absolute;
  inset: -10px;
  background-image: url('https://images.unsplash.com/photo-1518605368461-1ee0c776fb01?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.7) contrast(1.1);
  transform: scale(1.02);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 10, 20, 0.6) 0%, rgba(10, 10, 10, 0.85) 70%, rgba(0, 0, 0, 0.95) 100%);
}

/* Navbar Styling */
.navbar {
  background: transparent !important;
  border: none !important;
}

.brand-logo {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  transition: all 0.3s ease;
}

.brand-logo:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

.nav-btn {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body {
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #050505;
  margin: 0;
}

/* Base structural helper */
.z-index-1 {
  z-index: 1;
}

.flex-grow-1 {
  flex-grow: 1;
}

.bg-glass {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}

.glass-card,
.card {
  background: linear-gradient(145deg, rgba(35, 35, 45, 0.5), rgba(15, 15, 20, 0.6)) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-primary);
}

.glass-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.card-header,
.card-footer {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--glass-border) !important;
}

/* Typography Helpers - Override Bootstrap Dark Text Defaults */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
label {
  color: inherit;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-secondary {
  color: rgba(255, 255, 255, 0.65) !important;
}

.text-dark {
  color: #fff !important;
}

/* Invert generic text-dark */

a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

a:hover {
  color: #fff;
  text-decoration: none;
}

/* View Transitions / Animations */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Glass Tables */
.table-glass.table {
  color: var(--text-primary);
}

.table-glass {
  background: transparent !important;
  border-radius: 12px;
  overflow: hidden;
}

.table-glass th,
.table-glass td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(8px);
  background: rgba(20, 20, 30, 0.3);
  color: var(--text-primary);
}

.table-glass tbody tr:hover td {
  background: rgba(255, 255, 255, 0.12);
}

.table-glass td {
  vertical-align: middle;
}

.table-glass th {
  background-color: rgba(0, 0, 0, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Make standard Bootstrap tables match glassmorphism */
.table {
  color: var(--text-primary);
  background: transparent;
}

.table thead th {
  color: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.table tbody td {
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.table-hover tbody tr:hover td {
  background: rgba(255, 255, 255, 0.08);
}

/* Forms & Inputs */
input.form-control,
select.form-select,
textarea.form-control {
  background: rgba(20, 20, 30, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
  background: rgba(40, 40, 50, 0.8) !important;
  border-color: var(--accent-red) !important;
  color: white !important;
  box-shadow: 0 0 0 0.25rem rgba(225, 29, 72, 0.3) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
}

.form-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Buttons Overhauls */
.btn-gradient {
  background: linear-gradient(45deg, var(--accent-red), #ff4d4d);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 8px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
  color: white;
}

.btn-primary {
  background: linear-gradient(45deg, var(--accent-red), #ff4b4b);
  border: none;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #ff4b4b, var(--accent-red));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
}

.btn-outline-info {
  border-color: rgba(0, 242, 254, 0.6);
  color: #00f2fe;
}

.btn-outline-info:hover {
  background: rgba(0, 242, 254, 0.15);
  color: #fff;
}

.btn-outline-warning:hover {
  background: rgba(251, 191, 36, 0.15);
}

.btn-warning {
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.2);
}

/* Gradients */
.gradient-text {
  background: linear-gradient(to right, #ff4b4b, #ff9999);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Footer */
.footer {
  margin-top: auto;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Misc Tweaks */
.img-thumbnail-custom {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.list-group-item {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.08);
}