body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    min-height: 100vh;
}
.resume-container {
    width: 8.5in;
    min-height: 11in;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: white;
    padding: 0.75in;
    transition: all 0.3s ease-in-out;
    margin: 0 auto;
}
h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}
.subtitle {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}
.contact-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
    vertical-align: middle;
}
.section-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-top: 1.5rem;
    border-bottom: 2px solid #1f2937;
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}
.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-weight: bold;
    font-size: 1rem;
}
.experience-location {
    font-size: 0.875rem;
    font-style: italic;
    color: #6b7280;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}
.description-list {
    list-style-type: disc;
    margin-left: 1.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.description-list li {
    margin-bottom: 0.125rem;
}
.skills-list {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}
#jsonInput, #promptInput {
    min-height: 200px;
}
.template-card {
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 120px;
    position: relative;
    overflow: hidden;
}
.template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.template-card.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.template-preview {
    width: 100%;
    height: 100%;
    padding: 8px;
    font-size: 6px;
    line-height: 1.2;
    background: white;
    position: relative;
}

.template-preview .preview-name {
    font-weight: bold;
    margin-bottom: 2px;
}
.template-preview .preview-title {
    font-size: 5px;
    margin-bottom: 3px;
}
.template-preview .preview-section {
    height: 8px;
    background: #e5e7eb;
    margin: 2px 0;
    border-radius: 1px;
}
.template-preview .preview-line {
    height: 3px;
    background: #f3f4f6;
    margin: 1px 0;
    border-radius: 1px;
}

/* Template-specific styles */
.template-1 h1 { color: #1e40af; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.template-1 .section-title { border-color: #1e40af; color: #1e40af; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.template-1 .preview-name { color: #1e40af; }

.template-2 .section-title { border-bottom: none; background: #f3f4f6; padding: 4px; }
.template-2 h1 { font-family: sans-serif; font-size: 2.25rem; color: #4b5563; }
.template-2 .contact-list li::before { content: "-"; }

.template-3 .section-title { color: #f97316; border-color: #f97316; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.template-3 h1 { font-family: serif; color: #f97316; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.template-3 .preview-name { color: #f97316; }

.template-4 h1, .template-4 .subtitle, .template-4 .section-title { text-align: center; }
.template-4 .contact-list { display: flex; justify-content: center; gap: 0.75rem; }

.template-5 .section-title { font-size: 1.5rem; background: #1f2937; color: white; padding: 4px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }

.template-6 .section-title { border-bottom: 1px solid #1f2937; margin-bottom: 0.5rem; }
.template-6 .experience-header { font-weight: normal; }

.dropdown-menu {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 400px;
    margin: 1rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.modal.show .modal-content {
    transform: scale(1);
}
.share-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.share-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    transition: transform 0.2s;
}
.share-btn:hover {
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .resume-container {
        width: 100%;
        padding: 0.5in;
        min-height: auto;
    }
    .contact-list {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    h1 {
        font-size: 1.5rem;
    }
    .glass-card {
        margin: 0.5rem;
        padding: 1rem;
    }
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .template-card {
        height: 100px;
    }
}
@media print {
    body { background: white; }
    .resume-container { box-shadow: none; margin: 0; }
}