/* --- GLOBAL --- */
body { overflow: hidden; } /* Editor is a fixed-viewport app — no body scroll */

:root {
    --bg-color: #F2F2F7;
    --card-bg: #FFFFFF;
    --primary: #007AFF;
    --text-main: #1C1C1E;
    --text-sub: #8E8E93;
    --border-radius: 12px;
    --danger: #FF3B30;
    --success: #34C759;
    --warning: #FFD60A;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
}

/* --- UTILS --- */
.hidden { display: none !important; }

/* Mobile Beta Hint - hidden by default on desktop */
.mobile-beta-hint {
    display: none;
    background: #FFF9E6;
    border: 1px solid #FFE58F;
    color: #856404;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.mobile-beta-hint ion-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* Editor Tips - dismissable info box */
.editor-tips {
    background: #F0F9FF;
    border: 1px solid rgba(0, 122, 255, 0.2);
    color: var(--text-main);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.84rem;
    line-height: 1.55;
    position: relative;
}

.editor-tips ul {
    margin: 0;
    padding: 0 0 0 18px;
    list-style: none;
}

.editor-tips ul li {
    position: relative;
    padding-left: 6px;
    margin-bottom: 5px;
}

.editor-tips ul li::before {
    content: "\2022";
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    left: -14px;
}

.editor-tips ul li:last-child {
    margin-bottom: 0;
}

.editor-tips a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.editor-tips a:hover {
    color: #0063cf;
}

.editor-tips-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.15rem;
    color: var(--text-sub);
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color 0.2s ease;
}

.editor-tips-close:hover {
    color: var(--text-main);
}

/* --- FREE WELCOME BANNER --- */
.free-welcome-banner {
    background: #FFFBEB;
    border: 1px solid #F5D060;
    color: var(--text-main);
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    line-height: 1.6;
    position: relative;
}

.free-welcome-banner strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: #92600A;
}

.free-welcome-banner p {
    margin: 0 0 12px;
    color: #5C4813;
}

.free-welcome-banner .upgrade-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.free-welcome-banner .upgrade-link:hover {
    background: #0063cf;
}

.free-welcome-banner .banner-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.15rem;
    color: #92600A;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
    transition: color 0.2s ease;
}

.free-welcome-banner .banner-close:hover {
    color: #5C4813;
}

/* --- BRIEFING POPUP --- */
.briefing-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.briefing-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: briefingFadeIn 0.3s ease;
}

@keyframes briefingFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.briefing-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-sub);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.briefing-modal-close:hover {
    color: var(--text-main);
}

.briefing-modal h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 8px;
    line-height: 1.3;
    padding-right: 30px;
}

.briefing-intro {
    font-size: 0.88rem;
    color: var(--text-sub);
    margin: 0 0 24px;
    line-height: 1.5;
}

.briefing-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.briefing-do, .briefing-dont {
    padding: 18px;
    border-radius: 12px;
}

.briefing-do {
    background: #F0FFF4;
    border: 1px solid #C6F6D5;
}

.briefing-dont {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
}

.briefing-do h3, .briefing-dont h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}

.briefing-do h3 {
    color: #22543D;
}

.briefing-dont h3 {
    color: #9B2C2C;
}

.briefing-do ul, .briefing-dont ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.briefing-do ul li, .briefing-dont ul li {
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 10px;
    padding-left: 16px;
    position: relative;
    color: var(--text-main);
}

.briefing-do ul li:last-child, .briefing-dont ul li:last-child {
    margin-bottom: 0;
}

.briefing-do ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #38A169;
    font-weight: 700;
    font-size: 0.85rem;
}

.briefing-dont ul li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #E53E3E;
    font-weight: 700;
    font-size: 0.85rem;
}

.briefing-motivation {
    background: #EBF8FF;
    border: 1px solid #BEE3F8;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.briefing-motivation ion-icon {
    font-size: 1.4rem;
    color: var(--primary);
    margin-top: 2px;
    min-width: 22px;
}

.briefing-motivation p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-main);
}

