/* certificate-verification.css */
.certificate-modern {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.certificate-modern .certificate-border {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.certificate-modern .watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    z-index: 1;
}

.certificate-modern .watermark img {
    width: 800px;
    height: auto;
}

.certificate-modern .modern-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.certificate-modern .logo-area {
    flex: 0 0 150px;
    margin-right: 30px;
}

.certificate-modern .institution-logo {
    max-width: 150px;
    height: auto;
}

.certificate-modern .certificate-title {
    font-size: 42px;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 300;
}

.certificate-modern .institution-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.certificate-modern .modern-body {
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 60px 0;
}

.certificate-modern .presented-to {
    font-size: 16px;
    color: #95a5a6;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.certificate-modern .student-name {
    font-size: 48px;
    color: #2c3e50;
    margin: 20px 0;
    font-weight: 400;
    padding: 20px 0;
    border-top: 2px solid #ecf0f1;
    border-bottom: 2px solid #ecf0f1;
}

.certificate-modern .achievement-text h3 {
    font-size: 24px;
    color: #3498db;
    margin: 20px 0 10px 0;
}

.certificate-modern .course-details {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.certificate-modern .description {
    margin-top: 40px;
    font-style: italic;
    color: #95a5a6;
    line-height: 1.6;
}

.certificate-modern .modern-footer {
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.certificate-modern .signatures {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.certificate-modern .signature-block,
.certificate-modern .date-block {
    flex: 1;
    text-align: center;
}

.certificate-modern .signature-line {
    width: 200px;
    height: 1px;
    background: #2c3e50;
    margin: 30px auto 10px;
}

.certificate-modern .signatory-name {
    font-weight: bold;
    margin: 5px 0;
}

.certificate-modern .signatory-title {
    color: #7f8c8d;
    font-size: 14px;
}

.certificate-modern .issue-date {
    font-size: 18px;
    font-weight: bold;
    margin: 30px 0 5px;
}

.certificate-modern .certificate-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    /*border-top: 1px solid #ecf0f1;*/
    font-size: 14px;
}

/* Minimal template styles */
.certificate-minimal {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
}

.certificate-minimal .minimal-certificate {
    text-align: center;
    padding: 50px;
    border: 1px solid #e0e0e0;
}

.certificate-minimal .minimal-header h2 {
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 20px 0;
}

.certificate-minimal .minimal-header h1 {
    font-size: 36px;
    font-weight: 300;
    margin: 0 0 50px 0;
    color: #333;
}

.certificate-minimal .minimal-name {
    font-size: 36px;
    font-weight: 300;
    margin: 20px 0;
    color: #333;
}

.certificate-minimal .course-info {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    margin: 30px 0;
}

.certificate-minimal .minimal-footer {
    margin-top: 60px;
}

.certificate-minimal .minimal-signature {
    display: inline-block;
    text-align: center;
}

.certificate-minimal .signature-line {
    width: 150px;
    height: 1px;
    background: #333;
    margin: 10px auto;
}

.certificate-minimal .minimal-id {
    margin-top: 40px;
    font-family: monospace;
    font-size: 12px;
    color: #999;
}

/* Certificate actions */
.certificate-actions {
    margin-top: 30px;
    text-align: center;
}

.certificate-actions .button {
    margin: 0 10px;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.certificate-actions .button:hover {
    background: #2980b9;
}

/* Print styles */
@media print {
    .certificate-actions {
        display: none;
    }

    .certificate-modern {
        padding: 0;
        background: none;
    }

    .certificate-modern .certificate-border {
        box-shadow: none;
        border-radius: 0;
    }
}


/*Custom certificate template start*/

.certificate-custom {
    text-align: center;
    padding: 20px;
}

.certificate-canvas {
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.certificate-element {
    position: absolute;
}

.certificate-text, .certificate-field {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.certificate-image img {
    max-width: 100%;
    height: auto;
}

.certificate-line {
    background-color: #000;
}

.certificate-rectangle {
    border: 1px solid #000;
}

/* Responsive scaling */
@media (max-width: 768px) {
    .certificate-canvas {
        transform: scale(0.8);
        transform-origin: center top;
    }
}

@media (max-width: 480px) {
    .certificate-canvas {
        transform: scale(0.6);
        transform-origin: center top;
    }
}