.img_vid {
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid #8a47cc;
    padding: 20px;
    border-radius: 10px;
}
form#generate_video button, #upload_media button{
    display: block;
    margin-left: auto;
}

input#image_uploads,#image_uploads_mod {
    display: block;
    padding: 10px;
    border: 1px solid #8a47cc;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 20px;
}
div#response {
    text-align: center;
    margin-top: 20px;
}

.img_vid textarea {
    width: 100%;
    background: transparent;
}





/* Prompt Templates Accordion Styles */
.prompt-templates-container {
    margin-bottom: 25px;
}

.prompt-accordion {
    border: 1px solid #8a47cc;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background-color: #0f0f2a;
    color: white;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.3s ease;
}

.accordion-title {
    font-weight: 600;
    font-size: 16px;
	color: #aaaac1;
}

.accordion-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

span.accordion-icon svg {
    font-size: 12px;
    width: 20px;
    display: flex;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #151535;
}

.accordion-content.active {
    max-height: 400px; 
    overflow-y: auto; 
}


.accordion-content::-webkit-scrollbar {
    width: 6px;
}
.accordion-content::-webkit-scrollbar-track {
    background: #0f0f2a;
}
.accordion-content::-webkit-scrollbar-thumb {
    background: #8a47cc;
    border-radius: 3px;
}
.accordion-content::-webkit-scrollbar-thumb:hover {
    background: #7a3eb8;
}

.prompt-templates-list {
    padding: 20px;
    padding-bottom: 10px; 
}
.prompt-template-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #202045;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.prompt-template-item:hover {
    border-color: #8a47cc;
    box-shadow: 0 2px 8px rgba(138, 71, 204, 0.1);
}
.prompt-template-item:last-child {
    margin-bottom: 0;
}
.template-info {
    flex: 1;
    margin-right: 15px;
}

.template-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #aaaac1;
}
.template-description {
    font-size: 14px;
    color: #aaaac1;
    margin: 0;
    line-height: 1.4;
}
.use-template-btn {
    background-color: #8a47cc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.1s ease;
    flex-shrink: 0;
}

.use-template-btn:hover {
    background-color: #7a3eb8;
    transform: translateY(-1px);
}
.use-template-btn:active {
    transform: translateY(0);
}

/* Mobile responsiveness for accordion */
@media (max-width: 767px) {
    .prompt-template-item {
        flex-direction: column;
        align-items: stretch;
		padding: 12px;
    }
	
	.prompt-templates-list {
		padding: 10px;
	}
	
	.accordion-header {
		padding: 12px 10px;
	}
	
	.accordion-title {
		font-size: 14px;
	}
    
    .template-info {
        margin-right: 0;
        margin-bottom: 6px;
    }
	
	.template-title {
		font-size: 14px;
		margin: 0 0 4px 0;
	}

	.template-description {
		font-size: 11px;
	}
    
    .use-template-btn {
        align-self: flex-start;
        width: auto;
		 padding: 4px 10px;
    }
    
    .accordion-content.active {
        max-height: 220px; 
        overflow-y: auto; 
    }
}