:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --light-text: #ecf0f1;
    --bg-color: #0f172a;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(-45deg, #1e293b, #334155, #1e1b4b, #172554);
    background-size: 400% 400%;
    animation: landingGradientBG 15s ease infinite;
    color: var(--text-color);
    line-height: 1.5;
    padding: 0;
}

.cv-container {
    width: 794px; /* A4 width at 96 DPI */
    min-height: 1123px; /* A4 height at 96 DPI */
    margin: 30px auto;
    background-color: var(--white);
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
    position: relative;
    --font-scale: 1; /* Variable for font scaling */
}

/* Left Column */
.left-column {
    width: 35%;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 30px 25px;
}

.profile-section {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 5px solid var(--accent-color);
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.name-left {
    font-size: calc(20px * var(--font-scale) * var(--name-font-scale, 1));
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: var(--white);
}

.title-left {
    font-size: calc(12px * var(--font-scale) * var(--title-font-scale, 1));
    color: var(--white);
    opacity: 0.9;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.left-column .section {
    margin-bottom: 25px;
}

.left-column h2 {
    font-size: calc(16px * var(--font-scale) * var(--local-font-scale, 1));
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--white);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

.right-column h2:not(.section-title) {
    font-size: calc(16px * var(--font-scale) * var(--local-font-scale, 1));
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 5px;
}

.left-column ul {
    list-style-type: none;
}

.contact-info li {
    margin-bottom: 8px;
    font-size: calc(12px * var(--font-scale) * var(--local-font-scale, 1));
    display: flex;
    align-items: center;
}

.contact-info i {
    width: calc(25px * var(--font-scale) * var(--local-font-scale, 1));
    color: var(--white);
    opacity: 0.8;
}

.personal-info li {
    margin-bottom: 8px;
    font-size: calc(12px * var(--font-scale) * var(--local-font-scale, 1));
    display: flex;
    justify-content: space-between;
}

.personal-info strong {
    color: var(--white);
    font-weight: 600;
}
.right-column .personal-info strong {
    color: var(--primary-color);
}

.skills-list li {
    margin-bottom: 6px;
    font-size: calc(12px * var(--font-scale) * var(--local-font-scale, 1));
    position: relative;
    padding-left: 15px;
}

.skills-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
    font-weight: bold;
}

/* Right Column */
.right-column {
    width: 65%;
    padding: 40px 30px;
    background-color: var(--white);
}

.header {
    margin-bottom: 30px;
    padding-bottom: 15px;
}

.header h1 {
    font-size: calc(36px * var(--font-scale) * var(--name-font-scale, 1));
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.header h2 {
    font-size: calc(16px * var(--font-scale) * var(--title-font-scale, 1));
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}

.section-title {
    font-size: calc(18px * var(--font-scale) * var(--local-font-scale, 1));
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    padding-bottom: 5px;
}

.section-title i {
    margin-right: 8px;
    color: var(--accent-color);
    font-size: calc(16px * var(--font-scale) * var(--local-font-scale, 1));
}

.objective-text {
    font-size: calc(13px * var(--font-scale) * var(--local-font-scale, 1));
    color: var(--text-color);
    margin-bottom: var(--local-margin-bottom, 20px);
    text-align: justify;
}

.experience-item {
    font-size: calc(13px * var(--font-scale) * var(--local-font-scale, 1));
}

.experience-item h3, 
.experience-item h4 {
    font-size: calc(15px * var(--font-scale) * var(--local-font-scale, 1));
    color: var(--secondary-color);
    margin-bottom: 5px;
    margin-top: 10px;
    font-weight: 700;
}

.experience-item ul,
.experience-list,
.skills-list,
.bullet-list {
    list-style-type: none;
    margin-bottom: 20px;
}

.experience-item p {
    margin-bottom: var(--local-margin-bottom, 5px);
    font-size: calc(12px * var(--font-scale) * var(--local-font-scale, 1));
}

.experience-item li,
.bullet-list li {
    margin-bottom: var(--local-margin-bottom, 6px);
    font-size: calc(13px * var(--font-scale) * var(--local-font-scale, 1));
    line-height: inherit;
    position: relative;
    padding-left: 15px;
}

.experience-item li::before,
.bullet-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
    font-weight: bold;
}

.declaration-section p {
    font-size: calc(13px * var(--font-scale) * var(--local-font-scale, 1));
    margin-bottom: var(--local-margin-bottom, 20px);
    font-style: italic;
}

.signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.sig-left p {
    margin-bottom: 10px;
    font-style: normal;
    font-size: calc(13px * var(--font-scale) * var(--local-font-scale, 1));
}

.sig-right p {
    font-style: normal;
    text-align: center;
    border-top: 1px solid var(--text-color);
    padding-top: 10px;
    margin-top: 20px;
    font-size: calc(13px * var(--font-scale) * var(--local-font-scale, 1));
}

/* Responsive Design for Resume Canvas */
.editor-container {
    overflow-x: auto;
    width: 100vw;
    -webkit-overflow-scrolling: touch;
}

/* Drag and Drop Styling */
.section {
    position: relative;
    page-break-inside: avoid;
    break-inside: avoid;
    line-height: var(--local-line-height, 1.5);
    text-align: var(--local-text-align, left);
}

.drag-handle {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    z-index: 10;
    padding: 0 4px;
}

.drag-handle i {
    cursor: grab;
    color: #cbd5e1;
    padding: 2px;
}

.drag-handle .font-btn {
    cursor: pointer;
    font-size: 10px;
    color: #64748b;
}

.drag-handle .font-btn:hover {
    color: var(--accent-color);
}

.left-column .drag-handle {
    background: rgba(255,255,255,0.1);
}

.left-column .drag-handle i,
.left-column .drag-handle .font-btn {
    color: rgba(255,255,255,0.7);
}

.section:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.4;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
}

