/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, rgb(26, 26, 26), rgb(44, 44, 44));
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333333;
    min-height: 100vh;
    position: relative;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #1e1e1e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo img {
    height: 50px;
}

.nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #F0B90B;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Two-column layout */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background: #ffb4000d;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.input-section {
    background: #1e1e1e;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px;
    border-radius: 10px;
}

.video-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: solid 2px #d7a217;
    border-radius: 10px;
    padding: 5px;
}


/* Wallet status */
#wallet-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

#wallet-address {
    color: #F0B90B;
    font-size: 1rem;
    font-weight: 500;
    background: #1e1e1e;
    padding: 10px 20px;
    border: 1px solid #F0B90B;
    border-radius: 8px;
}

/* Buttons */
.btn {
    background: linear-gradient(90deg, #f0b90b0a, #d4a01736);
    color: #ffc107;
    padding: 12px 24px;
    border: solid 1px #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.upload-btn {
    width: 200px;
    text-align: center;
}

/* Upload section */
.upload-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

#image-upload {
    display: none;
}

#image-status {
    color: white;
    font-size: 0.9rem;
}

#image-preview img {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #F0B90B;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.image-preview-cls {
    border: solid 1px #ffffff;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    border-radius: 10px;
}

/* Prompt input */
.prompt-input {
    margin-bottom: 10px;
    width: 100%;
    height: 120px;
    padding: 15px;
    border: 2px solid #F0B90B;
    border-radius: 10px;
    background: #1e1e1e;
    color: #ffffff;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.prompt-input:focus {
    border-color: #d4a017;
    outline: none;
}

/* Status message */
#status-message {
    color: white!important;
        /*background: #232323;*/
    padding: 10px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Video output */
#video-output video {
    max-width: 100%;
    border: 2px solid #F0B90B;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

#video-output video:hover {
    transform: scale(1.02);
}

/* History section */
#history {
    margin-top: 40px;
    background: #ffb4000d;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.history-btn {
    width: 200px;
    margin: 0 auto;
    display: block;
}

#history-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
}

#history-list li {
    background: #282828;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #ffffff;
    border: 1px solid #e0e0e0;
    transition: background 0.3s;
}

#history-list li:hover {
    background: #f0f0f0;
}

#history-list a {
    color: #F0B90B;
    text-decoration: none;
}

#history-list a:hover {
    text-decoration: underline;
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.popup-content p {
    margin-bottom: 20px;
}

.popup-content .btn {
    margin: 0 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
    .nav {
        display: none;
        flex-direction: column;
        width: 200px;
        position: absolute;
        top: 80px;
        right: 20px;
        background: #1e1e1e;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    .nav.active {
        display: flex;
    }
    .nav-link {
        padding: 10px;
        width: 100%;
        text-align: center;
    }
    .menu-toggle {
        display: block;
    }
    .main-content {
        flex-direction: column;
        padding: 20px;
    }
    .input-section, .video-section {
        min-width: 100%;
    }
    .prompt-input {
        max-width: 100%;
    }
}