/* Certificate Verification System Styles */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Great+Vibes&family=Roboto:wght@300;400;500;700&display=swap');

/* =========================================
   1. FRONTEND VERIFICATION CARD (Screen View)
========================================= */

.tcvs-print-view {
    display: none !important;
}

.tcvs-screen-view {
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e1e5e9;
    font-family: 'Roboto', sans-serif;
}

.tcvs-verified-header {
    background: #27ae60;
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tcvs-student-profile {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.tcvs-profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid #f8f9fa;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.tcvs-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tcvs-student-name {
    margin: 10px 0 5px;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.tcvs-reg-badge {
    background: #e3f2fd;
    color: #1565c0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.tcvs-details-list {
    padding: 20px 40px;
}

.tcvs-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 15px;
}

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

.tcvs-label {
    color: #666;
    font-weight: 500;
}

.tcvs-value {
    color: #333;
    font-weight: 600;
    text-align: right;
}

.tcvs-actions {
    padding: 25px 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafafa;
}

.tcvs-btn-print {
    background: #1a3c5e;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.tcvs-btn-print:hover {
    background: #132f4a;
}

.tcvs-btn-back {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.tcvs-btn-back:hover {
    background: #f1f1f1;
    border-color: #ccc;
}

/* =========================================
   2. PRINT LAYOUT (Certificate Design)
========================================= */
.cert-page {
    width: 297mm;
    height: 210mm;
    padding: 10mm;
    box-sizing: border-box;
    background: white;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cert-border {
    width: 100%;
    height: 100%;
    border: 4px double #1a3c5e;
    position: relative;
    box-sizing: border-box;
    padding: 5px;
}

.cert-content {
    width: 100%;
    height: 100%;
    border: 2px solid #daa520;
    background-color: #fff;
    background-image: radial-gradient(#f0f0f0 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cert-header { margin-top: 25px; margin-bottom: 10px; z-index: 1; }
.cert-logo { height: 60px; margin: 0 auto 5px; display: block; }
.cert-inst-name { font-family: 'Cinzel', serif; font-size: 24pt; color: #1a3c5e; font-weight: bold; text-transform: uppercase; margin: 0; line-height: 1.2; padding: 0 100px; }
.cert-inst-addr { font-size: 10pt; color: #555; margin-top: 5px; font-family: 'Roboto', sans-serif; }

.cert-print-photo {
    position: absolute;
    top: 65mm; 
    right: 25mm; 
    width: 35mm;
    height: 45mm;
    border: 2px solid #daa520;
    padding: 3px;
    background: white;
    z-index: 10;
}
.cert-print-photo img { width: 100%; height: 100%; object-fit: cover; }

.cert-title-block { margin-top: 10px; margin-bottom: 10px; }
.cert-main-title { font-family: 'Great Vibes', cursive; font-size: 48pt; color: #daa520; margin: 0; line-height: 1; }
.cert-subtitle { font-size: 11pt; text-transform: uppercase; letter-spacing: 3px; margin-top: 5px; color: #333; }

.cert-student-info { margin-top: 10px; position: relative; z-index: 5; }
.cert-student-name-print {
    font-family: 'Cinzel', serif;
    font-size: 28pt;
    color: #000;
    font-weight: bold;
    margin: 10px auto;
    border-bottom: 1px solid #ccc;
    display: inline-block;
    min-width: 400px;
    max-width: 60%;
    padding-bottom: 5px;
}
.cert-info-text { font-size: 13pt; line-height: 1.5; margin: 10px 0; font-style: italic; color: #444; }
.cert-course-name { font-size: 22pt; font-weight: bold; color: #1a3c5e; text-transform: uppercase; margin: 10px 0; }

.cert-details-box { display: flex; justify-content: center; gap: 50px; margin-top: 20px; }
.cert-detail-item { text-align: center; }
.cert-detail-item span { display: block; font-size: 9pt; text-transform: uppercase; color: #777; }
.cert-detail-item strong { display: block; font-size: 13pt; color: #333; border-bottom: 1px dashed #999; min-width: 100px; }

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: absolute;
    bottom: 35px;
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
}
.cert-sig-area { width: 200px; text-align: center; }
.cert-sig-img { height: 50px; display: block; margin: 0 auto; }
.cert-sig-line { border-top: 1px solid #000; padding-top: 5px; font-weight: bold; font-size: 10pt; text-transform: uppercase; color: #333; }