.briefing-modal-btn {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.briefing-modal-btn:hover {
    background: #0063cf;
}

@media (max-width: 640px) {
    .briefing-modal {
        padding: 24px 18px 20px;
        max-height: 95vh;
    }

    .briefing-modal h2 {
        font-size: 1.1rem;
    }

    .briefing-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .briefing-motivation {
        flex-direction: column;
        gap: 8px;
    }
}

/* --- HEADER --- */
.app-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.5px; color: #000; display: flex; align-items: center; gap: 8px; }
.badge-beta {
    background-color: #FFD60A;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.header-right { display: flex; align-items: center; gap: 15px; }

/* Status Indicator */
.connection-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 600;
    background: #eee; padding: 4px 10px; border-radius: 15px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #ccc; }
.connection-status.online .status-dot { background: var(--success); box-shadow: 0 0 5px var(--success); }
.connection-status.offline .status-dot { background: var(--danger); }
.connection-status.online { color: var(--success); background: rgba(52, 199, 89, 0.1); }
.connection-status.offline { color: var(--danger); background: rgba(255, 59, 48, 0.1); }

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Header Action Buttons (Undo/Redo) */
.header-action-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.header-action-btn:hover {
    background: #F0F0F0;
    border-color: var(--primary);
    color: var(--primary);
}

.header-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.header-action-btn:disabled:hover {
    background: transparent;
    border-color: #ddd;
    color: var(--text-main);
}

/* Auth Buttons */
.support-btn,
.profile-btn,
.logout-btn {
    text-decoration: none;
    background: transparent;
    color: var(--text-main);
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.support-btn:hover,
.profile-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.05);
}

.logout-btn:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: scale(1.05);
}

/* --- MAIN LAYOUT --- */
.main-container {
    display: flex;
    gap: 0;
    padding: 0px;
    height: calc(100vh - 60px);
    overflow: hidden;
    position: relative;
}

.form-column {
    overflow-y: auto;
    overflow-x: visible; /* Allow horizontal overflow if needed */
    padding-right: 10px;
    padding-top: 20px; /* Space to prevent hiding behind sticky header */
    min-width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start from top, not center */
    align-items: stretch;
    scroll-behavior: smooth; /* Smooth scrolling */
}

.form-column #cvForm {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.preview-column {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 400px;
    flex: 1;
}

/* --- RESIZER --- */
.column-resizer {
    width: 4px;
    background: #E5E5EA;
    cursor: col-resize;
    user-select: none;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.column-resizer:hover {
    background: var(--primary);
}

.column-resizer:active {
    background: var(--primary);
}

.column-resizer::before {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 0;
    bottom: 0;
    cursor: col-resize;
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
        padding: 15px;
        padding-bottom: 80px; /* Extra space at bottom for mobile/ipad */
    }
    
    .mobile-beta-hint {
        display: flex;
    }
    
    .column-resizer {
        display: none;
    }

    .form-column {
        width: 100% !important;
        min-width: 100%;
        overflow-y: visible;
        max-height: none;
        padding-top: 5px;
    }
    
    .preview-column {
        width: 100%;
        margin-top: 30px;
        min-width: 100%;
    }
    
    /* Ensure action buttons are accessible */
    .preview-actions {
        padding: 20px 0;
    }
    
    /* Ensure accordions are visible on mobile */
    .accordion-section {
        display: block !important;
        visibility: visible !important;
    }
    
    .accordion-content {
        display: block !important;
    }
}

/* --- ACCORDION --- */
.accordion-section {
    margin-bottom: 15px;
    border: 1px solid #E5E5EA;
    border-radius: var(--border-radius);
    -webkit-border-radius: var(--border-radius); /* Safari compatibility */
    overflow: visible; /* Allow content to expand fully without clipping */
    background: var(--card-bg);
}

.accordion-header {
    padding: 18px 20px;
    background: #F9F9F9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    user-select: none;
    border-radius: var(--border-radius); /* Full radius when closed */
    -webkit-border-radius: var(--border-radius); /* Safari compatibility */
    overflow: hidden; /* Clip header content to rounded corners */
}

/* When accordion is active, header only has top radius */
.accordion-section.active > .accordion-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    -webkit-border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.accordion-header:hover {
    background: #F0F0F0;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--text-sub);
}

.accordion-section.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
    padding: 0 20px;
    will-change: max-height;
}

