:root {
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-light: #eef2ff;
    --primary-border: #c7d2fe;
    --bg-main: #f0f2f5;
    --bg-card: #ffffff;
    --bg-preview: #f1f5f9;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --border: #d1d5db;
    --border-hover: #818cf8;
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition-fast: 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.5;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Fluid Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    width: 100vw;
    transition: var(--transition-smooth);
}

.card {
    padding: 40px;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--bg-card);
    transition: var(--transition-normal);
}

.form-card {
    border-right: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}

#preview-card {
    background-color: var(--bg-preview);
}

h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.input-desc {
    font-size: 0.775rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-desc code {
    font-family: monospace;
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.725rem;
}

input[type="text"],
input[type="url"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1.5px solid var(--border);
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition-fast);
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

.badge {
    font-size: 0.675rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-required {
    background-color: #fee2e2;
    color: #ef4444;
}

.badge-optional {
    background-color: var(--bg-preview);
    color: var(--text-secondary);
}

button, 
.btn-primary, 
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    position: relative;
    top: 0;
    transition: transform 0.1s cubic-bezier(0, 0, 0.2, 1), box-shadow 0.1s cubic-bezier(0, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 0 #4338ca, 0 6px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 0 #4338ca, 0 8px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #4338ca, 0 2px 6px rgba(99, 102, 241, 0.25);
}

.btn-outline {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #334155;
    box-shadow: 0 4px 0 #94a3b8;
}

.btn-outline:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 5px 0 #94a3b8;
}

.btn-outline:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #94a3b8;
}

button:disabled,
button.disabled,
.btn-primary:disabled,
.btn-outline:disabled {
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-light);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Steps Transition - Butterly Smooth Animation */
@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    flex-grow: 1;
}

.step-content:not(.hidden) {
    animation: stepFadeIn var(--transition-smooth) forwards;
}

.dropzone {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    background-color: var(--bg-main);
    transition: all var(--transition-normal);
}

.dropzone:hover, .dropzone.dragover {
    border-color: #818cf8;
    background-color: #faf5ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.dropzone-prompt svg {
    width: 32px;
    height: 32px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 2;
    margin-bottom: 4px;
    transition: var(--transition-fast);
}

.dropzone:hover .dropzone-prompt svg {
    stroke: var(--primary);
}

.browse-link {
    color: var(--primary);
    font-weight: 600;
}

.file-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.8rem;
    animation: stepFadeIn var(--transition-normal);
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.25rem;
    cursor: pointer;
    font-weight: bold;
    padding: 0 4px;
    transition: var(--transition-fast);
}

.remove-btn:hover {
    color: #b91c1c;
    transform: scale(1.1);
}

.validation-warning {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    background-color: #fffbeb;
    color: #b45309;
    border: 1.5px solid #fde68a;
    animation: stepFadeIn var(--transition-normal);
}

.validation-warning.error-state {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1.5px solid #fca5a5;
}

.info-alert {
    background-color: var(--primary-light);
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    margin-bottom: 24px;
}

.hidden {
    display: none !important;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.preview-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1.5px solid var(--border);
    padding-bottom: 12px;
}

.preview-header-row h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.export-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mockups layout */
.mock-feature-banner {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    animation: stepFadeIn var(--transition-smooth);
}

.mock-feature-banner .preview-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mock-feature-wrapper {
    width: 100%;
    aspect-ratio: 1024 / 500;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background-color: var(--bg-main);
}

.mock-feature-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.store-mockup {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.mock-header {
    display: flex;
    gap: 16px;
    padding: 24px;
    align-items: center;
}

.mock-icon-wrapper {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    background-color: var(--bg-main);
}

.mock-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mock-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mock-title-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.mock-locale-badge {
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.mock-short-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-wrap: break-word;
    max-width: 340px;
}

.mock-video-area {
    padding: 0 24px 16px 24px;
}

.mock-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background-color: var(--primary-light);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-fast);
}

.mock-video-btn:hover {
    background-color: var(--primary);
    color: white;
}

.mock-screenshots-area {
    padding: 0 24px 24px 24px;
    border-bottom: 1.5px solid var(--border);
}

.mock-screenshots-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.mock-screenshots-scroll img {
    height: 140px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    transition: var(--transition-normal);
}

.mock-screenshots-scroll img:hover {
    transform: scale(1.02);
}

.mock-body {
    padding: 24px;
}

.mock-body h3, .mock-changelog-area h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mock-full-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.mock-full-text p {
    margin-bottom: 12px;
}

.mock-full-text ul, .mock-full-text ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

.mock-changelog-area {
    padding: 24px;
    background-color: var(--bg-main);
    border-top: 1.5px solid var(--border);
}

.mock-changelog-item {
    margin-bottom: 16px;
}

