:root {
    --red-button-color: #d93025;
    --dark-grey-button-color: #5f6368;
    --border-color: #e0e0e0;
    --text-color-light: #5f6368;
    --text-color-dark: #202124;
    --box-blue: #e8f0fe;
    --box-border-blue: #d2e3fc;
    --main-blue: #4A80F5;
}

body, html {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background: linear-gradient(180deg, #f0f4ff 0%, #fdeff5 100%);
    color: var(--text-color-light);
    font-size: 16px;
    line-height: 1.7;
}

body.no-scroll { overflow: hidden; }
#page-container { display: flex; flex-direction: column; align-items: center; min-height: 100vh; width: 100%; }
.hidden { display: none !important; }

/* Main Navigation Bar */
.main-nav {
    background-color: white;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}
.nav-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-svg { 
    height: 40px; 
    width: auto;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}
.desktop-nav-links {
    display: none;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}
.language-btn {
    background-color: transparent;
    border: 1px solid var(--main-blue);
    color: var(--text-color-dark);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.95em;
    font-weight: 500;
}
.language-dropdown {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    right: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}
.language-dropdown a {
    color: black;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    font-size: 0.95em;
}
.language-dropdown a:hover {
    background-color: #f1f1f1;
}
.language-switcher:hover .language-dropdown {
    display: block;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger-btn span {
    width: 100%;
    height: 3px;
    background: var(--text-color-dark);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 5000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}
.mobile-menu-overlay.is-active { transform: translateX(0); }
.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
}
.close-menu-btn {
    font-size: 40px;
    font-weight: 300;
    color: var(--text-color-light);
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
}
.mobile-menu-links a {
    text-decoration: none;
    color: var(--text-color-dark);
    font-size: 18px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-menu-links a:last-child { border-bottom: none; }

/* Header & Upload Box Styles */
#initial-view, .content-section, .content-wrapper {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.main-header { padding: 40px 0 20px 0; }
.main-header h1 {
    font-size: 2.8em;
    color: var(--text-color-dark);
    font-weight: 700;
    margin: 0 0 15px 0;
}
.main-header p {
    font-size: 1.2em;
    color: var(--text-color-light);
    margin: 0 auto;
    max-width: 600px;
}
.content-wrapper h1, .content-wrapper h2 {
    color: var(--text-color-dark);
}
.content-wrapper a {
    color: var(--red-button-color);
}


/* Content Sections */
.content-section { margin: 40px auto; }
.content-section h2 { font-size: 2.2em; color: var(--text-color-dark); margin-bottom: 40px; }
.step-item { margin-bottom: 30px; }
.step-item h3 { font-size: 1.5em; margin-bottom: 5px; color: var(--text-color-dark); }
.step-item p { font-size: 1.1em; max-width: 500px; margin: 0 auto; }
.step-box, .ad-placeholder {
    background-color: #fff;
    border: 2px dashed var(--box-border-blue);
    border-radius: 12px;
    padding: 40px;
    margin: 20px auto;
    max-width: 600px;
    color: var(--text-color-light);
    font-size: 1.1em;
}
.features-section h3 { font-size: 1.5em; color: var(--text-color-dark); }
.features-section p { font-size: 1.1em; max-width: 600px; margin: 10px auto; }

/* FAQ Section Styling */
.faq-section { text-align: left; }
.faq-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-item h3 {
    font-size: 1.2em;
    color: var(--text-color-dark);
    margin-top: 0;
    margin-bottom: 10px;
}
.faq-item p {
    font-size: 1em;
    margin-bottom: 0;
    color: var(--text-color-light);
}

/* Redesigned Upload Area */
.upload-container-wrapper {
    padding: 20px;
    margin-top: 20px;
}
.upload-container {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    transition: background-color 0.2s;
    max-width: 700px;
    margin: auto;
}
.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.upload-icon svg { color: var(--main-blue); }

.select-button-container {
    position: relative;
    display: inline-block;
}
.select-button {
    background-color: var(--main-blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    transition: background-color 0.2s;
    gap: 10px;
    border-radius: 8px;
    width: 250px;
    font-size: 1.1em;
    font-weight: 500;
    color: white;
}
.select-button:hover { background-color: #3a70e8; }
.select-button svg {
    width: 24px;
    height: 24px;
}
.dropdown-arrow-main {
    transition: transform 0.3s;
}
.select-button.open .dropdown-arrow-main {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 250px;
    z-index: 10;
    overflow: hidden;
    border: 1px solid #eee;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-align: left;
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 1em;
}
.dropdown-item:last-child {
    border-bottom: none;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
}
.dropdown-icon {
    width: 24px;
    height: 24px;
}
.upload-note { color: var(--text-color-light); }

/* Workspace & Overlays */
#workspace { width: 100%; max-width: 1200px; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 30px; min-height: 50vh; }
.file-list-container { flex-grow: 1; width: 100%;}
.file-list { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.file-item { position: relative; width: 150px; border: 1px solid var(--border-color); border-radius: 8px; background-color: white; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.file-item img { width: 100%; height: 130px; object-fit: cover; }
.file-item p { margin: 0; padding: 10px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; color: var(--text-color-dark); }
.remove-btn { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border: none; border-radius: 50%; background-color: rgba(0,0,0,0.6); color: white; font-size: 16px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; transition: background-color 0.2s; }
.remove-btn:hover { background-color: rgba(217, 48, 37, 0.8); }

.options-sidebar { width: 100%; max-width: 300px; background-color: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.options-box h2 { font-size: 1.2em; color: var(--text-color-dark); margin-top: 0; margin-bottom: 20px; }
.option-group { margin-bottom: 20px; }
.option-group label { display: block; font-weight: 500; margin-bottom: 10px; }
.radio-buttons { display: flex; gap: 10px; }
.radio-label { flex: 1; padding: 10px; border: 1px solid var(--border-color); border-radius: 5px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.radio-label.active { border-color: var(--red-button-color); background-color: #fdeaea; }
.radio-label input { display: none; }
.radio-label svg { margin-bottom: 5px; }
#page-size { width: 100%; padding: 10px; border-radius: 5px; border: 1px solid var(--border-color); }
.checkbox-label { display: flex; align-items: center; gap: 10px; }
.convert-btn { background-color: var(--red-button-color); color: white; border: none; border-radius: 8px; padding: 15px 40px; font-size: 1.2em; font-weight: bold; cursor: pointer; transition: background-color 0.2s; width: 100%; }
.convert-btn:hover { background-color: #c5221f; }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(248, 249, 250, 0.95); display: flex; justify-content: center; align-items: flex-start; z-index: 2000; padding: 20px; box-sizing: border-box; }
.progress-box { text-align: center; margin-top: 20vh; }
.rotation-animation { width: 60px; height: 60px; border: 5px solid #f3f3f3; border-top: 5px solid var(--red-button-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.progress-box p { font-size: 1.5em; color: var(--text-color-dark); font-weight: 500; }
.download-box { text-align: center; width: 100%; max-width: 450px; background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); margin-top: 5vh; }
.download-title { font-size: 1.8em; margin-bottom: 25px; color: var(--text-color-dark); font-weight: 600; }
.download-button { text-decoration: none; background-color: var(--red-button-color); color: white; border: none; border-radius: 8px; padding: 18px 30px; font-size: 1.3em; font-weight: bold; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; transition: background-color 0.2s; }
.download-button:hover { background-color: #c5221f; }
.download-button img { width: 24px; height: 24px; }
.download-actions { display: flex; justify-content: center; align-items: center; margin-top: 25px; gap: 15px; }
.action-btn { background-color: transparent; border: none; cursor: pointer; padding: 0; }
.action-btn img { width: 50px; height: 50px; border-radius: 50%; transition: transform 0.2s; }
.action-btn:hover img { transform: scale(1.05); }


/* Social Share Section */
.social-share-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    margin-top: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.social-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
    border: none;
    cursor: pointer;
    background-color: transparent;
    padding: 0;
}
.social-icon:hover {
    transform: scale(1.1);
}
.social-icon img {
    width: 100%;
    height: 100%;
}


/* Footer */
footer {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    margin-top: auto;
}
.footer-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.footer-container a {
    text-decoration: none;
    color: var(--text-color-light);
}
.copyright-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}