
    /* Tutorial popup styles */
    .tutorial-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1000;
        
    }

    .tutorial-popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #1a1c1e;
        padding: 30px;
        border-radius: 20px;
        width: 90%;
        max-width: 800px;
        height: auto;
        text-align: center;
    }

    .tutorial-images {
        display: flex;
        gap: 15px;
        justify-content: center;
        margin-bottom: 30px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .tutorial-image-container {
        position: relative;
        width: calc(33.33% - 10px);
        min-width: 150px;
        max-width: 250px;
        aspect-ratio: 1;
    }

    .tutorial-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .image-indicator {
        position: absolute;
        bottom: -25px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 24px;
        color: #00ff00;
    }

    .image-indicator.cross {
        color: #ff0000;
    }

    .tutorial-title {
        font-size: 24px;
        margin-bottom: 15px;
        color: white;
    }

    .tutorial-subtitle {
        font-size: 16px;
        color: #999;
        margin-bottom: 30px;
    }

    .tutorial-btn {
        background: #2c22fa;
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 8px;
        font-size: 16px;
        cursor: pointer;
        transition: background 0.3s;
    }

    .tutorial-btn:hover {
        background: #0056b3;
    }

    .tutorial-card, .examples-card {
        background: #2A2A2A;
        border-radius: 6px;
        padding: 15px;
        margin-top: 10px;
        text-align: center;
    }
    .steps-row, .examples-row {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 15px;
    }
    .step, .example {
        position: relative;
        flex: 1;
    }
    .step img, .example img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        
    }
    .step-indicator {
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        color: #4CAF50;
        background: #2A2A2A;
        border-radius: 50%;
        padding: 2px;
    }
    h6 {
        margin: 8px 0 4px;
        color: #fff;
        font-size: 14px;
    }
    p {
        margin: 0;
        font-size: 12px;
        color: #999;
    }
    @media (max-width: 768px) {
        .tutorial-section {
            display: none;
        }
        .tutorial-images {
            flex-direction: row;
            align-items: center;
            gap: 10px;
            padding: 0 10px;
        }

        .tutorial-image-container {
            min-width: 150px;
            max-width: none;
        }

        .tutorial-popup {
            width: 95%;
            padding: 20px;
        }
    }


    .popup-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
    }
    
    .popup {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: #1a1c1e;
        padding: 15px;
        border-radius: 32px;
        width: 90%;
        max-width: 800px;
        z-index: 1000;
        display: flex;
        gap: 30px;
    }
    
    .popup-video {
        flex: 1;
        border-radius: 8px;
        overflow: hidden;
        background: #0f1012;
        
    }
    
    .popup-content-wrapper {
        flex: 1;
    }
    
    .popup-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .popup-close {
        cursor: pointer;
        font-size: 24px;
        color: #666;
        transition: color 0.3s;
    }
    
    .popup-close:hover {
        color: #fff;
    }
    
    .popup-content {
        text-align: center;
    }
    
    .feature-list {
        margin: 20px 0;
        padding-left: 20px;
    }
    
    .feature-list li {
        margin: 10px 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .feature-list li:before {
        content: "✓";
        color: #007bff;
    }
    
    .upgrade-btn {
        background: #007bff;
        color: white;
        padding: 12px 24px;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        margin-top: 20px;
        font-size: 16px;
        width: 100%;
        transition: background 0.3s;
    }
    
    .upgrade-btn:hover {
        background: #0056b3;
    }
    
    .price-tag {
        font-size: 32px;
        font-weight: bold;
        color: #007bff;
        margin: 20px 0;
    }
    .popup-video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        
    }
    
    @media (max-width: 768px) {
        .popup {
            flex-direction: column;
            gap: 15px;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            transform: none;
            border-radius: 0;
            padding: 0;
            overflow-y: auto;
        }
    
        .popup-video {
            height: 35vh;
            flex: none;
            border-radius: 0;
            background-size: cover;
            background-position: center;
        }
    
        .popup-video video {
            display: none;
        }
    
      
    
        .popup-content-wrapper {
            padding: 20px;
            flex: none;
        }
    
        .popup-header {
            position: fixed;
            top: 0;
            right: 0;
            padding: 15px;
            margin: 0;
            z-index: 1001;
            background: rgba(0,0,0,0.5);
            width: 100%;
            justify-content: center;
        }
    
        .popup-close {
            position: absolute;
            right: 15px;
        }
    
        .upgrade-btn {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            margin: 0;
            border-radius: 0;
            padding: 20px;
        }
    
        .popup-content {
            padding-bottom: 80px;
        }
    }
    

/* Mobile credit badge */
.mobile-credits-badge {
    display: none;
    position: fixed;
    right: 20px;
    background: #2C22FA;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    margin-top: 7px;
}

@media screen and (max-width: 768px) {
    .mobile-credits-badge {
        display: block;
    }
    .navbar .credits-badge {
        display: none;
    }
}


    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
    scrollbar-color: #383838 #21212100;
}
.navbar {
    margin-left:240px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: transparent;
    border-bottom: 1px solid lightgray;
}

