/* Search Form Styles */
#youtube-search-form {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    max-height: 600px;
    overflow-y: auto;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

/* Search Input Styles */
#youtube-search-title {
    flex: 1;
    padding: 0 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 40px 0 0 40px;
    outline: none;
    background-color: white;
    color: #030303;
    height: 40px;
	font-weight: 600; /* Medium-bold weight */
    width: 100px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

#youtube-search-title:focus {
    border-color: #1c62b9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Search Button Styles */
#search-videos-btn {
    padding: 1px 20px;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 40px 40px 0;
    cursor: pointer;
    height: 40px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.search-icon {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23606060'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: inline-block;
}

#search-videos-btn:hover {
    background-color: #f0f0f0;
}



/* Search Results Styles */
#search-results-container {
    margin-top: 20px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #fff;
}

.search-result-item img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.video-info {
    flex: 1;
}

.video-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    margin-bottom: 5px;
}

/* Queue List Styles */
#video-queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#video-queue-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #fff;
}

/* Queue Action Buttons */
.remove-video-btn {
    padding: 8px 16px;
    font-family: 'Raleway', sans-serif;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 8px;
    color: white;
}

.remove-video-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.remove-video-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

/* Error Messages */
.error-message {
    font-family: 'Raleway', sans-serif;
    padding: 10px;
    border-radius: 4px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    margin: 10px 0;
}

.search-error-message {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8f8f8;
    text-align: center;
}

.error-solutions {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.search-error-message h3 {
    color: #d32f2f;
    margin-bottom: 15px;
}

.search-error-message a {
    color: #1976d2;
    text-decoration: none;
}

.search-error-message a:hover {
    text-decoration: underline;
}

/* Loading States */
.button-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
        text-align: center;
    }

    .search-result-item img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .video-info {
        margin-bottom: 10px;
    }

    #video-queue-list li {
        flex-direction: column;
        text-align: center;
    }

    .remove-video-btn {
        margin: 5px;
        width: 100%;
    }
}