/* ============================================
   E-POSTA İMZA OLUŞTURUCU - STYLES
   Modern Design with Light/Dark Theme Support
   ============================================ */

/* CSS Variables - Dark Theme (Default) */
:root,
[data-theme="dark"] {
    --bg-primary: #0f0f12;
    --bg-secondary: #1a1a1f;
    --bg-tertiary: #242429;
    --bg-card: #1e1e24;
    --bg-input: #16161a;
    
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    
    --accent-primary: #f59e0b;
    --accent-secondary: #fbbf24;
    --accent-glow: rgba(245, 158, 11, 0.15);
    
    --border-color: #2d2d32;
    --border-focus: #f59e0b;
    
    --success: #10b981;
    --error: #ef4444;
    --info: #3b82f6;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.2);
    
    --modal-bg: rgba(0, 0, 0, 0.8);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --accent-primary: #f59e0b;
    --accent-secondary: #d97706;
    --accent-glow: rgba(245, 158, 11, 0.1);
    
    --border-color: #e2e8f0;
    --border-focus: #f59e0b;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.15);
    
    --modal-bg: rgba(0, 0, 0, 0.5);
}

/* Shared Variables */
:root {
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Animated Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(59, 130, 246, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 10% 60%, rgba(139, 92, 246, 0.06), transparent);
    transition: background var(--transition-slow);
}

[data-theme="light"] .bg-pattern {
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245, 158, 11, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 90% 80%, rgba(59, 130, 246, 0.05), transparent),
        radial-gradient(ellipse 50% 30% at 10% 60%, rgba(139, 92, 246, 0.04), transparent);
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.15;
}

/* Container */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    padding: 20px 0 16px;
    text-align: center;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 4px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo h1 span {
    color: var(--accent-primary);
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.05);
}

.theme-icon-dark,
.theme-icon-light {
    position: absolute;
    transition: all var(--transition-normal);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="light"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="light"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding: 16px 0 40px;
}

.app-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 24px;
    align-items: start;
}

/* ============================================
   SETTINGS PANEL
   ============================================ */