.mock-changelog-item:last-child {
    margin-bottom: 0;
}

.mock-changelog-item h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.mock-changelog-item p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.screenshots-list-container {
    margin-top: 10px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    animation: stepFadeIn var(--transition-normal);
}

.screenshots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.screenshot-item {
    position: relative;
    width: 60px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1.5px solid var(--border);
    transition: var(--transition-fast);
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-item .remove-shot {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.screenshot-item .remove-shot:hover {
    background: #ef4444;
    color: white;
}

.changelog-editor-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.added-changelogs-section {
    margin-top: 24px;
}

.added-changelog-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--bg-card);
    animation: stepFadeIn var(--transition-normal);
}

.added-changelog-info {
    font-size: 0.85rem;
}

.added-changelog-ver {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.added-changelog-txt {
    color: var(--text-secondary);
}

/* Step Progress indicator */
.step-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 30px;
    padding: 0 10px;
}

.step-progress-line {
    position: absolute;
    top: 50%;
    left: 24px;
    right: 24px;
    height: 3px;
    background-color: var(--border);
    transform: translateY(-50%);
    z-index: 1;
}

.step-progress-fill {
    height: 100%;
    background-color: var(--primary);
    transition: width var(--transition-smooth);
}

.step-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-secondary);
    z-index: 2;
    cursor: pointer;
    transition: var(--transition-normal);
}

.step-bubble.active {
    border-color: var(--primary);
    background-color: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.step-bubble.completed {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

#main-layout.verify-mode #form-card {
    display: none !important;
}

#main-layout.verify-mode #preview-card {
    max-width: 100vw;
    margin: 0;
    width: 100vw;
}

#main-layout.verify-mode .preview-header-row,
#main-layout.verify-mode .mock-feature-banner,
#main-layout.verify-mode .store-mockup {
    max-width: 50vw;
    margin-left: auto;
    margin-right: auto;
}

#btn-download {
    display: none !important;
}

#main-layout.verify-mode #btn-download {
    display: inline-flex !important;
}

.locale-tabs-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    background-color: var(--bg-main);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
}

.locale-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-grow: 1;
}

.locale-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.locale-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.locale-tab.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.locale-tab .close-tab {
    font-size: 1rem;
    line-height: 1;
    color: var(--text-light);
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition-fast);
}

.locale-tab.active .close-tab {
    color: var(--primary-light);
}

.locale-tab .close-tab:hover {
    color: #ef4444 !important;
}

.locale-select-box {
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background-color: var(--bg-card);
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.locale-select-box:focus {
    border-color: var(--primary);
}

@media (max-width: 768px) {
    body {
        height: auto !important;
        overflow-y: auto !important;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
        height: auto !important;
        overflow: visible !important;
    }
    
    .card {
        height: auto !important;
        padding: 20px !important;
        overflow: visible !important;
    }
    
    .source-code-btn {
        display: none !important;
    }

    .preview-header-row {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .export-area {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    #main-layout.verify-mode .preview-header-row,
    #main-layout.verify-mode .mock-feature-banner,
    #main-layout.verify-mode .store-mockup {
        max-width: 100%;
    }
}

/* App Header Styles */
.app-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--border);
}

.app-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-logo {
    color: var(--primary);
}

.app-header-row h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin: 0;
}

/* Full Description Layout with Tabs */
.label-row-with-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.label-row-with-tabs label {
    margin-bottom: 0;
}

.textarea-tabs {
    display: inline-flex;
    background-color: #e5e7eb;
    padding: 4px;
    border-radius: 9999px;
    border: none;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.tab-btn.active {
    background-color: #ffffff;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.textarea-relative-container {
    position: relative;
    width: 100%;
}

.textarea-preview-box {
    width: 100%;
    min-height: 284px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 14px;
    font-size: 0.9rem;
    border: 1.5px solid var(--border);
    background-color: var(--bg-main);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    line-height: 1.6;
    text-align: left;
}

.textarea-preview-box p {
    margin-bottom: 12px;
}

.textarea-preview-box ul, .textarea-preview-box ol {
    margin-bottom: 12px;
    padding-left: 20px;
}

/* Dropzone Preview Enhancement with Thumbnails */
.file-preview {
    gap: 12px;
}

.preview-thumbnail-wrapper {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    overflow: hidden;
    background-color: var(--bg-main);
}

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

.preview-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.preview-info .file-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-meta-info {
    font-size: 0.7rem;
    color: var(--text-light);
}

.source-code-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
    height: 32px !important;
    box-shadow: 0 3px 0 #94a3b8 !important;
}

.source-code-btn:hover {
    box-shadow: 0 4px 0 #94a3b8 !important;
}

.source-code-btn:active {
    box-shadow: 0 1px 0 #94a3b8 !important;
}