.left-column .sortable-ghost {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}

/* Page Break Line */
.page-break-line {
    width: 100%;
    text-align: center;
    border-top: 2px dashed #e74c3c;
    margin: 20px 0;
    padding-bottom: 25px; /* Creates a larger hover area below the line */
    position: relative;
    page-break-after: always;
    break-after: page;
    cursor: default;
}

.page-break-line::before {
    content: "--- PAGE BREAK ---";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 10px;
    color: #e74c3c;
    font-size: 12px;
    font-weight: bold;
}

/* Line Divider */
.line-divider {
    width: 100%;
    border-top: 1px solid #cbd5e1;
    margin: 15px 0;
    padding-bottom: 20px; /* Creates a larger hover area below the line */
    position: relative;
}

/* Hide page break lines when exporting to PDF */
@media print {
    .page-break-line {
        border: none !important;
    }
    .page-break-line::before {
        display: none !important;
    }
    .drag-handle {
        display: none !important;
    }
}

/* Fix PDF Export Margins */
body.exporting .cv-container {
    box-shadow: none !important;
    margin: 0 !important;
    transform: none !important;
}

/* Professional Toolbar Styling */
.professional-toolbar {
    width: 100%;
    margin: 0;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.toolbar-left, .toolbar-center, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-center {
    flex-grow: 1;
    justify-content: center;
    flex-wrap: nowrap;
    overflow: hidden;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 4px;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Icons & Buttons */
.toolbar-icon-btn, .toolbar-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    color: #4b5563;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toolbar-icon-btn { padding: 8px; }

.toolbar-icon-btn:hover, .toolbar-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111827;
}

.primary-icon { color: #8e44ad; }
.primary-icon:hover { background: rgba(142, 68, 173, 0.1); color: #8e44ad; }
.danger-icon { color: #e74c3c; }
.danger-icon:hover { background: rgba(231, 76, 60, 0.1); color: #e74c3c; }

/* Document Title */
.doc-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.doc-title-input {
    border: 1px solid transparent;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    padding: 4px 8px;
    border-radius: 4px;
    width: 220px;
    transition: border 0.2s ease;
}
.doc-title-input:hover {
    border-color: rgba(0, 0, 0, 0.1);
}
.doc-title-input:focus {
    border-color: #3b82f6;
    outline: none;
    background: white;
}
.save-status {
    position: absolute;
    bottom: -16px;
    left: 8px;
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    pointer-events: none;
}

/* Selects */
.toolbar-select {
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 6px 24px 6px 10px;
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234b5563' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.toolbar-select:hover {
    background-color: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
}
.toolbar-select:focus {
    border-color: #3b82f6;
    outline: none;
    background-color: white;
}

/* Sliders */
.toolbar-slider-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}
.slider-val {
    font-weight: 600;
    color: #8e44ad;
    min-width: 40px;
}
.toolbar-slider {
    width: 80px;
    accent-color: #8e44ad;
}

/* Primary Actions */
.toolbar-primary-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toolbar-primary-btn.outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}
.toolbar-primary-btn.outline:hover {
    background: #f3f4f6;
}
.toolbar-primary-btn.solid {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.toolbar-primary-btn.solid:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn {
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
}

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

.btn-secondary {
    background-color: var(--accent-color);
}
.btn-secondary:hover {
    background-color: #2980b9;
}

/* Editable text styling */
[contenteditable="true"] {
    outline: none;
    border-radius: 3px;
    transition: background 0.2s;
}

[contenteditable="true"]:hover {
    background-color: rgba(52, 152, 219, 0.05);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

[contenteditable="true"]:focus {
    background-color: rgba(52, 152, 219, 0.1);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3);
}

/* --- Premium Dashboard Styles --- */
.premium-dashboard {
    min-height: 100vh;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

/* Dashboard Vibrant Cards */
.dash-card {
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}
.dash-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0.8;
    z-index: -1;
}
.dash-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}
.dash-card h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.dash-card p {
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 15px;
}
.dash-btn {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-top: auto;
}
.dash-card:hover .dash-btn {
    background: white;
    color: #1e293b;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.dash-icon {
    font-size: 28px;
    color: white;
    margin-bottom: 5px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

/* Background decorations */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}
.shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.4), rgba(41, 128, 185, 0.1));
}
.shape-2 {
    bottom: 10%;
    right: -100px;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(142, 68, 173, 0.05));
}

