/* Professional Resume Templates CSS */

/* Resume Container */
.dm-resume-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 800px;
}

/* Sidebar */
.dm-resume-sidebar {
    width: 35%;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 40px 30px;
    position: relative;
}

.dm-resume-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.05) 50%, transparent 51%);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Content Area */
.dm-resume-content {
    width: 65%;
    background: #f8f9fa;
    padding: 40px 30px;
    color: #2c3e50;
    position: relative;
}

/* Header */
.dm-resume-header {
    margin-bottom: 30px;
}

.dm-resume-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
    letter-spacing: 1px;
    line-height: 1.2;
}

.dm-resume-title {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 30px 0;
    color: #ecf0f1;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Sections */
.dm-resume-section {
    margin-bottom: 30px;
    position: relative;
}

.dm-resume-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    position: relative;
}

.dm-resume-content .dm-resume-section h3 {
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
}

/* Contact Info */
.dm-contact-info {
    font-size: 14px;
    line-height: 1.6;
}

.dm-contact-info p {
    margin: 0 0 15px 0;
}

.dm-contact-info strong {
    color: #3498db;
    font-weight: 600;
}

/* Skills List */
.dm-skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dm-skills-list li {
    padding: 5px 0;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
    transition: all 0.2s ease;
}

.dm-skills-list li:hover {
    color: #3498db;
    transform: translateX(5px);
}

.dm-skills-list li:before {
    content: '■';
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 12px;
}

/* Profile Image */
.dm-profile-image {
    text-align: center;
    margin-bottom: 30px;
}

.dm-profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dm-profile-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Education */
.dm-education-item {
    margin-bottom: 20px;
}

.dm-education-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.dm-education-item p {
    font-size: 14px;
    margin: 0;
    color: #7f8c8d;
}

/* Experience */
.dm-experience-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.dm-experience-item:last-child {
    border-bottom: none;
}

.dm-experience-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.dm-date {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin: 0 0 10px 0;
}

.dm-experience-item ul {
    margin: 10px 0;
    padding-left: 20px;
}

.dm-experience-item li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
    color: #34495e;
}

/* Languages and Interests */
.dm-languages-list,
.dm-interests-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dm-languages-list li,
.dm-interests-list li {
    padding: 5px 0;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
    transition: all 0.2s ease;
}

.dm-languages-list li:hover,
.dm-interests-list li:hover {
    color: #667eea;
    transform: translateX(5px);
}

.dm-languages-list li:before,
.dm-interests-list li:before {
    content: '■';
    position: absolute;
    left: 0;
    color: #667eea;
    font-size: 12px;
}

/* Editable Elements */
.dm-editable {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dm-editable:hover {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
}

.dm-editable::after {
    content: '✏️';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dm-editable:hover::after {
    opacity: 1;
}

/* Edit Mode Styles */
.dm-edit-mode .dm-editable {
    border: 2px dashed #667eea;
    border-radius: 4px;
    padding: 5px;
    margin: -5px;
}

.dm-edit-mode .dm-editable::after {
    opacity: 1;
}

/* Form Styles for Editing */
.dm-edit-form {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dm-edit-form input,
.dm-edit-form textarea,
.dm-edit-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}

.dm-edit-form textarea {
    min-height: 100px;
    resize: vertical;
}

.dm-edit-form button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

.dm-edit-form button:hover {
    background: #5a67d8;
}

.dm-edit-form .dm-cancel-btn {
    background: #e53e3e;
}

.dm-edit-form .dm-cancel-btn:hover {
    background: #c53030;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dm-resume-container {
        flex-direction: column;
        margin: 10px;
    }
    
    .dm-resume-sidebar,
    .dm-resume-content {
        width: 100%;
        padding: 20px;
    }
    
    .dm-resume-name {
        font-size: 24px;
    }
    
    .dm-resume-title {
        font-size: 16px;
    }
    
    .dm-profile-image img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .dm-resume-container {
        margin: 5px;
        border-radius: 4px;
    }
    
    .dm-resume-sidebar,
    .dm-resume-content {
        padding: 15px;
    }
    
    .dm-resume-name {
        font-size: 20px;
    }
    
    .dm-resume-title {
        font-size: 14px;
    }
    
    .dm-profile-image img {
        width: 100px;
        height: 100px;
    }
}

/* Print Styles */
@media print {
    .dm-resume-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .dm-editable::after {
        display: none;
    }
    
    .dm-edit-form {
        display: none;
    }
    
    .dm-resume-sidebar {
        background: #2c3e50 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .dm-resume-content {
        background: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Animation for template loading */
@keyframes resumeFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dm-resume-container {
    animation: resumeFadeIn 0.5s ease;
}

/* Template selector styles */
.dm-template-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.dm-template-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dm-template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dm-template-preview {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.dm-template-info {
    padding: 15px;
}

.dm-template-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.dm-template-description {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 10px 0;
}

.dm-template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.dm-template-tag {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}
