:root {
    --asverein-forum-primary-color: #F21300; /* Rot für Hauptelemente (war vertauscht) */
    --asverein-forum-secondary-color: #0066B3; /* Blau für Akzente (angepasst für besseren Kontrast) */
    --asverein-forum-light-color: #ffffff; /* Weiß für Hintergründe */
    --asverein-forum-light-blue: #f1f5fb; /* Sehr helles Blau für alternierende Elemente */
    --asverein-forum-text-color: #333333; /* Dunkelgrau für Text */
    --asverein-forum-border-radius: 8px; /* Einheitliche Abrundung für Elemente */
    --asverein-forum-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Einheitlicher Schatten */
}

/* HDSV Tables Styling */

/* Main table styles */
.hdsv-scraper table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    box-shadow: var(--asverein-forum-box-shadow);
    border-radius: var(--asverein-forum-border-radius);
    overflow: hidden;
}

.hdsv-scraper table th {
    background-color: var(--asverein-forum-primary-color); /* Rot als Hauptfarbe */
    color: var(--asverein-forum-light-color) !important;
    font-weight: bold;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #D41100; /* Dunklerer Rotton für Border */
}

.hdsv-scraper table th a {
    color: var(--asverein-forum-light-color) !important;
    text-decoration: none;
}

.hdsv-scraper table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.hdsv-scraper table tr:nth-child(even) {
    background-color: var(--asverein-forum-light-blue); /* Helles Blau für alternierende Zeilen */
}

.hdsv-scraper table tr:hover {
    background-color: #FFE5E0; /* Sehr helles Rot für Hover-Effekt */
}

/* Last row without bottom border */
.hdsv-scraper table tr:last-child td {
    border-bottom: none;
}

/* Rankings specific styles */
.hdsv-scraper .wickedleague table td:first-child,
.hdsv-scraper .wickedleague table td:nth-child(3),
.hdsv-scraper .wickedleague table td:nth-child(5),
.hdsv-scraper .wickedleague table td:nth-child(6) {
    text-align: center;
}

/* Pagination styling */
.hdsv-scraper .pagination {
    margin: 20px 0;
    text-align: center;
}

.hdsv-scraper .pagination ul {
    display: inline-block;
    padding: 0;
    margin: 0;
}

.hdsv-scraper .pagination li {
    display: inline;
    margin: 0 5px;
}

.hdsv-scraper .pagination a,
.hdsv-scraper .pagination span {
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: var(--asverein-forum-border-radius);
}

.hdsv-scraper .pagination span {
    background-color: var(--asverein-forum-primary-color);
    color: var(--asverein-forum-light-color);
    border-color: #D41100;
}

.hdsv-scraper .pagination a:hover {
    background-color: #FFE5E0;
}

/* Form styling */
.hdsv-scraper form:not([name="adminForm"]) {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--asverein-forum-light-blue);
    border-radius: var(--asverein-forum-border-radius);
    border: 1px solid #e0e0e0;
}

.hdsv-scraper select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: calc(var(--asverein-forum-border-radius) / 2);
    background-color: white;
    margin-right: 10px;
    min-width: 200px;
}

.hdsv-scraper .chzn-container {
    margin-right: 15px !important;
}

.hdsv-scraper .chzn-container-single .chzn-single {
    height: 35px;
    line-height: 35px;
    background: var(--asverein-forum-light-color);
}

/* Icons and buttons */
.hdsv-scraper .icons {
    margin-bottom: 15px;
}

.hdsv-scraper .btn {
    padding: 2px 8px;
    background-color: var(--asverein-forum-primary-color);
    color: var(--asverein-forum-light-color);
    border: none;
    border-radius: calc(var(--asverein-forum-border-radius) / 2);
    cursor: pointer;
}

.hdsv-scraper .btn:hover {
    background-color: #D41100;
}

/* Player profile link */
.hdsv-scraper table a {
    color: var(--asverein-forum-secondary-color); /* Blau für Links (besser lesbar) */
    text-decoration: none;
}

.hdsv-scraper table a:hover {
    text-decoration: underline;
}

/* Responsive tables */
@media screen and (max-width: 768px) {
    .hdsv-scraper table {
        font-size: 12px;
    }
    
    .hdsv-scraper table th,
    .hdsv-scraper table td {
        padding: 8px 10px;
    }
    
    .hdsv-scraper .hidden-phone {
        display: none;
    }
}

.hdsv-scraper .icons {
    display: none !important;
}

.hdsv-scraper .icon-search {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    margin-right: 5px;
  }
  
.hdsv-scraper .icon-search::after {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    width: 6px;
    height: 2px;
    background-color: currentColor;
    transform: rotate(45deg);
    transform-origin: 0 0;
  }

  .hdsv-scraper .btn.hasTooltip.js-stools-btn-clear {
    display: none !important;
  }

  .hdsv-scraper .icon-remove {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
  }
  
  .hdsv-scraper .icon-remove::before,
  .hdsv-scraper .icon-remove::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
  }
  
  .hdsv-scraper .icon-remove::before {
    transform: rotate(45deg);
  }
  
  .hdsv-scraper .icon-remove::after {
    transform: rotate(-45deg);
  }

  .hdsv-scraper .field-calendar {
    display: none;
  }

  .hdsv-scraper .badge {
    background-color: var(--asverein-forum-primary-color);
    font-size: 1rem;
  }

  .hdsv-scraper .row-fluid:not(#wickedcontesttable) {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .hdsv-scraper .element-invisible {
    display: none !important;
  }

  .hdsv-scraper #filter_search {
    width: 20em;
  }