    /* Tournament tree styling */
    #tree-container {
        margin: 20px;
        padding: 20px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }


    .tournament-header {
      background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
      margin-top: 15px;
      padding: 12px 20px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      box-shadow: 0 3px 10px rgba(0,0,0,0.2);
      position: relative;
      overflow: hidden;
    }
    
    .tournament-header::after {
      content: "";
      position: absolute;
      top: 0;
      right: 0;
      height: 100%;
      width: 30%;
      background: linear-gradient(to left, rgba(41, 128, 185, 0.2), transparent);
      pointer-events: none;
    }
    
    .title-container {
      display: flex;
      align-items: center;
    }
    
    .tournament-title {
      color: #fff;
      font-size: 18px;
      font-weight: 600;
      margin: 0;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    
    .tournament-title::before {
      content: "⟡";
      color: #3498db;
      margin-right: 8px;
      font-size: 16px;
    }
    
    .tournament-subtitle {
      background: rgba(0,0,0,0.2);
      color: #3498db;
      font-size: 12px;
      padding: 3px 8px;
      border-radius: 3px;
      margin: 0 0 0 15px;
      font-weight: 500;
    }



    
/* Enhanced Search Bar Styling */
#search-bar {
    display: flex;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

#searchInput {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-right: none;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 8px 0 0 8px;
}

#searchInput:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

#searchInput::placeholder {
    color: #aaa;
}

#searchButton {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    border-radius: 0 8px 8px 0;
}

#searchButton:hover {
    background-color: #3a7bc8;
}

#searchButton:active {
    background-color: #2a6cb8;
}

    
    #tree {
        font-family: Arial, sans-serif;
    }
    
    #tree ul {
        list-style-type: none;
        padding-left: 20px;
    }
    
    .tree-node {
        padding: 5px 0;
        display: flex;
        align-items: center;
    }
    
    .toggle {
        display: inline-block;
        width: 20px;
        height: 20px;
        text-align: center;
        line-height: 20px;
        margin-right: 5px;
        cursor: pointer;
        background-color: #f0f0f0;
        border-radius: 3px;
    }
    
    .tree-node-content {
        cursor: pointer;
        padding: 3px 8px;
        border-radius: 3px;
    }
    
    .tree-node-content:hover {
        background-color: #f0f0f0;
    }
    
    .highlighted {
        background-color: #ffeb3b;
        font-weight: bold;
    }
    
    .selected {
        background-color: #e3f2fd;
        font-weight: bold;
    }
    
    /* Node type-specific styling */
    .root-node {
        font-weight: bold;
        font-size: 1.2em;
        color: #333;
    }
    
    .tournament-node {
        color: #1976d2;
        font-weight: bold;
    }
    
    .match-node {
        color: #7b1fa2;
    }
    
    .round-node {
        color: #388e3c;
    }
    
    .winner-node {
        color: #d32f2f;
        font-style: italic;
    }

    /* Responsive adjustments */
@media (max-width: 768px) {
    #tree-container {
        margin: 2px;
        padding: 2px;
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .tournament-header {
      margin: 15px 15px;
    }    
      
    #search-bar {
        flex-direction: column;
        box-shadow: none;
    }
    
    #searchInput {
        border-right: 1px solid #e0e0e0;
        border-radius: 8px 8px 0 0;
    }
    
    #searchButton {
        border-radius: 0 0 8px 8px;
        padding: 8px 0;
    }
}