/* PDF Viewer Modal */
.pdf-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    z-index: 10000;
    flex-direction: column;
}

.pdf-viewer-modal.active {
    display: flex;
}

/* Toolbar */
.pdf-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 48px;
}

.pdf-viewer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-viewer-title {
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
}

.pdf-viewer-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Container */
.pdf-viewer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--window-bg);
    color: var(--text-color);
}

#pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Loading State */
.pdf-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #1e1e1e;
    color: #fff;
    z-index: 10;
    gap: 16px;
    font-family: 'Segoe UI', sans-serif;
}

.pdf-loading.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Resume Viewer Styles */
.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background-color: var(--taskbar-bg);
    border-bottom: 1px solid var(--border-color);
    height: 48px;
    flex-shrink: 0;
}

.pdf-toolbar-left,
.pdf-toolbar-center,
.pdf-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.pdf-btn:hover {
    background-color: var(--hover-bg);
}

.pdf-btn img {
    width: 16px;
    height: 16px;
    filter: var(--icon-filter, none);
}

.pdf-page-info,
.pdf-zoom-level {
    font-size: 13px;
    color: var(--text-color);
    padding: 0 8px;
}

.pdf-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
}

.resume-page {
    width: 100%;
    max-width: 850px;
    background: white;
    padding: 60px 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    line-height: 1.6;
}

.resume-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #0078d4;
}

.resume-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    letter-spacing: 2px;
}

.resume-title {
    font-size: 18px;
    color: #0078d4;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.resume-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.resume-section {
    margin-bottom: 32px;
}

.resume-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0078d4;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resume-section p {
    margin: 0 0 12px 0;
    color: #444;
}

.resume-job {
    margin-bottom: 24px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.job-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.job-date {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.job-company {
    font-size: 15px;
    color: #0078d4;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.resume-job ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.resume-job li {
    margin-bottom: 6px;
    color: #444;
    font-size: 15px;
}

.resume-education h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.resume-education p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.resume-skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-category h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.skill-category p {
    font-size: 14px;
    color: #444;
    margin: 0;
    line-height: 1.5;
}

/* Scrollbar for resume content */
.pdf-content::-webkit-scrollbar {
    width: 12px;
}

.pdf-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.pdf-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.pdf-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}