/* EXECUTIVE AI STYLING */
:root {
    /* Editor Colors */
    --editor-bg: #111827; /* Very Dark Blue/Gray */
    --editor-section-bg: #ffffff; /* White input sections */
    --editor-text: #6b7280; /* Gray for labels */
    --ai-purple: #a855f7;
    
    /* Preview Colors */
    --pdf-bg: #ffffff;
    --pdf-text: #1f2937;
    --pdf-accent: #2563eb; /* Blue for titles */
    --pdf-divider: #111827; /* Dark divider lines */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6; /* Page background */
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* =========================================
   EDITOR PANEL (LEFT)
   ========================================= */
.editor-panel {
    width: 400px;
    background-color: var(--editor-bg);
    display: flex;
    flex-direction: column;
    border-right: 1px solid #374151;
    color: white;
}

.editor-header {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid #374151;
}

.editor-header h1 {
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.highlight {
    color: #60a5fa;
}

.editor-header p {
    font-size: 0.8rem;
    color: #9ca3af;
}

.form-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.form-section {
    background-color: var(--editor-section-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4b5563; /* Gray labels */
    margin-bottom: 10px;
}

.section-header-ai {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* AI Button (Purple) */
.ai-btn {
    background-color: var(--ai-purple);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Input Fields */
input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #1f2937;
    font-size: 0.9rem;
}

input:focus, textarea:focus {
    border-color: #3b82f6;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.row-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Download Button (Dark) */
.download-btn {
    background-color: var(--editor-bg);
    border: 2px solid #374151;
    color: white;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    margin: 20px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* =========================================
   PREVIEW PANEL (RIGHT/PDF)
   ========================================= */
.preview-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    background-color: #e5e7eb;
    overflow-y: auto;
    padding: 40px;
}

/* The A4 Sheet */
#resumePreview {
    width: 210mm; /* A4 Width */
    min-height: 297mm; /* A4 Height */
    background: var(--pdf-bg);
    color: var(--pdf-text);
    padding: 50px 60px; /* Generous margins */
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* PDF Typography (Classic Executive) */
.template-executive h1 {
    font-family: 'Playfair Display', serif; /* Classic font */
    font-size: 3rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    color: var(--pdf-divider);
}

.template-executive h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--pdf-accent);
    letter-spacing: 1px;
    margin-top: -5px;
    margin-bottom: 15px;
}

.template-executive h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--pdf-divider);
    letter-spacing: 1px;
}

/* Contact Bar */
.contact-line {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
    margin-bottom: 25px;
}

/* The Thick Section Divider */
.section-divider {
    height: 2px;
    background-color: var(--pdf-divider);
    margin: 5px 0 15px 0;
}

.resume-section {
    margin-bottom: 25px;
}

.italic-text {
    font-style: italic;
    color: #4b5563;
}

/* Bullets */
.bullet-list {
    margin-left: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Dual Column Layout */
.dual-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Skills Tags */
.skill-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin: 3px;
    display: inline-block;
}

/* =========================================
   PRINT HANDLING
   ========================================= */
@media print {
    /* Hide scrollbars and UI */
    body, html { 
        background: white !important; 
        overflow: visible !important; 
        height: auto !important; 
    }
    
    ::-webkit-scrollbar { display: none !important; }

    .editor-panel { display: none !important; }

    .preview-panel { 
        padding: 0 !important; 
        margin: 0 !important; 
        background: white !important;
        overflow: visible !important;
        display: block !important;
    }

    #resumePreview { 
        box-shadow: none !important; 
        width: 100% !important; 
        padding: 30px !important; 
        border: none !important;
    }
}