.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 50px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.dashboard-title h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.dashboard-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.premium-search {
    position: relative;
}

.premium-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

.premium-search input {
    padding: 12px 20px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    width: 300px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #334155;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.premium-search input:focus {
    border-color: #3498db;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    width: 320px;
}

.premium-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}


.premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
}

.premium-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.premium-btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.premium-btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.premium-btn-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.premium-btn-indigo {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.w-100 { width: 100% !important; }

.premium-card {
    padding: 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.premium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dashboard-container {
    padding: 20px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-top-section {
    margin-bottom: 40px;
}

.dashboard-greeting h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.dashboard-greeting p {
    color: #64748b;
    font-size: 16px;
}

.resume-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.resume-list-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid rgba(255,255,255,0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.resume-list-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.2s;
}

.resume-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 1);
    border-color: #cbd5e1;
}
.resume-list-item:hover::before {
    opacity: 1;
}

.resume-info {
    flex-grow: 1;
}

.resume-info h3 {
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.resume-info .role {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.resume-info .date {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.resume-actions {
    display: flex;
    gap: 12px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}
.btn-secondary:hover {
    background: #cbd5e1;
    color: #1e293b;
}

.btn-danger {
    background: #fee2e2;
    color: #ef4444;
}
.btn-danger:hover {
    background: #fecaca;
    color: #dc2626;
}

/* Premium Modal */
.premium-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.85);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #f8fafc;
}
.glass-panel h3, .glass-panel h2 {
    color: #f8fafc !important;
}
.glass-panel p {
    color: #94a3b8 !important;
}

@keyframes modalPop {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Ensure modals don't overflow the viewport and are scrollable */
.premium-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Make action buttons sticky at the bottom */
.modal-actions {
    position: sticky;
    bottom: -40px;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px 40px 40px 40px;
    margin-bottom: -40px;
    margin-left: -40px;
    margin-right: -40px;
    margin-top: 20px !important;
    border-top: 1px solid #e2e8f0;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    z-index: 10;
    display: flex;
}

/* Premium Modal Animations */
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Bottom Navigation Bar default hidden */
.mobile-bottom-nav {
    display: none;
}

/* --- MOBILE APP UI / UX OVERHAUL --- */
@media (max-width: 768px) {
    /* Dashboard Mobile UX */
    .dashboard-header {
        position: sticky;
        top: 0;
        z-index: 1000;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid #eee;
    }
    .dashboard-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .premium-search {
        width: 100%;
        order: 1;
    }
    /* Hide desktop buttons on mobile, keep search */
    #createResumeBtn, #changePinBtn, #logoutBtn {
        display: none !important;
    }

    /* Dashboard Mobile Bottom Nav */
    .create-fab-nav {
        position: relative;
        top: -15px;
    }
    .create-fab-nav .fab-inner {
        background: linear-gradient(135deg, #3498db, #2980b9);
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
    }
    .create-fab-nav .fab-inner i {
        font-size: 20px;
        color: white;
    }

    /* Resume Cards Mobile */
    .resume-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    .resume-actions {
        width: 100%;
        display: flex;
        gap: 10px;
    }
    .resume-actions button {
        flex: 1;
        justify-content: center;
    }

    /* Modals Full Screen on Mobile */
    .premium-modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        border-radius: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    
    /* Editor Mobile UX */
    .professional-toolbar {
        padding: 10px;
    }
    
    /* Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        justify-content: space-around;
        align-items: center;
        padding: 10px 5px;
        z-index: 10000;
        border-top: 1px solid #eee;
    }
    
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        color: #64748b;
        font-size: 11px;
        background: none;
        border: none;
        padding: 5px 10px;
        border-radius: 8px;
    }
    .mobile-bottom-nav .nav-item i {
        font-size: 20px;
    }
    .mobile-bottom-nav .nav-item.active {
        color: #3b82f6;
    }
    
    /* Hide desktop toolbar elements on mobile */
    .desktop-only {
        display: none !important;
    }
    
    /* Add padding to bottom of editor container to avoid bottom nav overlap */
    .editor-container {
        padding-bottom: 80px !important; 
    }
    
    /* Increase touch targets */
    input[type="checkbox"] {
        transform: scale(1.3);
    }
    .toggle-checkbox {
        margin-right: 10px;
    }
    .alpha-btn {
        padding: 10px;
        font-size: 14px;
    }
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}
.text-danger { color: #ef4444; }

.premium-modal-content h3 {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
}

.premium-modal-content p {
    color: #64748b;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.premium-btn-outline {
    background: white;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}
.premium-btn-outline:hover {
    background: #f8fafc;
}

.premium-btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
}
.premium-btn-danger:hover {
    background: #dc2626;
}

/* Layout Variations */

/* 1. Classic (Default) */
.layout-classic {
    display: flex;
    flex-direction: row;
}

/* 2. Modern (Single Column, stacked) */
.layout-modern {
    display: flex;
    flex-direction: column;
}
.layout-modern .left-column {
    width: 100%;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.layout-modern .profile-section {
    width: 100%;
    border-bottom: none;
    margin-bottom: 0;
}
.layout-modern .left-column .section {
    width: calc(33% - 20px);
    margin-bottom: 0;
}
.layout-modern .right-column {
    width: 100%;
}
.layout-modern .header {
    display: none; /* Hide duplicate header in right column for modern layout */
}

/* 3. Minimalist */
.layout-minimal {
    display: flex;
    flex-direction: row-reverse;
}
.layout-minimal .left-column {
    background-color: #f4f4f4;
    color: var(--text-color);
    width: 30%;
}
.layout-minimal .left-column h2,
.layout-minimal .name-left,
.layout-minimal .title-left,
.layout-minimal .contact-info i,
.layout-minimal .personal-info strong {
    color: var(--primary-color);
    border-color: #ddd;
}
.layout-minimal .right-column {
    width: 70%;
}

/* Special case for profile image wrapper */
.image-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Profession Modal Specifics */
.alpha-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}
.alpha-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}
.alpha-btn:hover, .alpha-btn.active {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.professions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.prof-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.prof-card:hover {
    background: #ffffff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}
.prof-card i {
    color: #3b82f6;
    font-size: 18px;
}
.prof-card span {
    font-weight: 500;
    color: #1e293b;
    font-size: 15px;
}

.template-card:hover {
    border-color: #3b82f6 !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

/* Print CSS */
@media print {
    body {
        background-color: white;
        padding: 0;
        margin: 0;
    }
    
    .cv-container {
        box-shadow: none;
        width: 210mm;
        min-height: 297mm;
        margin: 0;
    }
    
    .controls-panel {
        display: none !important;
    }
    
    [contenteditable="true"]:hover, [contenteditable="true"]:focus {
        background-color: transparent;
        box-shadow: none;
    }
}

/* Remove all default browser list styling inside the resume editor to avoid unwanted default bullets */
.cv-container ul,
.cv-container ol,
.cv-container li {
    list-style: none !important;
}

/* Hide custom bullets if the list item is completely empty */
.cv-container li:empty::before {
    display: none !important;
}



/* Specific Landing Page Styles */
        body.landing-page {
            color: #f8fafc;
            font-family: 'Inter', sans-serif;
            overflow-x: hidden;
            margin: 0;
            padding: 0;
        }
        @keyframes landingGradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        .landing-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 50px;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(10px);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-sizing: border-box;
            border-bottom: 1px solid rgba(255,255,255,0.05);
        }
        .landing-logo {
            font-size: 24px;
            font-weight: 700;
            color: #38bdf8;
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }
        .landing-nav a {
            color: #cbd5e1;
            text-decoration: none;
            margin-left: 30px;
            font-weight: 500;
            transition: color 0.3s ease;
        }
        .landing-nav a:hover {
            color: #38bdf8;
        }
        .btn-login {
            background: #38bdf8;
            color: #0f172a !important;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        .btn-login:hover {
            background: #0ea5e9;
            transform: translateY(-2px);
        }
        .hero-section {
            padding: 90px 20px 40px;
            text-align: center;
            position: relative;
        }
        .hero-title {
            font-size: 40px;
            font-weight: 800;
            margin-bottom: 15px;
            color: #ffffff;
            text-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        .hero-subtitle {
            font-size: 16px;
            color: #e2e8f0;
            max-width: 800px;
            margin: 0 auto 25px;
            line-height: 1.5;
        }
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .feature-card {
            background: rgba(30, 41, 59, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 15px 12px;
            text-align: center;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            backdrop-filter: blur(10px);
        }
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.3);
            border-color: rgba(56, 189, 248, 0.3);
        }
        .feature-icon {
            font-size: 26px;
            color: #38bdf8;
            margin-bottom: 10px;
        }
        .feature-card h3 {
            font-size: 16px;
            margin-bottom: 6px;
            color: #f8fafc;
        }
        .feature-card p {
            color: #94a3b8;
            font-size: 13px;
            line-height: 1.4;
            margin-bottom: 12px;
        }
        .feature-btn {
            display: inline-block;
            background: rgba(56, 189, 248, 0.1);
            color: #38bdf8;
            padding: 6px 12px;
            border-radius: 6px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.2s ease;
        }
        .feature-btn:hover {
            background: rgba(56, 189, 248, 0.2);
        }
        .landing-footer {
            background: #0f172a;
            padding: 60px 50px 30px;
            border-top: 1px solid rgba(255,255,255,0.05);
            margin-top: 50px;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto 40px;
        }
        .footer-col h4 {
            color: #f8fafc;
            font-size: 18px;
            margin-bottom: 20px;
        }
        .footer-col ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .footer-col ul li {
            margin-bottom: 12px;
        }
        .footer-col ul li a {
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .footer-col ul li a:hover {
            color: #38bdf8;
        }
        .footer-bottom {
            text-align: center;
            color: #64748b;
            padding-top: 30px;
            border-top: 1px solid rgba(255,255,255,0.05);
            font-size: 14px;
        }
        
        @media (max-width: 768px) {
            .landing-header { padding: 15px 20px; }
            .hero-title { font-size: 40px; }
            .features-grid { padding: 20px; }
            .landing-nav { display: none; }
        }

/* Global Header Padding */
body:not(.landing-page):not(.admin-body):not(.blog-page):not(.blog-single) {
    padding-top: 80px;
}

body.dashboard-body {
    padding-top: 53px !important;
}


/* ------------------- */
/* TOOL PAGES RECOVERY */
/* ------------------- */
.tool-container, .toolkit-container {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.img-container {
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    flex-grow: 1;
    min-height: 400px;
    position: relative;
    text-align: center;
}
.img-container img {
    max-width: 100%;
    max-height: 60vh;
}
.preset-btn, .tab {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.preset-btn.active, .tab.active {
    background: #38bdf8;
    color: white;
    border-color: #38bdf8;
}
.preset-btn:hover:not(.active), .tab:hover:not(.active) {
    background: #f8fafc;
}
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    background: #f8fafc;
    transition: background 0.2s;
}
.upload-area:hover {
    background: #f1f5f9;
}
.file-list {
    margin-bottom: 20px;
}
.file-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    align-items: center;
}
.status-box {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}
.status-box.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}
.status-box.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}
/* ------------------- */
/* PREMIUM LOGIN UI */
/* ------------------- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}
.login-cont.glass-panel {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 25px;
    color: #f8fafc;
}
.login-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 45px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.login-container:hover {
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.6);
}
.login-header {
    text-align: center;
    margin-bottom: 35px;
}
.login-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.login-header p {
    color: #94a3b8;
    font-size: 15px;
}
.login-wrapper .form-group {
    margin-bottom: 24px;
}
.login-wrapper .form-group label {
    display: block;
    margin-bottom: 10px;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 14px;
}
.login-wrapper .form-group input {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.4);
    color: #f8fafc;
}
.login-wrapper .form-group input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    outline: none;
    background: rgba(15, 23, 42, 0.6);
}
.login-wrapper .btn {
    width: 100%;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.login-wrapper .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(37,99,235,0.6);
}
.back-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}
.back-btn:hover {
    color: #ffffff;
}
.error-msg {
    color: #ef4444;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}
#step2 { display: none; }

/* ------------------- */
/* DASHBOARD FIX */
/* ------------------- */
/* If dashboard header was sticky, remove it or push it down */
.dashboard-header {
    position: relative !important;
    top: auto !important;
    padding-top: 10px;
}

/* ------------------- */
/* PASSPORT & ID MAKER LAYOUT */
/* ------------------- */
.maker-layout {
    display: flex;
    height: calc(100vh - 150px);
    overflow: hidden;
    background: #f1f5f9;
}
.maker-sidebar {
    width: 300px;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.maker-canvas-container {
    flex-grow: 1;
    overflow: auto;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #e2e8f0;
}
.flex-row {
    display: flex;
    align-items: center;
}
.control-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    box-sizing: border-box;
}
.control-input:focus {
    outline: none;
    border-color: #38bdf8;
    background: #fff;
}
.sheet-wrapper {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    transform-origin: top center;
    margin: 0 auto;
}
.photo-slot {
    position: absolute;
    box-sizing: border-box;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cut-marks {
    border: 1px dashed #cbd5e1;
}
.id-card-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.form-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.id-workspace {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 200px);
}
.id-top-bar {
    display: flex;
    gap: 20px;
}
.id-canvas-area {
    flex-grow: 1;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}


/* ------------------- */
/* DASHBOARD CARDS FIX */
/* ------------------- */
.dashboard-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
}
.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* ------------------- */
/* ID CARD MAKER PRINT */
/* ------------------- */
.print-page {
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    margin: 0 auto;
    box-sizing: border-box;
}

.print-page.layout-A4 {
    width: 210mm;
    min-height: 297mm;
    padding: 15mm;
}

.print-page.layout-A6 {
    width: 105mm;
    min-height: 148mm;
    padding: 10mm;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    align-content: flex-start;
}

.cards-grid.layout-A4 {
    gap: 10px;
}

.cards-grid.layout-A6 {
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* === RESPONSIVE LAYOUT Separation === */

/* Default: Desktop View (min-width: 901px) */
.app-header, .app-bottom-nav, .app-drawer, .app-drawer-overlay {
    display: none !important;
}


/* Mobile App Layout (max-width: 900px) */
@media (max-width: 900px) {
    body {
        padding-top: 60px; /* Space for app header */
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    /* Hide Desktop Elements */
    .landing-header, .landing-footer {
        display: none !important;
    }
    
    /* Show App Elements */
    .app-header { display: flex !important; }
    .app-bottom-nav { display: flex !important; }
    .app-drawer { display: flex !important; }

    /* App Header */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: #0f172a;
        color: white;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .app-header-left, .app-header-right {
        display: flex;
        align-items: center;
        width: 40px;
    }
    .app-header-right {
        justify-content: flex-end;
    }
    .app-header-title {
        flex: 1;
        text-align: center;
        font-size: 18px;
        font-weight: 700;
        color: white;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .app-header-icon {
        font-size: 20px;
        color: #cbd5e1;
        cursor: pointer;
        background: none;
        border: none;
        outline: none;
        padding: 5px;
        transition: color 0.2s;
    }
    .app-header-icon:hover { color: #38bdf8; }

    /* Side Drawer */
    .app-drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1001;
        display: none; /* JS toggles class .open to make display:block */
        opacity: 0;
        transition: opacity 0.3s;
    }
    .app-drawer {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background: white;
        z-index: 1002;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        overflow-y: auto;
    }
    .app-drawer.open { left: 0; }
    .app-drawer-overlay.open { display: block !important; opacity: 1; }

    .drawer-header {
        padding: 20px 15px;
        background: #0f172a;
        color: white;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .drawer-header img { width: 40px; border-radius: 8px; }
    .drawer-section-title {
        padding: 15px 15px 5px 15px;
        font-size: 12px;
        font-weight: 700;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .drawer-nav {
        display: flex;
        flex-direction: column;
    }
    .drawer-nav a {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        color: #334155;
        text-decoration: none;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid #f1f5f9;
    }
    .drawer-nav a i {
        width: 25px;
        color: #64748b;
        font-size: 16px;
    }
    .drawer-nav a:hover {
        background: #f8fafc;
        color: #3b82f6;
    }
    .drawer-nav a:hover i { color: #3b82f6; }

    /* Bottom Navigation Bar */
    .app-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: white;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #64748b;
        text-decoration: none;
        flex: 1;
        height: 100%;
        transition: color 0.2s;
    }
    .bottom-nav-item i {
        font-size: 20px;
        margin-bottom: 4px;
    }
    .bottom-nav-item span {
        font-size: 11px;
        font-weight: 600;
    }
    .bottom-nav-item:hover, .bottom-nav-item.active {
        color: #3b82f6;
    }
}

/* Prevent bottom nav from printing */
@media print {
    .app-header, .app-bottom-nav, .app-drawer, .app-drawer-overlay, #cookieConsentBanner, .ads-container {
        display: none !important;
    }
    body { padding: 0 !important; }
}

/* === ADSENSE & SEO === */
.ads-container {
    margin: 20px auto;
    text-align: center;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
}

/* Global SEO Block - Dark Theme */
.seo-content-block {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 40px;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #cbd5e1;
    line-height: 1.6;
    box-sizing: border-box;
}
.seo-content-block h2 {
    color: #f8fafc;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}
.seo-content-block h3 {
    color: #e2e8f0;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.seo-content-block p {
    font-size: 15px;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* =========================================
   RESUME TEMPLATE LAYOUTS
   ========================================= */

/* Layout: Classic (Default 2-column) */
.cv-container.layout-classic {
    flex-direction: row;
}

/* Layout: Modern (Stacked header) */
.cv-container.layout-modern {
    flex-direction: column;
}
.cv-container.layout-modern .left-column {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 25px 40px;
    background-color: var(--primary-color);
}
.cv-container.layout-modern .profile-section {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}
.cv-container.layout-modern #leftNameContainer {
    align-items: flex-start !important;
}
.cv-container.layout-modern .name-left, 
.cv-container.layout-modern .title-left {
    text-align: left !important;
}
.cv-container.layout-modern .left-column .section {
    margin-bottom: 0;
    min-width: 200px;
}
.cv-container.layout-modern .right-column {
    width: 100%;
    padding: 30px 40px;
}

/* Layout: Minimalist (Reversed 2-column, clean) */
.cv-container.layout-minimal {
    flex-direction: row-reverse;
}
.cv-container.layout-minimal .left-column {
    background-color: #f8fafc;
    color: #334155;
    border-left: 1px solid #e2e8f0;
}
.cv-container.layout-minimal .name-left, 
.cv-container.layout-minimal .title-left, 
.cv-container.layout-minimal .left-column h2,
.cv-container.layout-minimal .left-column .section {
    color: #334155;
}
.cv-container.layout-minimal .left-column h2 {
    border-bottom-color: #cbd5e1;
}

/* Layout: Executive (Formal, single column) */
.cv-container.layout-executive {
    flex-direction: column;
}
.cv-container.layout-executive .left-column {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background-color: var(--white);
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}
.cv-container.layout-executive .name-left, 
.cv-container.layout-executive .left-column h2 {
    color: var(--primary-color);
}
.cv-container.layout-executive .title-left {
    color: var(--secondary-color);
    font-weight: 600;
}
.cv-container.layout-executive .left-column h2 {
    border-bottom: none;
    font-size: 14px;
    margin-bottom: 5px;
}
.cv-container.layout-executive .profile-section {
    display: none !important; /* Usually no photo in executive resumes */
}
.cv-container.layout-executive .right-column {
    width: 100%;
    padding: 30px 40px;
}

/* Layout: Creative (Bold right sidebar) */
.cv-container.layout-creative {
    flex-direction: row-reverse;
    background-color: #f8fafc;
}
.cv-container.layout-creative .left-column {
    width: 35%;
    background-color: var(--white);
    border-left: 3px solid var(--accent-color);
    padding: 40px 25px;
    color: var(--primary-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.02);
}
.cv-container.layout-creative .name-left, 
.cv-container.layout-creative .left-column h2 {
    color: var(--primary-color);
}
.cv-container.layout-creative .title-left {
    color: var(--accent-color);
    font-weight: 600;
}
.cv-container.layout-creative .right-column {
    width: 65%;
    padding: 40px 30px;
    background-color: var(--white);
    margin: 20px 0 20px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}