.alert {
    transition: opacity 0.5s ease;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.bg-custom-dark{
    background-color: #03081C;
}

.alert-error{
    color: rgb(255, 255, 255);
    background-color: var(--bs-red);
    border: 1px solid rgb(255, 255, 255);
}

.alert-success{
    color: rgb(255, 255, 255);
    background-color: var(--bs-success);
    border: 1px solid rgb(255, 255, 255);
}

.w-fit{
    width: fit-content;
}

.cursor-pointer{
    cursor: pointer;
}

/* STUDIO PAGE */
.h-100vh{
    height: 100vh !important;
}

/* Hide scrollbars for studio page while maintaining scroll functionality */
.main_studio_div {
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 7rem;
    background-color: #03081C;
    overflow-x: hidden;
}

/* Hide scrollbar for body when on studio page */
body:has(.main_studio_div) {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body:has(.main_studio_div)::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Alternative approach for broader browser support */
.main_studio_div.h-100vh {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.main_studio_div.h-100vh::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Studio page specific scrollbar hiding */
.studio-page-no-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overflow-y: auto;
}

.studio-page-no-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Ensure body doesn't show scrollbar on studio page */
body:has(.studio-page-no-scrollbar) {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body:has(.studio-page-no-scrollbar)::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.main_studio_div h1{
    color: whitesmoke !important;
    font-size: 900;
}

.main_studio_container {
    position: relative;
    height: auto;
    min-height: calc(100vh - 13rem);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.line-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.line-container-line {
    flex: 1;
    height: 1px;
    background-color: white; 
    margin: 0 10px;
}

.line-container-text {
    font-size: 1rem; 
    color: white;
    text-align: center;
}

/* PPT GENERATIONS DIV */
.all_generations {
    position: relative;
    height: auto;
    min-height: calc(100vh - 20rem);
    max-height: calc(100vh - 20rem);
    overflow-y: scroll;
    overflow-x: hidden;
    margin-bottom: 5rem;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.all_generations::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Chat wrapper and input styling */
.chat-input-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #03081C;
    padding-bottom: 1rem;
}

/* AI Prompt Buttons Section */
.ai-prompt-buttons-section {
    position: fixed;
    bottom: 8rem;
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(to bottom, transparent, rgba(3, 8, 28, 0.8) 50%);
    padding: 1rem 0;
    pointer-events: none;
}

.ai-prompt-buttons-container {
    max-width: 800px;
    margin: 3rem auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem;
    pointer-events: auto;
}

.ai-prompt-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.75rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-prompt-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(148, 163, 184, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.98), rgba(30, 41, 59, 0.95));
}

.ai-prompt-btn:hover::before {
    opacity: 1;
}

.ai-prompt-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.ai-prompt-btn i {
    font-size: 1rem;
    opacity: 0.9;
}

.ai-prompt-btn span {
    position: relative;
    z-index: 2;
}

/* Individual button styling */
.ai-btn-select-template:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(30, 41, 59, 0.95));
}

.ai-btn-generate-ai:hover {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(30, 41, 59, 0.95));
}

.ai-btn-generate-icons:hover {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(30, 41, 59, 0.95));
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ai-prompt-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .ai-prompt-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .ai-prompt-buttons-section {
        bottom: 10rem;
    }
}

@media (max-width: 480px) {
    .ai-prompt-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .ai-prompt-btn i {
        font-size: 0.875rem;
    }
}

/* AI Results Display */
.ai-loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
    border-radius: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.ai-loading-content {
    text-align: center;
    color: white;
}

.ai-loading-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #22c55e;
    animation: aiSpin 2s linear infinite;
}

@keyframes aiSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.ai-results-container {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
    border-radius: 1.5rem;
    padding: 2rem;
    margin: 2rem auto;
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ai-results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ai-results-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #6828FF, #56BEF5, #27DF8C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-results-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.ai-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ai-template-card {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.8), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.ai-template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.ai-template-preview {
    height: 180px;
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.5), rgba(55, 65, 81, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ai-template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ai-template-card:hover .ai-template-preview img {
    transform: scale(1.05);
}

.ai-template-placeholder {
    color: rgba(148, 163, 184, 0.6);
    font-size: 3rem;
}

.ai-template-info {
    padding: 1.5rem;
}

.ai-template-info h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ai-template-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.ai-template-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ai-template-select-btn, .ai-template-lookalike-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.ai-template-select-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    flex: 1;
}

