/* ============================================
   Pictorial Sapphire - Offer Letter Verification Portal
   Corporate HR System Styling
   ============================================ */

/* Reset and Layout */
.site-header .nav-shell {
    justify-content: center;
}

.main-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

/* Verification Card Styling */
.verification-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.verification-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 40px;
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--fast);
}

.verification-card h2 {
    font-family: "Outfit", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    text-align: center;
}

.instruction {
    font-size: 14px;
    color: var(--muted);
    text-align: center;
    margin-bottom: 25px;
}

.verification-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    background: var(--surface);
    color: var(--ink);
    border: 2px solid var(--line);
    border-radius: var(--radius-xs);
    outline: none;
    transition: border-color var(--fast), box-shadow var(--fast);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.verification-input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(18, 23, 37, 0.08);
}

.format-hint {
    margin-bottom: 25px;
    text-align: center;
}

.format-hint small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.button-group {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--fast);
    font-family: "Plus Jakarta Sans", sans-serif;
    text-align: center;
}

.btn-primary {
    background-color: var(--ink);
    color: var(--surface);
    border: 1px solid var(--ink);
}

.btn-primary:hover {
    background-color: var(--ink-soft);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
}

.btn-secondary:hover {
    background-color: rgba(18, 23, 37, 0.04);
    transform: translateY(-1px);
}

/* Result Section */
.result-section {
    margin-top: 30px;
}

.result-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto 50px auto;
    box-shadow: var(--shadow-strong);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--line);
}

.verification-seal {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.seal-inner {
    width: 52px;
    height: 52px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-inner svg {
    color: #FFFFFF;
}

.status-badge {
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-family: "Outfit", sans-serif;
}

.verified-badge {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.not-verified-badge {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.verification-message {
    background-color: rgba(186, 233, 0, 0.1);
    border-left: 4px solid var(--lime);
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.verification-message p {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}

/* Tabs Switcher System */
.tabs-container {
    display: flex;
    border-bottom: 2px solid var(--line);
    margin-bottom: 30px;
    gap: 8px;
}

.tab-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: color var(--fast);
    font-family: "Outfit", sans-serif;
}

.tab-btn:hover {
    color: var(--ink);
}

.tab-btn.active {
    color: var(--ink);
    font-weight: 700;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--ink);
    border-radius: 3px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn var(--fast) ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: Candidate Details */
.candidate-details {
    margin-bottom: 30px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    flex: 1;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
    flex: 1.5;
}

/* Tab 2: Offer Letter Document Preview */
.letterhead-document {
    background-color: #FFFFFF;
    color: #121725;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 60px;
    border-radius: 4px;
    font-family: "Plus Jakarta Sans", "Georgia", serif;
    position: relative;
    overflow: hidden;
    line-height: 1.6;
}

.letter-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 55px;
    font-weight: 800;
    color: rgba(18, 23, 37, 0.025);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.letter-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.letter-brand-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.logo-text strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    letter-spacing: 1.5px;
    color: #121725;
}

.logo-text small {
    display: block;
    font-size: 11px;
    color: #68708a;
    font-weight: 500;
}

.letter-company-info {
    text-align: right;
    font-size: 11px;
    color: #68708a;
    line-height: 1.4;
}

.letter-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--lime) 0%, var(--ink) 100%);
    margin-bottom: 30px;
}

.letter-title-section {
    position: relative;
    margin-bottom: 35px;
}

.letter-title {
    font-family: "Outfit", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #121725;
    border-bottom: 2px solid #121725;
    display: inline-block;
    padding-bottom: 4px;
    /* Center header */
    margin: 0 auto;
    text-align: center;
}

/* Ensure centering wrapper if needed, but since it's in a flex/block it can center locally */
.letter-title-section {
    text-align: center;
}

.letter-ref-no {
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: #121725;
    margin-top: 10px;
}

.letter-body {
    font-size: 14px;
    color: #1d2333;
}

.letter-body p {
    margin-bottom: 18px;
    text-align: justify;
}

.letter-date {
    font-weight: 600;
    margin-bottom: 20px !important;
}

.recipient-greeting {
    line-height: 1.4;
    margin-bottom: 20px !important;
}

.letter-details-table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
}

.letter-details-table td {
    padding: 10px 15px;
    border: 1px solid #E5E7EB;
    font-size: 13.5px;
}

.letter-details-table td:first-child {
    width: 30%;
    background-color: #F9FAFC;
    font-weight: 600;
}

.letter-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 50px;
}

.signature-section {
    font-size: 13px;
}

.signature-line {
    width: 150px;
    height: 1px;
    background-color: #121725;
    margin-bottom: 10px;
}

.company-seal-box {
    margin-right: 20px;
}

.seal-graphic {
    width: 90px;
    height: 90px;
    border: 2px dashed #10B981;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    color: #10B981;
    font-weight: 700;
    text-align: center;
    transform: rotate(-10deg);
    padding: 5px;
    user-select: none;
    pointer-events: none;
    line-height: 1.2;
}

/* Verification Timestamp Row */
.verification-timestamp-row {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin: 25px 0;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}

.verification-timestamp-row span:last-child {
    font-weight: 700;
    color: var(--ink);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    background-color: var(--ink);
    color: var(--surface);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--fast);
    font-family: "Plus Jakarta Sans", sans-serif;
}

