/* Canva CV Editor stylesheet - cv-edit.css */

.cv-edit-body {
    background-color: #0c0a15;
}

/* Desk/Workspace Layout */
.editor-container {
    min-height: calc(100vh - 120px);
}

.control-panel {
    background: linear-gradient(145deg, #16122b, #1d1737);
    border: 1px solid rgba(184, 14, 125, 0.1) !important;
}

.canvas-workspace {
    background-color: #090710;
    border-radius: 16px;
    padding: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    min-height: 800px;
}

/* A4 Page Editor Simulation */
.editable-cv-sheet {
    background-color: #ffffff;
    color: #333333;
    width: 210mm;
    min-height: 297mm;
    padding: 20mm 15mm;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    border-radius: 4px;
    position: relative;
    font-family: system-ui, -apple-system, sans-serif;
    transition: background-color 0.2s ease, font-family 0.2s ease;
}

/* Contact/Header style inside paper */
.editable-cv-sheet .cv-header {
    border-bottom: 2px solid #b80e7d;
    padding-bottom: 15px;
}

.editable-cv-sheet .cv-name {
    color: #111;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.editable-cv-sheet .cv-subtitle {
    color: #b80e7d;
    font-weight: 600;
}

.editable-cv-sheet .cv-contact-details {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.5;
}

.editable-cv-sheet .cv-contact-details a {
    color: #b80e7d;
    text-decoration: none;
}

/* Sections Inside Paper */
.editable-cv-sheet .cv-section-title {
    color: #b80e7d;
    font-size: 1.1rem;
    font-weight: bold;
    border-bottom: 1px solid rgba(184, 14, 125, 0.2);
    padding-bottom: 4px;
    margin-bottom: 12px;
}

.editable-cv-sheet .cv-section-body {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.6;
}

.editable-cv-sheet .cv-section-body ul {
    padding-left: 1rem;
}

/* Interactive Splitter CSS */
#column-splitter-bar {
    width: 14px;
    cursor: col-resize;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    z-index: 10;
    margin: 0 -7px;
}

.splitter-line {
    width: 2px;
    height: 100%;
    background-color: rgba(184, 14, 125, 0.15);
    transition: background-color 0.2s;
}

#column-splitter-bar:hover .splitter-line,
#column-splitter-bar.dragging .splitter-line {
    background-color: #b80e7d;
}

.splitter-handle {
    width: 24px;
    height: 24px;
    background-color: #b80e7d;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-size: 0.75rem;
    position: absolute;
    top: 40%;
    transition: transform 0.2s;
}

#column-splitter-bar:hover .splitter-handle {
    transform: scale(1.15);
}

/* Drag & Drop Card Visuals */
.cv-draggable-card {
    position: relative;
    border: 1px solid transparent;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}

.cv-draggable-card:hover {
    background-color: rgba(184, 14, 125, 0.03);
    border-color: rgba(184, 14, 125, 0.15);
}

.card-drag-handle {
    position: absolute;
    top: 6px;
    right: 6px;
    cursor: grab;
    opacity: 0;
    background-color: #b80e7d;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    transition: opacity 0.2s;
    z-index: 5;
}

.cv-draggable-card:hover .card-drag-handle {
    opacity: 0.85;
}

.cv-draggable-card.dragging {
    opacity: 0.4;
    border: 1px dashed #b80e7d;
    background-color: rgba(184, 14, 125, 0.05);
}

.column-drop-zone {
    min-height: 150px;
    transition: background-color 0.2s, border-color 0.2s;
    border: 1px dashed transparent;
    border-radius: 8px;
}

.column-drop-zone.drag-over {
    background-color: rgba(184, 14, 125, 0.03);
    border-color: rgba(184, 14, 125, 0.2);
}

/* Editable Mode Controls on elements */
[contenteditable="true"]:focus {
    outline: 2px dashed #b80e7d;
    outline-offset: 4px;
    background-color: rgba(184, 14, 125, 0.02);
    border-radius: 4px;
}

/* XS helper text */
.xs-text {
    font-size: 0.75rem;
}

/* Print Overrides matching exactly original cv.css */
@media print {
    body {
        background-color: #ffffff !important;
        color: #333333 !important;
    }
    .cv-page {
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .card-drag-handle,
    #column-splitter-bar,
    .d-print-none {
        display: none !important;
    }
    /* Inserts print layout styling */
    .col-md-4 {
        width: 33.333333% !important;
        float: left !important;
    }
    .col-md-8 {
        width: 66.666667% !important;
        float: left !important;
    }
}