.ai-template-select-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.ai-template-lookalike-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(79, 70, 229, 0.9));
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.ai-template-lookalike-btn:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Mobile responsive for AI results */
@media (max-width: 768px) {
    .ai-results-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .ai-templates-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ai-template-actions {
        flex-direction: column;
    }
    
    .ai-template-select-btn, .ai-template-lookalike-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Enhanced AI Template Card Elements */
.ai-premium-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

.ai-similarity-score {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.ai-template-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ai-template-category {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.ai-icon-badge {
    font-size: 0.75rem;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.ai-template-locked {
    opacity: 0.7;
    position: relative;
}

.ai-template-locked::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    z-index: 1;
}

.ai-template-upgrade-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    flex: 1;
}

.ai-template-upgrade-btn:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.ai-results-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.ai-results-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ai-results-note i {
    color: rgba(59, 130, 246, 0.8);
}

/* Upgrade Modal Styling */
.upgrade-modal-content h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.upgrade-modal-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.upgrade-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upgrade-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #374151;
}

.upgrade-benefits li i {
    color: #10b981;
    width: 1rem;
}

/* Enhanced loading animations */
@keyframes aiPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.ai-loading-spinner {
    animation: aiSpin 2s linear infinite, aiPulse 2s ease-in-out infinite;
}

/* Template card hover effects */
.ai-template-card:hover .ai-similarity-score {
    background: rgba(34, 197, 94, 1);
    transform: scale(1.05);
}

.ai-template-card:hover .ai-premium-badge {
    transform: scale(1.05);
}

/* Responsive enhancements for mobile */
@media (max-width: 480px) {
    .ai-premium-badge, .ai-similarity-score {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.375rem;
    }
    
    .ai-template-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.375rem;
    }
    
    .ai-template-actions {
        gap: 0.5rem;
    }
    
    .ai-template-select-btn, 
    .ai-template-lookalike-btn, 
    .ai-template-upgrade-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Deck-specific UI styles */
.ai-deck-badge {
    position: absolute;
    top: 3.25rem;
    left: 0.75rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
}

.ai-template-deck-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(79, 70, 229, 0.9));
    color: white;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.ai-template-deck-btn:hover {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.deck-results {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.deck-info-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(79, 70, 229, 0.05));
    border-radius: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.deck-info-section h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.deck-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.deck-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.deck-item strong {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.deck-template-count {
    font-size: 0.875rem;
    color: rgba(99, 102, 241, 0.9);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.deck-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

.deck-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-select-all-deck {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-select-all-deck:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-select-all-deck:active {
    transform: translateY(0);
}

/* Deck badge animations */
.ai-template-card:hover .ai-deck-badge {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4f46e5, #3730a3);
}

/* Mobile responsive for deck UI */
@media (max-width: 768px) {
    .deck-info-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .deck-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .deck-item {
        padding: 0.75rem;
    }
    
    .btn-select-all-deck {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.5rem;
    }
    
    .ai-deck-badge {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.375rem;
        top: 2.75rem;
    }
    
    .ai-template-deck-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
}

.generate__ppt__main__div {
    position: relative;
    padding: 2rem 0;
    background: linear-gradient(to bottom, transparent, #03081C 30%);
}

.search_container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.8));
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 1.2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(148, 163, 184, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.search_container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(148, 163, 184, 0.05), transparent);
    pointer-events: none;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.search_container:focus-within {
    background: linear-gradient(135deg, rgba(51, 65, 85, 0.95), rgba(30, 41, 59, 0.9));
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px) scale(1.01);
}

.search_container form {
    position: relative;
    margin: 0;
}

.search_container input {
    border: none;
    background: transparent !important;
    color: white;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 1rem 3.5rem 1rem 2rem;
    width: 100%;
    border-radius: 0.75rem;
    position: relative;
    z-index: 2;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.search_container input::placeholder {
    color: rgba(148, 163, 184, 0.7);
    font-style: italic;
    transition: color 0.3s ease;
}

.search_container input:focus::placeholder {
    color: rgba(59, 130, 246, 0.8);
}

.search_container input:focus {
    outline: none;
    color: #ffffff;
}

.generated__btn {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.4);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    z-index: 3;
    overflow: hidden;
}

.generated__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.generated__btn.typing {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4), 0 0 0 2px rgba(59, 130, 246, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.generated__btn.typing::before {
    opacity: 1;
    animation: btnShimmer 2s ease-in-out infinite;
}

@keyframes btnShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.generated__btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 1));
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.4);
}

