
body {
  padding-top: 3.0em; /* o più se la tua navbar è più alta */
  margin-left: 210px; /* stessa larghezza della sidebar */
  font-size: 0.85em;
}

.border-dashed {
  border: 2px dashed #6c757d; /* Colore grigio scuro di Bootstrap */
  padding: 1rem;
  border-radius: 0.5rem;
}

/*IMPORTAZIONE FILE*/
  .drop-zone {
      border: 2px dashed #0d6efd;
      border-radius: 10px;
      padding: 40px;
      text-align: center;
      color: #6c757d;
      transition: background-color 0.3s;
      cursor: pointer;
    }

    .drop-zone.dragover {
      background-color: #e9f5ff;
      border-color: #0a58ca;
    }

    .drop-zone.highlight {
      border-color: #198754;
      background-color: #e6fff2;
      color: #198754;
    }

    #fileInput {
      display: none;
    }

.file-preview {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #333;
}
.table-responsive-scroll {
    max-height: 400px;
    overflow-y: auto;
  }

  .table-responsive-scroll thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa; /* colore sfondo header */
    z-index: 2;
  }

  @media (max-width: 768px) {
    .table th,
    .table td {
      font-size: 0.75em;
      white-space: nowrap;
    }
  }

  .hide-important {
      display: none !important;
  }
 .step-line-container {
            position: relative;
            height: 4px;
            background-color: #ccc;
            border-radius: 2px;
            margin: 30px 0 10px 0;
        }
        .step-line-fill {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            background-color: #007bff;
            border-radius: 2px;
            width: 0;
            transition: width 0.5s ease;
        }
        .step-point {
            position: absolute;
            top: 50%;
            width: 32px;
            height: 32px;
            background-color: #fff;
            border: 3px solid #007bff;
            border-radius: 50%;
            transform: translate(-50%, -50%);
            cursor: pointer;
            transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            color: #007bff;
            font-size: 0.9em;
            position: absolute;
        }
        .step-point.active {
            background-color: #007bff;
            border-color: #0056b3;
            color: #fff!important;
            transform: translate(-50%, -50%) scale(1.1);
        }
        .tooltip-text {
            position: absolute;
            top: -30px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.8em;
            background: #007bff;
            color: #fff;
            padding: 2px 6px;
            border-radius: 4px;
            white-space: nowrap;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }
        .step-point:hover .tooltip-text {
            opacity: 1;
        }


.scroll-container {
    overflow-x: auto;
    cursor: grab;
}
.scroll-container:active {
    cursor: grabbing;
}

.item {
  min-width: 200px;
  height: 150px;
  background: #ddd;
  border-radius: 8px;
  flex-shrink: 0;
}

.bracketCanvas_container {
  position: relative;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bracketCanvas_container:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

#bracket-area-wrapper {
  overflow: auto;
  width: 100%;
  height: 100%;
}
/* Quando siamo in fullscreen, il body e il canvas occupano tutto */
    :fullscreen body,
    :-webkit-full-screen body {
      margin: 0;
      height: 100%;
    }
    :fullscreen canvas,
    :-webkit-full-screen canvas {
      width: 100% !important;
      height: 100% !important;
    }

.hide-important {
  display: none !important;
}