.settings-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.panel-header {
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tabs */
.tabs {
    display: flex;
    background: var(--bg-secondary);
    padding: 6px;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    flex: 1;
    padding: 8px 6px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

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

.tab.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.tab-icon {
    font-size: 0.9rem;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 16px 20px;
    overflow-y: auto;
    max-height: 50vh;
}

.tab-content.active {
    display: block;
}

/* Section Styles */
.section-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.section-subtitle:first-child {
    margin-top: 0;
}

.form-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Form Elements */
.form-group {
    margin-bottom: 12px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label .required {
    color: var(--accent-primary);
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Color Input */
.color-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-input-wrapper input[type="color"] {
    width: 48px;
    height: 44px;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    cursor: pointer;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
    border-radius: var(--radius-sm);
    border: none;
}

.color-input-wrapper input[type="text"] {
    flex: 1;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Color Palettes */
.color-palettes {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.palette-btn {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 5px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.palette-btn:hover {
    border-color: var(--text-muted);
    transform: scale(1.05);
}

.palette-btn.active {
    border-color: var(--accent-primary);
}

.palette-btn span {
    display: block;
    height: 12px;
    border-radius: 3px;
}

/* Template Grid */
.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.template-btn {
    padding: 10px 6px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.template-btn span {
    font-size: 1.2rem;
}

.template-btn small {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

.template-btn:hover {
    border-color: var(--text-muted);
    background: var(--bg-tertiary);
}

.template-btn.active {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.template-btn.active small {
    color: var(--accent-primary);
}

/* Align Buttons */
.align-buttons {
    display: flex;
    gap: 8px;
}

.align-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.align-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

/* Icon Style Buttons */
.icon-style-buttons {
    display: flex;
    gap: 10px;
}

.icon-style-btn {
    flex: 1;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.icon-style-btn:hover {
    background: var(--bg-tertiary);
}

.icon-style-btn.active {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

/* QR Type Buttons */
.qr-type-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.qr-type-btn {
    padding: 8px 4px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all var(--transition-fast);
}

.qr-type-btn span {
    font-size: 1rem;
}

.qr-type-btn small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.qr-type-btn:hover {
    border-color: var(--text-muted);
}

.qr-type-btn.active {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

/* QR Preview Box */
.qr-preview-box {
    background: white;
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    margin-top: 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.qr-preview-box canvas {
    max-width: 100px;
    height: auto;
}

.qr-preview-box .qr-info {
    margin-top: 6px;
    font-size: 0.75rem;
    color: #666;
}

/* CTA Type Buttons */
.cta-type-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.cta-type-btn {
    padding: 8px 4px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all var(--transition-fast);
}

.cta-type-btn span {
    font-size: 1rem;
}

.cta-type-btn small {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.cta-type-btn:hover {
    border-color: var(--text-muted);
}

.cta-type-btn.active {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

/* CTA Suggestions */
.cta-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cta-suggestion-btn {
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cta-suggestion-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Disclaimer Suggestions */
.disclaimer-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.disclaimer-btn {
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.disclaimer-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

/* Checkbox */
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
}

.social-icon.linkedin { background: #0077b5; color: white; }
.social-icon.twitter { background: #1a1a1a; color: white; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.social-icon.facebook { background: #1877f2; color: white; }
.social-icon.youtube { background: #ff0000; color: white; }
.social-icon.tiktok { background: #000000; color: white; }
.social-icon.github { background: #333; color: white; }
.social-icon.whatsapp { background: #25d366; color: white; }
.social-icon.telegram { background: #0088cc; color: white; }
.social-icon.discord { background: #5865f2; color: white; }
.social-icon.dribbble { background: #ea4c89; color: white; }
.social-icon.behance { background: #1769ff; color: white; }
.social-icon.medium { background: #000000; color: white; }

/* Action Buttons */
.action-buttons {
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.btn {
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    grid-column: span 2;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    grid-column: span 2;
}

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

.btn-info {
    background: var(--info);
    color: white;
    grid-column: span 2;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    grid-column: span 2;
}

.btn-ghost:hover {
    color: var(--error);
}

/* ============================================
   PREVIEW PANEL
   ============================================ */
.preview-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: sticky;
    top: 24px;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.preview-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-controls {
    display: flex;
    gap: 4px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: var(--radius-md);
}

.preview-mode-btn {
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.preview-mode-btn:hover {
    color: var(--text-secondary);
}

.preview-mode-btn.active {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.preview-container {
    padding: 20px;
    background: var(--bg-secondary);
    min-height: 300px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: all var(--transition-normal);
}

.preview-container.mobile {
    padding: 32px 60px;
}

.preview-wrapper {
    width: 100%;
    max-width: 700px;
    transition: all var(--transition-normal);
}

.preview-container.mobile .preview-wrapper {
    max-width: 380px;
}

.email-preview {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-lg);
    min-height: 150px;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    color: #666;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.preview-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.preview-placeholder small {
    color: #999;
}

/* Compatibility Info */
.compatibility-info {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.compatibility-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.client-badge {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-normal);
}

.modal-overlay.show .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 20px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* Guide Tabs */
.guide-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.guide-tab {
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

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

.guide-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
}

.guide-content {
    display: none;
}

.guide-content.active {
    display: block;
}

.guide-content h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--accent-primary);
}

.guide-steps {
    list-style: none;
    counter-reset: step;
}

.guide-steps li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.guide-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-steps code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.guide-tip {
    background: var(--accent-glow);
    border-left: 3px solid var(--accent-primary);
    padding: 10px 14px;
    margin-top: 10px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
}

.guide-warning {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--error);
    padding: 12px 16px;
    margin-top: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9rem;
    color: var(--error);
}

/* ============================================
   INSTRUCTIONS SECTION
   ============================================ */
.instructions {
    padding: 64px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.instructions h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 40px;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.instruction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.instruction-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.instruction-number {
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.instruction-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.instruction-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 64px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 18px 24px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.faq-item summary:hover {
    background: var(--bg-tertiary);
}

.faq-item summary::marker {
    content: '';
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-note {
    margin-top: 8px;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--bg-card);
    border: 1px solid var(--success);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    border-color: var(--error);
}

.toast-icon {
    font-size: 1.25rem;
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--error);
}

.toast-message {
    font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .app-grid {
        grid-template-columns: 400px 1fr;
        gap: 24px;
    }
    
    .color-palettes {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-panel {
        position: static;
        max-height: none;
    }
    
    .instruction-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-toggle {
        position: static;
        transform: none;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 24px 0 16px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.95rem;
    }
    
    .main-content {
        padding: 16px 0 32px;
    }
    
    .panel-header {
        padding: 16px 20px;
    }
    
    .tabs {
        padding: 6px;
        flex-wrap: wrap;
    }
    
    .tab {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .color-palettes {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .qr-type-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .action-buttons {
        padding: 16px 20px;
    }
    
    .preview-container {
        padding: 20px;
    }
    
    .email-preview {
        padding: 16px;
    }
    
    .instruction-grid {
        grid-template-columns: 1fr;
    }
    
    .instructions,
    .faq-section {
        padding: 48px 0;
    }
    
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    
    .modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .guide-tabs {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-info,
    .btn-ghost {
        grid-column: span 1;
    }
    
    .align-buttons {
        flex-wrap: wrap;
    }
    
    .icon-style-buttons {
        flex-wrap: wrap;
    }
    
    .color-palettes {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .settings-panel,
    .header,
    .instructions,
    .faq-section,
    .footer,
    .compatibility-info,
    .preview-controls,
    .panel-header,
    .modal-overlay {
        display: none !important;
    }
    
    .preview-panel {
        border: none;
        background: transparent;
    }
    
    .preview-container {
        padding: 0;
        background: transparent;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-panel,
.preview-panel {
    animation: fadeIn 0.5s ease forwards;
}

.preview-panel {
    animation-delay: 0.1s;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
