@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Theme Variables */
:root {
    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Light Theme (Default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --accent-red: #ef4444;
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #fb7185 50%, #f97316 100%);
    --accent-color: #f43f5e;
    --accent-hover: #e11d48;
    --accent-light: rgba(244, 63, 94, 0.1);
    
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-blur: 12px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 9999px;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #0b0f19;
    --bg-secondary: #131c2f;
    --bg-tertiary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-hover: #475569;
    
    --accent-light: rgba(244, 63, 94, 0.15);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    --glass-bg: rgba(19, 28, 47, 0.7);
    --glass-border: rgba(51, 65, 85, 0.8);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Typography Helpers */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo i {
    color: var(--accent-color);
    background: var(--accent-gradient);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    /* Use webkit-text-fill-color none for SVG icon rendering properly */
    -webkit-text-fill-color: var(--accent-color);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-toggle-btn .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-ghost {
    background: none;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.tool-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--border-hover);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background-color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.tool-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.tool-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.tool-card-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.tool-card-link i {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.tool-card:hover .tool-card-link i {
    transform: translateX(3px);
}

/* Feature Badges Section */
.features-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
    margin-bottom: 5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.feature-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.feature-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 300px;
}

/* Main Workspace Styles (Universal for all tools) */
.workspace-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 3rem 0;
}

.workspace-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.workspace-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.workspace-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.workspace-content {
    display: flex;
    gap: 2rem;
    min-height: 500px;
    align-items: stretch;
}

.main-workspace-area {
    flex-grow: 1;
    background-color: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    transition: all var(--transition-normal);
}

.main-workspace-area.drag-over {
    border-color: var(--accent-color);
    background-color: var(--accent-light);
    transform: scale(0.99);
}

.dropzone-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.dropzone-icon {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.dropzone-container:hover .dropzone-icon {
    color: var(--accent-color);
    background-color: var(--accent-light);
    transform: translateY(-5px) scale(1.05);
}

.dropzone-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.dropzone-container p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* File Input Hidden */
.file-input {
    display: none;
}

/* Sidebar configuration panels */
.workspace-sidebar {
    width: 320px;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Options selectors */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-btn {
    width: 100%;
    text-align: left;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.option-btn:hover {
    border-color: var(--border-hover);
}

.option-btn.active {
    border-color: var(--accent-color);
    background-color: var(--accent-light);
}

.option-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Files Uploaded List View */
.files-preview-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    gap: 1.5rem;
}

.files-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.files-preview-header h3 {
    font-size: 1.2rem;
}

.files-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
    overflow-y: auto;
    max-height: 420px;
    padding: 0.5rem;
}

.file-preview-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 180px;
    cursor: grab;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.file-preview-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.file-card-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-full);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.file-card-remove:hover {
    background-color: var(--danger);
    color: white;
    border-color: var(--danger);
}

.file-card-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-top: 1rem;
}

.file-card-details {
    text-align: center;
    width: 100%;
}

.file-card-name {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.file-card-size {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.file-card-pages {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-top: 0.25rem;
}

/* Input Fields inside sidebars */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-input-help {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Success Download Page styles */
.success-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--success-light);
    color: var(--success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon-wrapper i {
    width: 40px;
    height: 40px;
}

.success-container h2 {
    font-size: 2rem;
}

.success-details {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.success-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.success-stat-val {
    font-weight: 700;
    font-size: 1.1rem;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.download-actions .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-premium);
}

.loading-spinner-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-spinner {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--accent-color);
    animation: spin 1s infinite linear;
}

.loading-progress-val {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.loading-content h3 {
    font-size: 1.3rem;
}

.loading-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    height: 20px;
}

/* Privacy Policy Styles */
.privacy-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.privacy-container h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.privacy-container h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
}

.privacy-container p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.privacy-container ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.privacy-container li {
    margin-bottom: 0.5rem;
}

.privacy-badge-box {
    background-color: var(--accent-light);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.privacy-badge-box i {
    color: var(--accent-color);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.privacy-badge-box p {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--text-primary);
}

/* Footer Styles */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: auto;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo i {
    color: var(--accent-color);
    background: var(--accent-gradient);
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    -webkit-text-fill-color: var(--accent-color);
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-col h5 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive drawer */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 98;
    display: none;
}

.nav-backdrop.active {
    display: block;
}

.nav-auth-mobile {
    display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .workspace-content {
        flex-direction: column;
    }
    
    .workspace-sidebar {
        width: 100%;
    }
    
    .main-workspace-area {
        min-height: 400px;
    }
}

@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-secondary);
        z-index: 99;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 4rem 1.5rem 1.5rem;
        gap: 1.25rem;
        box-shadow: -5px 0 25px rgba(0,0,0,0.1);
        transition: right var(--transition-normal);
        overflow-y: auto;
        margin-right: 0;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .header-actions {
        margin-right: 0;
        gap: 0.5rem;
    }
    
    .header-actions .btn {
        display: none !important;
    }
    
    .logo {
        font-size: 1.15rem;
    }
    
    .nav-auth-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-top: 2rem;
        border-top: 1px solid var(--border-color);
        padding-top: 1.25rem;
        gap: 0.5rem;
    }
    
    .nav-auth-mobile .btn {
        width: 100%;
        padding: 0.6rem 1rem;
        text-align: center;
        justify-content: center;
        display: flex;
    }
    
    .hero {
        padding: 3rem 0 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .workspace-header h1 {
        font-size: 1.75rem;
    }
    
    .workspace-header p {
        font-size: 0.95rem;
    }
    
    .main-workspace-area {
        padding: 1.5rem 1rem;
        min-height: 300px;
    }
    
    .workspace-sidebar {
        padding: 1.25rem 1rem;
    }
    
    .workspace-wrapper {
        padding: 1.5rem 0;
    }
    
    .dropzone-icon {
        width: 70px;
        height: 70px;
    }
    
    .dropzone-icon i {
        width: 32px !important;
        height: 32px !important;
    }
    
    .dropzone-container h3 {
        font-size: 1.25rem;
    }
    
    .success-container h2 {
        font-size: 1.5rem;
    }
    
    .success-details {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .success-stat-item {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.75rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
    }
    
    .success-stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .success-stat-label {
        font-size: 0.85rem;
        margin-bottom: 0;
    }
    
    .success-stat-val {
        font-size: 1rem;
    }
}

/* Auth Modal Styles */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 15, 25, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 420px;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.auth-modal-overlay.active .auth-modal-content {
    transform: translateY(0);
}

.auth-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.auth-modal-close:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.auth-modal-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.auth-row-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input {
    cursor: pointer;
}

.auth-link {
    color: var(--accent-color);
    font-weight: 600;
}

.auth-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.auth-divider span {
    background-color: var(--bg-secondary);
    padding: 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

.auth-switch-prompt {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

/* FAQ Accordion Section Styles */
.faq-section {
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    overflow: hidden;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.faq-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: color var(--transition-fast);
}

.faq-trigger span {
    text-transform: capitalize;
}

.faq-chevron {
    transition: transform var(--transition-normal);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active {
    border-color: var(--accent-color);
}

.faq-item.active .faq-trigger {
    color: var(--accent-color);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease-out;
}

.faq-item.active .faq-content {
    grid-template-rows: 1fr;
}

.faq-content-inner {
    overflow: hidden;
}

.faq-content-inner p {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* Sub-navigation Menu Redesign (Two-Row Header) */
.mobile-only, .mobile-tools-title {
    display: none !important;
}

.tools-subnav {
    background: transparent;
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: none;
}

.subnav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    max-width: fit-content;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.subnav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.subnav-link:hover, .subnav-link.active {
    color: var(--accent-color);
    background-color: var(--accent-light);
}

@media (max-width: 1024px) {
    .mobile-only {
        display: block !important;
    }
    
    .mobile-tools-title {
        display: block !important;
        font-family: var(--font-heading);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-muted);
        letter-spacing: 0.05em;
        margin-top: 1.5rem;
        padding-bottom: 0.25rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .tools-subnav {
        display: none !important;
    }
}