.full-screen { min-height: 90vh; display: flex; flex-direction: column; }
.score-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #000;
  border-radius: .75rem;
  padding: 1rem;
  transition: transform 0.3s;
  border: 5px solid transparent;
}
.score-card header { text-align: center; }
.score-card main { flex: 1; display: flex; align-items: initial; justify-content: center; }
.score-card footer { text-align: center; }
.left-bg { border-color: #0d6efd; }
.right-bg  { border-color: #dc3545; }
.blue-bg { border-color: #0d6efd; }
.red-bg  { border-color: #dc3545; }
.score-value { font-size: 8rem; font-weight: bold; color: red}
.control-panel button { margin-right: .5rem; }
#countdown { font-size: 2rem; font-weight: bold; text-align: center; margin-bottom: 1rem; }
.winner { box-shadow: 0 0 20px 5px gold; transform: scale(1.05); }
.penalty-btn, .score-btn { margin: .25rem; }

 /* Animazione pulsanti laterali */
  .btn-click {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  .btn-click:active {
    transform: scale(0.85);
  }

  /* Animazione pulsante centrale */
  .score-bounce {
    animation: bounce 0.3s ease;
  }
  @keyframes bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.2); }
    50%  { transform: scale(0.9); }
    70%  { transform: scale(1.05); }
    100% { transform: scale(1); }
  }

  :root{
      --aka:#e03131; /* rosso */
      --ao:#1c7ed6;  /* blu */
      --text:#f5f7fb;
      --ok:#2f9e44;
    }
  body, html {height:100%;  padding-top: 0;}
  .display-header, .display-footer
  {
      color: rgb(255, 255, 255);
      text-align: center;
      font-size: xx-large;
      background: rgb(0, 0, 0);
      margin-top: 15px;
      /*padding: 15px;*/
  }
  .board {height:calc(100% - 180px); display:flex; margin-top: 2px;}
  .side {flex:1; display:flex; flex-direction:column; justify-content:center; align-items:center; color:#fff; transition: all 0.5s;}
  .aka {background:var(--aka);}
  .ao {background:var(--ao);}
  .side h2 {font-size:4rem; font-weight:800; text-shadow:0 2px 4px #0007;}
  .country {font-size:2rem; font-weight:600; letter-spacing:2px;}
  .points {font-size:10rem; font-weight:900; text-shadow:0 4px 8px #0008;}
  .timer {position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:4rem; font-weight:900; color:#fff; background:#000; padding:20px 40px; border-radius:20px;}
  .timeraux {
    box-shadow: 0 0 20px 4px gold; transform: scale(1.04);
    --blink-speed: 1.5s;
    --blink-color: #eff310;   /* colore attivo */
    --blink-color-fade: transparent; /* colore attenuato */
    border: 2px solid var(--blink-color);
    animation: blinkBorder var(--blink-speed) ease-in-out infinite;
    font-size: 3rem;
    font-weight: 900;
  }

  .status {font-weight:600;}
  .btn-container {text-align:center; margin:10px;}

  .footer-side {
    margin-top: auto;
    margin-bottom: 20px;
    width: 85%;
    padding: 5px;
    text-align: center;
    font-size: 0.9rem;
    /*background: #f0f0f0;*/
    /*border-top: 1px solid #ccc;*/
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
  }

  .circle-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    margin: 5px;
    white-space: normal;
    background: #dc1515 !important;
    border: 3px solid yellow !important;
    color: yellow !important;
  }

/* Blink fluido */
.blink-fluid {
  --blink-speed: 1.5s;       /* durata ciclo */
  --blink-min-opacity: 0.4;  /* opacità minima */
  animation: blinkFluid var(--blink-speed) ease-in-out infinite;
}

@keyframes blinkFluid {
  0%, 100% { opacity: 1; }
  50% { opacity: var(--blink-min-opacity); }
}

@media (prefers-reduced-motion: reduce) {
  .blink-fluid {
    animation: none;
  }
}

.blink-border {
   box-shadow: 0 0 20px 4px gold; transform: scale(1.04);
  --blink-speed: 1.5s;
  --blink-color: #eff310;   /* colore attivo */
  --blink-color-fade: transparent; /* colore attenuato */
  border: 2px solid var(--blink-color);
  animation: blinkBorder var(--blink-speed) ease-in-out infinite;
}

@keyframes blinkBorder {
  0%, 100% { border-color: var(--blink-color); }
  50%      { border-color: var(--blink-color-fade); }
}

@media (prefers-reduced-motion: reduce) {
  .blink-border { animation: none; }
}

.paddingTop-unset {
  padding-top: unset!important;
}

.highlight {
  background-color: yellow !important; /* O qualsiasi altro colore desideri */
}

.w-33 {
    width: 33%;
}

.swal2-container {
  z-index: 99999 !important;
}

.modal {
  z-index: 100000 !important;
}

@keyframes exitLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-80px);
    opacity: 0;
  }
}

@keyframes enterLeft {
  0% {
    transform: translateX(-80px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.exit-left {
  animation: exitLeft 0.6s ease forwards;
}

.enter-left {
  animation: enterLeft 0.6s ease forwards;
}




