/* Main container styles */
.search-container {
    width: 100%;
    max-width: 800px; /* This will be overridden by inline styles */
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* Search input styles */
#channelSearch {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #333;
    color: #fff;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Channel list container */
#channelList {
    background-color: #222;
    border-radius: 5px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #666 #333;
}

/* Channel item styles */
.channel-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.channel-item:hover {
    background-color: #444 !important;
}

/* Icon styles */
.channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    font-size: 18px;
}

.channel-icon.custom-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Category name styles */
.category-name {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 500;
}

/* Toggle button styles */
.toggle-button {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: inherit;
    transition: transform 0.3s ease;
}

/* Toggle button variations */
.toggle-plus-minus .toggle-button::before {
    content: '+';
}

.toggle-plus-minus .toggle-button.close::before {
    content: '−';
}

.toggle-arrow .toggle-button::before {
    content: '▶';
}

.toggle-arrow .toggle-button.close::before {
    content: '▼';
}

/* Channel sublist styles */
.channel-sublist {
    display: none;
    list-style: none;
    margin: 0;
    padding: 10px 15px 10px 49px;
    background-color: #222;
    transition: all 0.3s ease;
}

.channel-sublist li {
    padding: 8px 0;
    font-size: 14px;
}

/* Icon position variations */
.channel-list.icon-right .channel-item {
    flex-direction: row-reverse;
}

.channel-list.icon-right .channel-icon {
    margin-right: 0;
    margin-left: 10px;
}

/* Scrollbar styles */
#channelList::-webkit-scrollbar {
    width: 8px;
}

#channelList::-webkit-scrollbar-track {
    background: #333;
    border-radius: 4px;
}

#channelList::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

#channelList::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Admin panel specific styles */
.wp-admin .form-table textarea {
    width: 100%;
    min-height: 100px;
}

.wp-admin .m3u-upload-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#channel-list-table {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
}
/* In style.css, update the search container styles */
.search-container {
    width: 100%;
    max-width: 800px; /* This will be overridden by inline styles */
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

/* Add responsive styles for smaller screens */
@media screen and (max-width: 600px) {
    .search-container {
        width: 95%; /* Add some margin on very small screens */
    }
    
    #channelSearch {
        padding: 10px;
        font-size: 14px;
    }
    
    .channel-item {
        padding: 10px 12px;
    }
    
    .channel-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }
    
    .category-name {
        font-size: 14px;
    }
}