/* Sidebar Template - 25% Left, 75% Right */
.template-sidebar.resume-preview {
    padding: 0;
    display: flex;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Left Sidebar - 25% */
.template-sidebar .resume-sidebar {
    width: 25%;
    background: #2c3e50;
    color: white;
    padding: 0.25in 0.15in;
    min-height: 11in;
}

/* Right Content - 75% */
.template-sidebar .resume-main {
    width: 75%;
    padding: 0.25in 0.2in;
    background: white;
    min-height: 11in;
}

/* Sidebar Header */
.template-sidebar .resume-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
}

.template-sidebar .resume-name {
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.template-sidebar .resume-title {
    font-size: 15px;
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Sidebar Contact */
.template-sidebar .resume-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: #ecf0f1;
    margin-bottom: 15px;
    font-weight: 500;
}

.template-sidebar .resume-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
}

/* Sidebar Sections */
.template-sidebar .sidebar-section {
    margin-bottom: 15px;
}

.template-sidebar .sidebar-section .resume-section-title {
    font-size: 14px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #3498db;
}

/* Sidebar Skills */
.template-sidebar .sidebar-section .resume-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}

.template-sidebar .sidebar-section .skill-tag {
    background: rgba(52, 152, 219, 0.2);
    color: white;
    padding: 6px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    border-left: 3px solid #3498db;
    text-align: center;
}

/* Sidebar Education */
.template-sidebar .sidebar-section .resume-item {
    margin-bottom: 12px;
}

.template-sidebar .sidebar-section .resume-item-title {
    font-size: 12px;
    font-weight: 700;
    color: white;
    margin-bottom: 3px;
}

.template-sidebar .sidebar-section .resume-item-subtitle {
    font-size: 11px;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 3px;
}

.template-sidebar .sidebar-section .resume-item-date {
    font-size: 11px;
    color: #bdc3c7;
    font-style: italic;
    font-weight: 500;
}

.template-sidebar .sidebar-section .resume-item-location {
    font-size: 11px;
    color: #bdc3c7;
    margin-bottom: 3px;
    font-weight: 500;
}

.template-sidebar .sidebar-section .resume-item-description {
    font-size: 11px;
    line-height: 1.5;
    color: #ecf0f1;
    margin-top: 3px;
    font-weight: 500;
}

/* Main Content Sections */
.template-sidebar .resume-main .resume-section {
    margin-bottom: 18px;
}

.template-sidebar .resume-main .resume-section-title {
    font-size: 17px;
    font-weight: 800;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 3px solid #3498db;
}

/* Main Content Summary */
.template-sidebar .resume-main .resume-summary {
    font-size: 13px;
    line-height: 1.6;
    color: #444;
    text-align: justify;
    font-weight: 500;
}

/* Main Content Experience */
.template-sidebar .resume-main .resume-item {
    margin-bottom: 16px;
    page-break-inside: avoid;
}

.template-sidebar .resume-main .resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.template-sidebar .resume-main .resume-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
}

.template-sidebar .resume-main .resume-item-subtitle {
    font-size: 14px;
    color: #3498db;
    font-weight: 600;
}

.template-sidebar .resume-main .resume-item-date {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
    white-space: nowrap;
    font-weight: 500;
}

.template-sidebar .resume-main .resume-item-location {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
    font-weight: 500;
}

.template-sidebar .resume-main .resume-item-description {
    font-size: 12px;
    line-height: 1.6;
    color: #555;
    margin-top: 5px;
    font-weight: 500;
}

.template-sidebar .resume-main .resume-item-description ul {
    margin: 5px 0;
    padding-left: 20px;
}

.template-sidebar .resume-main .resume-item-description li {
    margin-bottom: 4px;
}

.template-sidebar .resume-main .resume-item-technologies {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 5px;
    font-style: italic;
    font-weight: 500;
}

/* Photo placeholder */
.template-sidebar .resume-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #34495e;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    color: #ecf0f1;
    border: 4px solid #3498db;
}

/* Print Styles for Sidebar Template */
@media print {
    .template-sidebar.resume-preview {
        display: block;
        page-break-inside: auto;
    }
    
    .template-sidebar .resume-sidebar {
        width: 100%;
        page-break-after: always;
        min-height: auto;
    }
    
    .template-sidebar .resume-main {
        width: 100%;
        page-break-before: always;
        min-height: auto;
    }
    
    .template-sidebar .resume-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .template-sidebar .resume-item {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .template-sidebar .sidebar-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    
    .template-sidebar .resume-section-title {
        page-break-after: avoid;
        break-after: avoid;
    }
}
