/* --- Variables du thème --- */
:root {
  --glass-bg: rgba(20, 25, 35, 0.45); /* Fond bleu nuit très transparent */
  --glass-border: rgba(255, 255, 255, 0.08); /* Bordure ultra fine */
  --glass-hover: rgba(255, 255, 255, 0.12);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

/* Force le fond sombre en cas de chargement lent de l'image */
body {
  background-color: #0f172a;
}

/* --- Style des Cartes (Services & Widgets) --- */
/* On écrase le style par défaut des blocs Homepage */
div.bg-white\/5, div.bg-black\/5, div.bg-white\/10, a.bg-white\/5 {
  background-color: var(--glass-bg) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 6px !important; /* Arrondis très légers comme sur ton image */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

/* Effet au survol (très discret, on enlève l'effet de saut) */
a.bg-white\/5:hover, div.bg-white\/5:hover {
  background-color: var(--glass-hover) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: none !important; /* Garde le design plat et sobre */
}

/* --- Titres des catégories (Medien-Streaming, etc.) --- */
header h2, .text-xl, .text-lg {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--text-main) !important;
  opacity: 0.95;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important; /* Petite ligne sous le titre */
  padding-bottom: 0.5rem !important;
  margin-bottom: 1rem !important;
}

/* --- Barre de recherche en haut --- */
input[type="text"] {
  background-color: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-main) !important;
  border-radius: 4px !important;
}

input[type="text"]:focus {
  border-color: rgba(255, 255, 255, 0.3) !important;
  outline: none !important;
}

/* --- Textes secondaires (Statistiques, IPs...) --- */
.text-xs, .text-sm {
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}

/* --- Pastilles d'état (On adoucit les couleurs) --- */
.bg-green-500 { background-color: #10b981 !important; opacity: 0.7; }
.bg-red-500 { background-color: #ef4444 !important; opacity: 0.7; }
/* Rend les barres de ressources plus fines et élégantes */
.resource-bar {
    height: 4px !important;
    border-radius: 10px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Adoucit la couleur de l'heure et de la date */
.datetime-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 300 !important;
}

/* Donne un effet de verre plus prononcé à la barre de recherche */
#search-input {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: rgba(0, 0, 0, 0.2) !important;
}