.action-btn:hover {
    background-color: var(--ink-soft);
    transform: translateY(-1px);
}

.action-btn svg {
    flex-shrink: 0;
}

/* Error Card Styling */
.error-card {
    background-color: var(--surface);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.error-icon {
    display: flex;
    justify-content: center;
    color: #DC2626;
    margin-bottom: 15px;
}

.error-message {
    background-color: #FEF2F2;
    border-left: 4px solid #DC2626;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: left;
}

.error-message p {
    color: #991B1B;
    font-size: 15px;
    font-weight: 600;
}

.error-subtext {
    font-size: 13px !important;
    color: #B91C1C !important;
    margin-top: 8px !important;
    font-weight: 400 !important;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .verification-card {
        padding: 30px 20px;
    }

    .result-card {
        padding: 25px 20px;
    }

    .result-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .detail-row {
        flex-direction: column;
        gap: 5px;
    }

    .detail-value {
        text-align: left;
    }

    .letterhead-document {
        padding: 30px 20px;
    }

    .letter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .letter-company-info {
        text-align: left;
    }

    .letter-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    body, html {
        background: #FFFFFF !important;
        color: #000000 !important;
    }

    body::before {
        display: none !important;
    }

    .site-header,
    .site-footer,
    .site-progress,
    .bg-orb,
    .verification-section,
    .result-header,
    .verification-message,
    .tabs-container,
    .tab-content:not(#tab-preview),
    .verification-timestamp-row,
    .action-buttons {
        display: none !important;
    }

    .result-section {
        margin: 0 !important;
        padding: 0 !important;
    }

    .result-card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .tab-content#tab-preview {
        display: block !important;
    }

    .letterhead-document {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #FFFFFF !important;
        color: #000000 !important;
    }

    .letter-divider {
        background: #000000 !important;
        height: 1px !important;
    }

    .seal-graphic {
        border-color: #000000 !important;
        color: #000000 !important;
    }

    .certificate-document {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #FFFFFF !important;
        color: #000000 !important;
    }

    .certificate-document::before {
        border-color: #000000 !important;
    }

    .certificate-document::after {
        border-color: rgba(0, 0, 0, 0.15) !important;
    }
}

/* ============================================
   Verification Input Tabs System
   ============================================ */
.verification-tabs {
    display: flex;
    background: rgba(18, 23, 37, 0.04);
    border-radius: var(--radius-xs);
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid var(--line);
}

.v-tab-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--fast);
    text-align: center;
}

.v-tab-btn:hover {
    color: var(--ink);
}

.v-tab-btn.active {
    background-color: var(--surface);
    color: var(--ink);
    box-shadow: 0 4px 12px rgba(18, 23, 37, 0.06);
}

/* ============================================
   Certificate Document Preview Styling
   ============================================ */
.certificate-document {
    background-color: #FFFFFF;
    color: #121725;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    padding: 50px 60px;
    border-radius: var(--radius-xs);
    font-family: "Plus Jakarta Sans", "Georgia", serif;
    position: relative;
    overflow: hidden;
    line-height: 1.6;
    text-align: center;
}

/* Elegant borders */
.certificate-document::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 15px;
    right: 15px;
    border: 2px solid var(--ink);
    pointer-events: none;
}

.certificate-document::after {
    content: '';
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 22px;
    right: 22px;
    border: 1px solid var(--line);
    pointer-events: none;
}

.cert-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-25deg);
    font-size: 60px;
    font-weight: 800;
    color: rgba(18, 23, 37, 0.015);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.cert-content {
    position: relative;
    z-index: 1;
}

.cert-logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.cert-brand-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.cert-header h3 {
    font-family: "Outfit", sans-serif;
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--ink);
    font-weight: 800;
    margin-bottom: 2px;
}

.cert-subtitle {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.cert-title-section {
    margin-bottom: 25px;
}

.cert-title {
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--ink);
    margin-bottom: 10px;
}

.cert-award {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 2px;
}

.cert-recipient-name {
    font-family: "Outfit", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--ink);
    margin: 20px 0;
    border-bottom: 2px solid var(--lime);
    display: inline-block;
    padding-bottom: 8px;
    padding-left: 20px;
    padding-right: 20px;
}

.cert-body {
    font-size: 14px;
    color: #1d2333;
    max-width: 620px;
    margin: 0 auto 35px auto;
}

.cert-body p {
    margin-bottom: 15px;
    text-align: center;
}

.cert-performance-text {
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 40px;
    text-align: left;
}

.cert-meta {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
}

.cert-meta strong {
    color: var(--ink);
}

.cert-signature-section {
    text-align: center;
    font-size: 12px;
}

.cert-signature-section .signature-line {
    width: 160px;
    height: 1px;
    background-color: var(--ink);
    margin: 0 auto 8px auto;
}

.cert-seal .seal-graphic {
    transform: rotate(-5deg);
    border-color: #10B981;
    color: #10B981;
}

@media (max-width: 768px) {
    .certificate-document {
        padding: 30px 20px;
    }
    
    .cert-recipient-name {
        font-size: 24px;
    }
    
    .cert-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .cert-meta {
        text-align: center;
    }
}

/* ============================================
   Image Document Preview Styling
   ============================================ */
.preview-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    padding: 30px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.preview-document-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #E5E7EB;
}

@media print {
    .preview-image-container {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .preview-document-image {
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}


