/* Certificate Styles for BlockU Akademi Digital */

.certificate-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 2px solid #2c3e50;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: 'Arial', sans-serif;
}

.certificate-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 20px;
}

.certificate-logo {
    max-width: 200px;
    margin: 0 auto 15px;
    display: block;
}

.certificate-title {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.certificate-subtitle {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 5px;
}

.certificate-body {
    padding: 20px;
    position: relative;
}

.certificate-statement {
    text-align: center;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.certificate-name {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.certificate-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.certificate-detail {
    margin-bottom: 10px;
}

.detail-label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.detail-value {
    color: #34495e;
}

.certificate-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.certificate-date {
    margin-bottom: 15px;
    font-style: italic;
}

.certificate-signatures {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.signature-image-container {
    height: 60px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-image {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
    object-position: center;
}

.signature {
    text-align: center;
    width: 200px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.signature-line {
    width: 100%;
    height: 1px;
    background-color: #2c3e50;
    margin-bottom: 10px;
}

.signature-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.signature-title {
    font-size: 14px;
    color: #7f8c8d;
}

.certificate-verification {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
}

.certificate-qr {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-blockchain {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.blockchain-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.blockchain-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.blockchain-detail {
    display: flex;
    align-items: center;
}

.blockchain-label {
    font-weight: bold;
    width: 150px;
    color: #2c3e50;
}

.blockchain-value {
    flex: 1;
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
}

.blockchain-link {
    color: #3498db;
    text-decoration: none;
}

.blockchain-link:hover {
    text-decoration: underline;
}

.wallet-section {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.connect-wallet-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.connect-wallet-btn:hover {
    background-color: #2980b9;
}

.connect-wallet-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.wallet-status {
    font-size: 12px;
    margin-top: 5px;
}

.wallet-status.connected {
    color: #27ae60;
}

.wallet-status.disconnected {
    color: #7f8c8d;
}

.wallet-status.error {
    color: #e74c3c;
}

.mint-nft-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.mint-nft-btn:hover {
    background-color: #27ae60;
}

.mint-nft-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.minting-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.minting-status.pending {
    background-color: #f39c12;
    color: white;
}

.minting-status.success {
    background-color: #2ecc71;
    color: white;
}

.minting-status.error {
    background-color: #e74c3c;
    color: white;
}

/* Responsive styles */
@media (max-width: 768px) {
    .certificate-details {
        grid-template-columns: 1fr;
    }
    
    .certificate-signatures {
        flex-direction: column;
        align-items: center;
    }
    
    .signature {
        margin-bottom: 20px;
    }
    
    .wallet-section {
        position: static;
        margin-bottom: 20px;
        align-items: center;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
    }
    
    .certificate-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .wallet-section,
    .mint-nft-btn,
    .minting-status {
        display: none;
    }
}


/* MODIFIED 2026-10-09: teks Verify URL tidak boleh keluar layar di HP */
.certificate-verification { word-break: break-all; overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; }
.certificate-footer { max-width: 100%; box-sizing: border-box; }