.navbar h4 {
    margin: 0;
    color : #fff;
}

.credits-badge {
    border: 1px solid #2C22FA;
    background-color: #2C22FA;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    font-weight:600;
    margin-right: 20px; /* Updated margin to 20px to separate from upgrade button */
}

.upgrade-btn {
    background-color: #2c22fa;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight:600;
}

/* Main Content */
.main-content {
    margin-left: 230px;
    flex: 1;
    padding: 20px;
    transition: 0.3s;
    display: flex;
    gap: 20px;
    height: auto;
    overflow: hidden; /* Disable scroll */
}

.main-content.expanded {
    margin-left: 60px;
}

/* Editor and Preview Sections */
.editor-section {
    flex: 1;
    min-width: 300px;
    background: #1A1A1A;
    border-radius: 8px;
    padding: 20px;
    resize: horizontal;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    transition: width 0.3s ease;
    width: 100%;
}

.editor-section.ajax-success {
    width: 50%;
}

.preview-section {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    padding: 20px;
    display: none;
}

.preview-section.ajax-success {
    display: block;
    width: 50%;
}

.editor-section-body::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

/* Upload Section Styles */
.upload-section {
    margin-bottom: 20px;
    padding: 20px;
    border: 2px dashed #333;
    border-radius: 8px;
    text-align: center;
    height: 270px;
}

.upload-section input[type="file"] {
    display: none;
}

.upload-btn {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    margin: 10px 0;
}

/* Prompt Input Styles */
.prompt-section {
    margin-top: 20px;
}

.prompt-input {
    width: 100%;
    padding: 12px;
    background: #2A2A2A;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
}

.prompt-input-body::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}
/* Responsive Design */
.generate-btn {
    padding: 12px 24px; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer;
}

#durationMenu {
    display: none;
    position: absolute;
    width: 33%;
    top: -90px;
    right: 79px;
    background: rgb(40, 43, 47);
    border-radius: 8px;
    padding: 10px;
    z-index: 10;
}

#ratioMenu {
    display: none;
    position: absolute;
    width: 33%;
    top: -90px;
    right: 200px;
    background: rgb(40, 43, 47);
    border-radius: 8px;
    padding: 10px;
    z-index: 10;
}

@media (max-width: 768px) {
    #tutorialSection {
        display: none;
    }
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0px;
        flex-direction: column;
        padding : 40px 10px 10px 10px;
    }
    .navbar {
        display:none;
    }
    .editor-section, .preview-section {
        margin-top: 20px;
        width: 100% !important;
        resize: none;
        overflow: visible;
    }
    #durationMenu {
        display: none;
        position: absolute;
        width: 47%;
        top: -90px;
        right: 79px;
        background: rgb(40, 43, 47);
        border-radius: 8px;
        padding: 10px;
        z-index: 10;
    }
    #ratioMenu {
        display: none;
        position: absolute;
        width: 47%;
        top: -90px;
        right: 175px;
        background: rgb(40, 43, 47);
        border-radius: 8px;
        padding: 10px;
        z-index: 10;
    }
}

.notification {
    position: fixed;
    top: 10px;
    right: -100%; /* Start off-screen */
    background-color: #4CAF50; /* Green background */
    color: white; /* White text */
    padding: 10px; /* Some padding */
    z-index: 10000; /* Sit on top */
    transition: right 0.5s; /* Slide in effect */
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}

.prompt-section {
    margin-top: 20px;
}
.generate-btn, .duration-btn, .ratio-btn {
    padding: 12px 20px; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    display: flex; 
    align-items: center; 
    gap: 2px; 
    cursor: pointer;
    background: #2C22FA;
    color: #fff;
}
.duration-menu div:hover, .ratio-menu div:hover {
    background: #333;
}
#imageContainer {
    width: 100%;
    height: auto;
    max-height: 300px;
    overflow: hidden;
}
.orientation-toggle {
    display: inline-flex;
    background: #2a2a2a;
    padding: 5px;
    border-radius: 50px;
    gap: 5px;
}
.orientation-toggle input[type="radio"] {
    display: none;
}
.orientation-toggle label {
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
}
.orientation-toggle input[type="radio"]:checked + label {
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    color: white;
}
.crop-btn, .cancel-btn {
    padding: 10px 24px;
    margin: 0 5px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.crop-btn {
    background: linear-gradient(45deg, #3B82F6, #8B5CF6);
    color: white;
}

.cancel-btn {
    background: transparent;
    color: white;
    border: 1px solid;
}

@media screen and (max-width: 768px) {
    #imageContainer {
        height: auto;
        max-height: 250px;
    }
    
    #cropButtons {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #1A1A1A;
        padding: 10px;
        z-index: 1000;
        margin: 0;
    }
    
    .crop-btn, .cancel-btn {
        flex: 1;
        justify-content: center;
    }
    
    .upload-section {
        padding-bottom: 60px;
    }
}