.accordion-content.active {
    max-height: 3000px; /* Large enough for any section; enables CSS transition */
    padding: 20px;
    overflow: visible; /* Allow content to be fully visible */
    border-radius: 0 0 var(--border-radius) var(--border-radius); /* Round bottom corners when active */
    -webkit-border-radius: 0 0 var(--border-radius) var(--border-radius); /* Safari compatibility */
}

/* When accordion is closed, content should not show bottom radius */
.accordion-content:not(.active) {
    border-radius: 0;
}

/* --- PREVIEW COLUMN --- */
.preview-controls {
    padding: 15px;
    background: #F9F9F9;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.preview-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: #F5F5F7;
    border-radius: var(--border-radius);
    padding: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.preview-actions {
    display: flex;
    gap: 8px;
    padding: 8px 0 4px;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.preview-actions .primary-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    font-size: 0.95rem;
}

/* --- WATERMARK --- */
.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    transform: rotate(-45deg);
    z-index: 1;
    user-select: none;
    /* Performance optimizations */
    will-change: auto;
    contain: layout style paint;
    transform-origin: center center;
    /* Use GPU acceleration efficiently */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- INPUTS --- */
.container { max-width: 700px; margin: 0 auto; padding: 30px 20px; padding-bottom: 60px; }

.card {
    background: var(--card-bg); border-radius: var(--border-radius);
    padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px;
}

label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-sub); }

input[type="text"], input[type="email"], input[type="tel"], input[type="month"], textarea, select {
    width: 100%; box-sizing: border-box; border: 1px solid #E5E5EA;
    background: #F9F9F9; border-radius: 10px; padding: 14px;
    font-size: 1rem; font-family: inherit; transition: all 0.2s ease;
}

/* Dynamic textarea for coreStrengths */
#coreStrengths {
    resize: none; /* Disable manual resize, we handle it dynamically */
    min-height: 100px;
    transition: height 0.2s ease;
    overflow-y: auto;
}
input:focus, textarea:focus, select:focus {
    outline: none; background: #FFF; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,122,255,0.1);
}

.input-row { display: flex; gap: 15px; }
.input-row .input-group { flex: 1; }

/* Date Row */
.date-row { display: flex; align-items: center; gap: 10px; }
.date-row input { flex: 1; }

/* Date Picker */
.date-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.date-picker-input {
    flex: 1;
    cursor: pointer;
}

.date-picker-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.date-picker-btn:hover {
    background: #0056b3;
}

.date-picker-popup {
    position: fixed;
    background: white;
    border: 1px solid #E5E5EA;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 1000;
    min-width: 280px;
    max-width: 320px;
}

.date-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E5E5EA;
}

.date-picker-nav {
    background: transparent;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.date-picker-nav:hover {
    background: #F0F0F0;
}

.date-picker-year-month {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.date-picker-month-name {
    /* Month name styling */
}

.date-picker-year-name {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
}

.date-picker-year-name:hover {
    background: #F0F0F0;
    color: var(--primary);
}

.date-picker-step-indicator {
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 600;
    background: #F9F9F9;
    border-bottom: 1px solid #E5E5EA;
}

.date-picker-month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.date-picker-month-btn {
    background: #F9F9F9;
    border: 1px solid #E5E5EA;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-align: center;
}

.date-picker-month-btn:hover {
    background: #F0F0F0;
    border-color: var(--primary);
}

.date-picker-month-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}

.date-picker-footer {
    display: flex;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #E5E5EA;
}

.date-picker-apply-btn,
.date-picker-heute-btn,
.date-picker-close-btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.date-picker-apply-btn {
    background: var(--success, #28a745);
    color: white;
}

.date-picker-apply-btn:hover {
    background: #218838;
}

.date-picker-heute-btn {
    background: var(--primary);
    color: white;
}

.date-picker-heute-btn:hover {
    background: #0056b3;
}

.date-picker-close-btn {
    background: #F0F0F0;
    color: var(--text-main);
}

.date-picker-close-btn:hover {
    background: #E0E0E0;
}

/* Year Selector */
.date-picker-year-selector {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: var(--border-radius);
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}

.date-picker-year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #E5E5EA;
    font-weight: 600;
    font-size: 0.9rem;
}

.date-picker-year-nav {
    background: transparent;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text-main);
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.date-picker-year-nav:hover {
    background: #F0F0F0;
}

.date-picker-year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    max-height: 300px;
}