.generated__btn:hover::before {
    opacity: 1;
}

.generated__btn img {
    width: 1.3rem;
    height: 1.3rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.generated__btn.typing img {
    opacity: 1;
    filter: brightness(1.2);
}



/* AI-inspired gradient text effect for placeholder when focused */
.search_container input:focus::placeholder {
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* PREVIOUS GENERATIONS */
.studio_encloser {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    padding: 0 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.studio_encloser::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

@keyframes l21{
    100%{background-position: left}
}

/* THUMBS */
.thumb-success{
    color: aquamarine;
}
.thumb-danger{
    color: rgb(255, 112, 112);
}

.payment-gateway-img{
    height: 10rem;
    width: 10rem;
}

.light-dark-bg-border{
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.logo-img{
    width: 5rem;
}

.pagination .step-links{
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
}

.shifter-btns{
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 0.5rem 2rem;
}

.shifter-btns img{
    width: 0.5rem;
}

.bg-regular{
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

#div_id_reason_for_cancellation, #div_id_usage_frequency{
    display: flex !important;
    flex-direction: column !important;
}

[id^="div_id"] textarea{
    height: 10rem;
}

.user_cancellation_form>div{
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem 1rem;
    border-radius: 1rem;
}

[id^="div_id"] textarea, [id^="div_id"] input {
    background-color:transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

[id^="div_id"] label {
    font-weight: 900;
    color: white;
}

.nice-select{
    background-color: transparent !important;
    color: white;
}

.nice-select ul li{
    color: black;
}

.progress_spinner{
    width: 1rem;
    height: 1rem;
    font-size: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

/* GOOGLE LOGIN BTN */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 20px;
    background-color: #ffffff;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    color: #333333;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.google-btn img {
    width: 30px;
    margin-right: 10px;
}

.google-btn:hover {
    background-color: #f1f1f1;
}

#hichy__div {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    line-height: 1.2;
    padding: 2rem;
    background: linear-gradient(90deg, #6828FF, #56BEF5, #27DF8C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-align: center;
    opacity: 0.9;
    width: 90%;
    max-width: 1200px;
    text-shadow: 0 0 30px rgba(104, 40, 255, 0.2);
    animation: fadeInScale 0.8s ease-out;
    letter-spacing: -0.02em;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
}

.progress-step {
    margin-bottom: 8px;
}

.progress_spinner {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opacity-0 {
    opacity: 0;
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: black;
    margin-left: 2px;
    animation: blink 0.7s steps(2, start) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media only screen and (max-width: 600px) {
    #hichy__div {
        text-align: right;
    }
}

.hichy__div {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin: 2rem 0;
    color: #333;
}

@media (max-width: 768px) {
    #hichy__div {
        font-size: 2.5rem;
        padding: 1.5rem;
        width: 85%;
    }
}

@media (max-width: 576px) {
    #hichy__div {
        font-size: 2rem;
        padding: 1rem;
        width: 80%;
    }
}

@media (max-width: 320px) {
    #hichy__div {
        font-size: 1.5rem;
        padding: 0.75rem;
        width: 90%;
    }
}

/* Old navbar styles removed - using new navbar component */

/* Template Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: #4a6cf7;
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4a6cf7;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Deck Grid Styling */
.decks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 15px;
}

.deck-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.deck-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.deck-preview {
    height: 150px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.deck-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 40px;
    color: #ccc;
}

.deck-info {
    padding: 15px;
}

.deck-info h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.deck-info p {
    margin: 0 0 15px;
    font-size: 14px;
    color: #666;
}

.no-decks-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.no-decks-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.no-decks-message p {
    font-size: 16px;
    max-width: 400px;
}

/* Template Selection Button */
.btn-select-template {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #4a6cf7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 108, 247, 0.2);
}

.btn-select-template:hover {
    background-color: #3a5bd9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 108, 247, 0.3);
}

.btn-select-template i {
    font-size: 18px;
}

.template-selection-header {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* No Items Message */
.no-items-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.no-items-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.no-items-message p {
    font-size: 16px;
    max-width: 400px;
}

/* Selection Type Indicator */
.selection-type-indicator {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.selection-type-indicator.templates {
    background-color: rgba(74, 108, 247, 0.1);
    color: #4a6cf7;
}

.selection-type-indicator.deck {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

/* Checkbox Styling */
.custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    margin-right: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background-color: #4a6cf7;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .select-text {
    font-size: 14px;
    color: #666;
}

/* Card Selection Styling */
.template-card.selected,
.deck-card.selected {
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

.deck-card.selected {
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

/* Disabled Checkbox Styling */
.custom-checkbox input[type="checkbox"]:disabled ~ .checkmark {
    background-color: #ddd;
    cursor: not-allowed;
}

.custom-checkbox input[type="checkbox"]:disabled ~ .select-text {
    color: #999;
    cursor: not-allowed;
}

/* Selection Count Animation */
@keyframes countUpdate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.selected-count.updated {
    animation: countUpdate 0.3s ease;
}

/* Apply Button Animation */
@keyframes applyPulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 108, 247, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(74, 108, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 108, 247, 0); }
}

.btn-apply.active {
    animation: applyPulse 1.5s infinite;
}

/* Modal Transition */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    overflow: hidden;
}

.custom-modal.active {
    display: block;
}

.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 99999;
}

.custom-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    margin: 5vh auto;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100000;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-branding {
    display: flex;
    align-items: center;
}

.modal-icon {
    width: 40px;
    height: 40px;
    background-color: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.modal-icon i {
    color: #4a6cf7;
    font-size: 18px;
}

.modal-titles h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-titles p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #333;
}

.custom-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.custom-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.selection-info {
    font-size: 14px;
    color: #666;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.btn-cancel {
    padding: 8px 16px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background-color: #f5f5f5;
}

.btn-apply {
    padding: 8px 16px;
    background-color: #4a6cf7;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-apply:hover {
    background-color: #3a5bd9;
}

.btn-apply i {
    font-size: 12px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .custom-modal-container {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .templates-grid,
    .decks-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .modal-branding {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .templates-grid,
    .decks-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-modal-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .selection-info {
        text-align: center;
        width: 100%;
    }
    
    .modal-actions {
        width: 100%;
        justify-content: center;
    }
}

/* AI Generation Workflow - Mode Button Styles */
.ai-prompt-buttons-section {
    margin-bottom: 1rem;
}

.ai-prompt-buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-prompt-btn {
    background: rgba(40, 40, 50, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ai-prompt-btn:hover {
    background: rgba(60, 60, 70, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.ai-prompt-btn.active {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-color: #007bff;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    animation: pulse-active 2s infinite;
}

.ai-prompt-btn.active:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

@keyframes pulse-active {
    0% {
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(0, 123, 255, 0.6);
    }
    100% {
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    }
}

/* Enhanced Submit Button Styles */
.generated__btn {
    transition: all 0.3s ease;
}

.generated__btn.mode-active {
    background: linear-gradient(45deg, #28a745, #20c997);
    border-color: #28a745;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    animation: ready-pulse 1.5s infinite;
}

.generated__btn.mode-active:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

@keyframes ready-pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.6);
    }
}

/* Mode-specific button colors */
.ai-btn-generate-ai.active {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    border-color: #ff6b6b;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.ai-btn-generate-icons.active {
    background: linear-gradient(45deg, #ffa726, #ff9800);
    border-color: #ffa726;
    box-shadow: 0 6px 20px rgba(255, 167, 38, 0.4);
}

.ai-btn-select-template.active {
    background: linear-gradient(45deg, #ab47bc, #9c27b0);
    border-color: #ab47bc;
    box-shadow: 0 6px 20px rgba(171, 71, 188, 0.4);
}

/* Input placeholder animation for different modes */
#gen-ppt-search-input {
    transition: all 0.3s ease;
}

#gen-ppt-search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* AI Results styling improvements */
.ai-results-container {
    background: rgba(30, 30, 40, 0.4);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-results-header h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.ai-results-header p {
    color: #cccccc;
    margin-bottom: 20px;
}

.ai-workflow-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
    color: #17a2b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-workflow-info i {
    color: #17a2b8;
    flex-shrink: 0;
}

.ai-workflow-note {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0 0 0;
    color: #28a745;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-workflow-note i {
    color: #28a745;
    flex-shrink: 0;
}

.ai-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ai-template-card {
    background: rgba(40, 40, 50, 0.6);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.ai-template-select-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 160px;
}

.ai-template-select-btn:hover {
    background: linear-gradient(45deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
    color: white;
}

.ai-template-select-btn i {
    font-size: 0.9rem;
    animation: spin-on-hover 0.3s ease;
}

.ai-template-select-btn:hover i {
    animation: spin-on-hover 0.6s ease;
}

@keyframes spin-on-hover {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading state improvements */
.ai-loading-container {
    text-align: center;
    padding: 40px 20px;
}

.ai-loading-spinner {
    font-size: 2rem;
    color: #007bff;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-loading-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Post-generation actions styling */
.post-generation-actions {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design for mode buttons */
@media (max-width: 768px) {
    .ai-prompt-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .ai-prompt-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .ai-templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .ai-workflow-info,
    .ai-workflow-note {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    .ai-template-select-btn {
        font-size: 0.8rem;
        padding: 8px 14px;
        min-width: 140px;
    }
}

/* Homepage Prompt Input Styles - Enhanced & Beautiful */
.homepage-prompt-section {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 10;
    animation: heroFadeInUp 1.2s ease-out;
}

/* Glowing background effect */
.homepage-prompt-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(85, 105, 255, 0.1) 0%, rgba(85, 105, 255, 0.05) 30%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

@keyframes heroFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.homepage-prompt-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Input Container */
.homepage-input-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

/* Typing Indicator */
.typing-indicator {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(85, 105, 255, 0.7);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.homepage-input-container.typing .typing-indicator {
    opacity: 1;
    animation: typingPulse 1.5s ease-in-out infinite;
}

@keyframes typingPulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
}

/* Character Counter */
.input-length-indicator {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.homepage-input-container.active .input-length-indicator {
    opacity: 1;
}

.input-length-indicator.ready {
    color: rgba(34, 197, 94, 0.8);
    font-weight: 600;
}

.homepage-prompt-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s;
    animation: homepageShimmer 3s ease-in-out infinite;
}

@keyframes homepageShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

.homepage-prompt-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 40px rgba(85, 105, 255, 0.1);
    border-color: rgba(85, 105, 255, 0.3);
}

.homepage-prompt-wrapper:focus-within {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 
        0 45px 90px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(85, 105, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 60px rgba(85, 105, 255, 0.2);
    border-color: rgba(85, 105, 255, 0.5);
    background: linear-gradient(135deg, rgba(85, 105, 255, 0.08), rgba(255, 255, 255, 0.08));
}

.homepage-prompt-input {
    flex: 1;
    padding: 20px 50px 20px 25px;
    font-size: 18px;
    font-weight: 400;
    background: transparent;
    border: none;
    color: white;
    outline: none;
    line-height: 1.5;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.homepage-input-container.typing .homepage-prompt-input {
    padding-left: 45px;
}

.homepage-prompt-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.6), rgba(85, 105, 255, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: placeholderPulse 4s ease-in-out infinite;
}

@keyframes placeholderPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.homepage-prompt-input:focus::placeholder {
    opacity: 0.4;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.4), rgba(85, 105, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.homepage-generate-btn {
    position: relative;
    padding: 18px 35px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #5569ff, #6c5ce7) !important;
    border: none !important;
    border-radius: 20px !important;
    color: white !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 10px 25px rgba(85, 105, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.homepage-generate-btn .btn-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.homepage-generate-btn:hover .btn-icon {
    transform: translateX(3px);
}

.homepage-generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.homepage-generate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(85, 105, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 0 30px rgba(85, 105, 255, 0.3);
    background: linear-gradient(135deg, #6c5ce7, #a29bfe) !important;
}

.homepage-generate-btn:hover::before {
    left: 100%;
}

.homepage-generate-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(85, 105, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.homepage-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 5px 15px rgba(85, 105, 255, 0.2) !important;
}

/* Quick Suggestions */
.quick-suggestions {
    margin-top: 20px;
    text-align: center;
    animation: suggestionsSlideIn 1.5s ease-out 0.8s both;
}

@keyframes suggestionsSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.quick-suggestions p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.suggestion-pills {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.suggestion-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.suggestion-pill:hover {
    background: rgba(85, 105, 255, 0.15);
    border-color: rgba(85, 105, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(85, 105, 255, 0.2);
    color: white;
}

.suggestion-pill:hover::before {
    left: 100%;
}

.suggestion-pill:active {
    transform: translateY(-1px) scale(1.02);
}

.homepage-prompt-or {
    position: relative;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 500;
    padding: 0 20px;
    background: rgba(3, 8, 28, 0.8);
    border-radius: 20px;
    z-index: 5;
}

.homepage-prompt-or::before,
.homepage-prompt-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.homepage-prompt-or::before {
    left: -80px;
}

.homepage-prompt-or::after {
    right: -80px;
}

.homepage-studio-link {
    position: relative;
    padding: 15px 30px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-radius: 15px !important;
    backdrop-filter: blur(15px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.homepage-studio-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.homepage-studio-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    color: white !important;
}

.homepage-studio-link:hover::before {
    left: 100%;
}

/* Enhanced interactive effects */
.homepage-prompt-wrapper:hover .homepage-prompt-input::placeholder {
    animation: placeholderEnhanced 2s ease-in-out infinite;
}

@keyframes placeholderEnhanced {
    0%, 100% { 
        opacity: 0.6; 
        transform: translateX(0px);
    }
    25% { 
        opacity: 0.9; 
        transform: translateX(2px);
    }
    75% { 
        opacity: 0.8; 
        transform: translateX(-2px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .homepage-prompt-glow {
        width: 600px;
        height: 300px;
    }
    
    .homepage-prompt-section {
        margin-top: 40px;
        gap: 25px;
        padding: 0 15px;
    }
    
    .homepage-prompt-wrapper {
        flex-direction: column;
        padding: 15px;
        border-radius: 20px;
        gap: 15px;
    }
    
    .homepage-input-container {
        width: 100%;
    }
    
    .homepage-prompt-input {
        width: 100%;
        padding: 18px 20px;
        font-size: 16px;
        text-align: center;
    }
    
    .homepage-input-container.typing .homepage-prompt-input {
        padding-left: 40px;
    }
    
    .typing-indicator {
        left: 10px;
        font-size: 12px;
    }
    
    .input-length-indicator {
        right: 10px;
        font-size: 11px;
    }
    
    .homepage-generate-btn {
        width: 100%;
        padding: 16px 30px !important;
        font-size: 15px !important;
        justify-content: center;
    }
    
    .suggestion-pills {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .suggestion-pill {
        max-width: 280px;
        text-align: center;
    }
    
    .homepage-prompt-or::before,
    .homepage-prompt-or::after {
        width: 40px;
    }
    
    .homepage-prompt-or::before {
        left: -50px;
    }
    
    .homepage-prompt-or::after {
        right: -50px;
    }
}

@media (max-width: 480px) {
    .homepage-prompt-glow {
        width: 400px;
        height: 200px;
    }
    
    .homepage-prompt-section {
        margin-top: 30px;
        gap: 20px;
    }
    
    .homepage-prompt-wrapper {
        padding: 12px;
        border-radius: 18px;
    }
    
    .homepage-prompt-input {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    .homepage-input-container.typing .homepage-prompt-input {
        padding-left: 35px;
    }
    
    .homepage-generate-btn {
        padding: 14px 25px !important;
        font-size: 14px !important;
        gap: 6px;
    }
    
    .homepage-studio-link {
        padding: 12px 20px !important;
        font-size: 13px !important;
    }
    
    .quick-suggestions p {
        font-size: 13px;
    }
    
    .suggestion-pill {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .homepage-prompt-section {
        transition: transform 0.3s ease;
    }
}

/* Studio Input Disabled States */
.studio-input:disabled,
.studio-input[disabled] {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
}

.studio-submit-btn:disabled,
.studio-submit-btn[disabled] {
    background: rgba(85, 105, 255, 0.3) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}

.studio-mode-btn:disabled,
.studio-mode-btn[disabled] {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    transform: none !important;
    transition: all 0.3s ease !important;
}

/* Processing state indicator */
.studio-input-section.processing {
    position: relative;
}

.studio-input-section.processing::after {
    content: "Processing your request...";
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(85, 105, 255, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 100;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(85, 105, 255, 0.5);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(85, 105, 255, 0.8);
    }
}
