:root {
    --primary: #ff9f43;
    --primary-light: #ffd5a4;
    --primary-dark: #e67e22;
    --background: #fff5eb;
    --text: #2d3436;
    --text-light: #636e72;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    padding: 2rem 0;
    text-align: center;
    background: white;
    border-bottom: 1px solid var(--primary-light);
}

h1 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-dark);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--text-light);
    font-size: 1.1rem;
}

main {
    padding: 2rem 0;
}

section {
    margin-bottom: 2rem;
}

/* Navigation dropdown menu styles */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a,
.nav-menu .dropdown-toggle {
    color: var(--text);
    text-decoration: none;
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .dropdown-toggle:hover {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.nav-menu .dropdown-toggle.active {
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.nav-menu .dropdown-toggle.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-light);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #fff9f2;
}

/* Mobile dropdown adjustments */
@media (max-width: 600px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: auto;
        margin-top: 0.5rem;
        padding-left: 1rem;
    }
    
    .dropdown-menu a {
        padding: 5px 0;
    }
    
    .dropdown-toggle::after {
        content: '';
    }
}

.upload-container {
    background: white;
    border: 2px dashed var(--primary-light);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.upload-container:hover {
    border-color: var(--primary);
    background: #fff9f2;
}

.upload-container.dragover {
    border-color: var(--primary-dark);
    background: #fff9f2;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.upload-icon {
    width: 64px;
    height: 64px;
    opacity: 0.6;
}

.browse-text {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.preview-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.preview-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--primary-light);
}

.preview-box h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    width: 100%;
    font-size: 1.4rem;
    font-weight: 500;
}

.preview-box img {
    max-width: 100%;
    min-height: 200px;
    max-height: 400px;
    border-radius: 8px;
    object-fit: contain;
    margin: auto;
    border: 1px solid var(--primary-light);
    background: #fff9f2;
}

.preview-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 2rem;
    background: #fff9f2;
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    margin: 1rem 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.download-hint {
    margin: 1.5rem 0 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.download-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    font-size: clamp(0.85rem, 2.5vw, 0.92rem);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.8rem auto 0.4rem auto;
    display: none;
    width: auto;
    max-width: 120px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.download-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.options-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid var(--primary-light);
}

.options-toggle {
    width: 100%;
    padding: 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    border-bottom: 1px solid var(--primary-light);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.options-toggle:hover {
    background: #fff9f2;
}

.options-content {
    padding: 1.5rem;
    display: none;
}

.options-content.show {
    display: block;
}

.option-group {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    min-width: 120px;
    color: var(--text);
    font-weight: 500;
}

.option-group input {
    padding: 0.5rem;
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    flex: 1;
    font-family: 'Poppins', sans-serif;
}

.option-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

footer {
    text-align: center;
    padding: 2rem 0;
    background: white;
    border-top: 1px solid var(--primary-light);
    color: var(--text-light);
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: inherit;
    font-weight: 500;
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Small screen adjustments for footer */
@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0;
    }
}

.info-section {
    margin: 2rem auto;
    max-width: 900px;
    padding: clamp(1rem, 4vw, 2rem);
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--primary-light);
}

.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.info-block {
    display: flex;
    flex-direction: column;
}

.info-section h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 600;
}

.info-section h3 {
    color: var(--primary);
    margin: 0 0 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 500;
}

.info-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text);
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.info-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.info-section li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.info-section strong {
    color: var(--primary-dark);
}

/* Small screen adjustments for info section */
@media (max-width: 480px) {
    .info-section {
        margin: 1rem auto;
        padding: 1rem;
    }
    
    .info-content {
        gap: 1.5rem;
    }
    
    .info-section ol {
        padding-left: 1.2rem;
    }
    
    .info-section li {
        margin-bottom: 0.6rem;
    }
} 