.date-picker-year-btn {
    background: #F9F9F9;
    border: 1px solid #E5E5EA;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-align: center;
}

.date-picker-year-btn:hover {
    background: #F0F0F0;
    border-color: var(--primary);
}

.date-picker-year-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}

/* Tiny Tasks */
.tiny-task-container { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.tiny-task-row { display: flex; align-items: center; gap: 10px; width: 100%; }
.tiny-task-row input { flex: 1; width: 100%; }
.remove-task { color: var(--text-sub); cursor: pointer; font-size: 1.2rem; min-width: 24px; }
.add-task-link { color: var(--primary); font-size: 0.9rem; font-weight: 600; cursor: pointer; margin-top: 10px; display: inline-block; }

/* Buttons */
.step-nav { display: flex; justify-content: space-between; margin-top: 30px; gap: 15px; }
.primary-btn, .secondary-btn {
    padding: 18px; border-radius: var(--border-radius); font-size: 1.1rem;
    font-weight: 600; cursor: pointer; text-align: center; width: 100%; transition: 0.2s;
    display: flex; justify-content: center; align-items: center; gap: 8px;
}
.primary-btn { background: var(--primary); color: white; border: none; }
.primary-btn:hover { background: #0063cf; }

.primary-btn.btn-pending {
    opacity: 0.6;
    cursor: help !important;
}

.primary-btn.btn-pending:hover {
    opacity: 0.85;
}

.secondary-btn { background: transparent; border: 2px dashed #D1D1D6; color: var(--primary); }
.secondary-btn:hover { border-color: var(--primary); background: rgba(0,122,255,0.05); }

/* Yellow Btn */
.primary-btn.yellow-outline { background: transparent; border: 2px solid var(--warning); color: #b58900; cursor: not-allowed; opacity: 0.7; }
.primary-btn.yellow-filled { background: var(--warning); border: 2px solid var(--warning); color: black; cursor: pointer; opacity: 1; }
.primary-btn.yellow-filled:hover { background: #FFCA00; }

/* Green Btn (Job Matching) */
.primary-btn.green-filled { background: #2E7D32; border: 2px solid #2E7D32; color: white; cursor: pointer; opacity: 1; }
.primary-btn.green-filled:hover { background: #388E3C; border-color: #388E3C; }
.primary-btn.green-filled.btn-pending { opacity: 0.45; cursor: help !important; }
.primary-btn.green-filled.btn-pending:hover { opacity: 0.6; }
.primary-btn.yellow-filled.btn-pending { opacity: 0.45; cursor: help !important; }
.primary-btn.yellow-filled.btn-pending:hover { opacity: 0.6; }

/* Wizard */
.wizard-progress { display: flex; justify-content: space-between; margin-bottom: 30px; position: relative; }
.wizard-progress::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: #E5E5EA; z-index: 0; transform: translateY(-50%); }
.step-dot { width: 30px; height: 30px; background: #E5E5EA; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; color: #8E8E93; position: relative; z-index: 1; transition: all 0.3s ease; }
.step-dot.active { background: var(--primary); color: white; box-shadow: 0 0 0 4px rgba(0,122,255,0.2); }
.step-dot.completed { background: var(--success); color: white; }
.wizard-step { display: none; animation: fadeIn 0.4s ease; }
.wizard-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Footer Log Link */
.footer-log { text-align: center; margin-top: 40px; }
.footer-log a { color: #ccc; font-size: 0.75rem; text-decoration: none; }
.footer-log a:hover { color: var(--primary); }

/* --- PRINT STYLES (for Ctrl+P fallback) --- */
@media print {
    .app-header, .form-column, .column-resizer,
    .preview-actions, .mobile-beta-hint, .footer,
    .watermark-overlay, .footer-log { display: none !important; }

    .main-container {
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    .preview-column {
        width: 100% !important;
        flex: none !important;
    }
    .preview-container {
        padding: 0 !important;
        overflow: visible !important;
    }
    #cv-preview {
        transform: none !important;
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    #preview-wrapper {
        height: auto !important;
        padding: 0 !important;
    }
}
