/* --- Certificate View --- */
.ci-certificate-wrapper {
    margin: 20px auto;
    max-width: 1000px;
}

.ci-certificate-container {
    width: 1000px; /* Adjust based on your background image aspect ratio */
    height: 707px; /* A4-like aspect ratio */
    position: relative;
    background-size: cover;
    background-position: center;
    border: 1px solid #ccc;
    font-family: 'Times New Roman', serif;
}

.ci-cert-content {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}

/* IMPORTANT: Adjust top/left/font-size to match your background image layout */
.ci-cert-line {
    position: absolute;
    width: 100%;
    left: 0;
}

.ci-user-name {
    top: 320px; /* Example value */
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.ci-course-title {
    top: 430px; /* Ajust value */
    font-size: 28px;
    color: #555;
}

.ci-issue-date {
    top: 550px; /* Adjust vertical position as needed */
    font-size: 18px;
    color: #444;
    text-align: left;
    left: 50px; /* This controls how far from the left edge it starts */
    width: auto;
}

.ci-cert-id {
    bottom: 20px; /* Example value */
    left: 0;
    font-size: 12px;
    color: #777;
}

.ci-action-buttons {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.ci-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.ci-btn:hover {
    background: #005a87;
    color: #fff;
}

.ci-btn:disabled {
    background: #88b5cb;
    cursor: not-allowed;
}

/* Hide action buttons when printing directly via browser */
@media print {
    body * {
        visibility: hidden;
    }
    .ci-certificate-container, .ci-certificate-container * {
        visibility: visible;
    }
    .ci-certificate-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        border: none;
    }
    .ci-action-buttons {
        display: none;
    }
}

/* --- Forms & Lists --- */
.ci-verification-form {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
}

.ci-verification-form input[type="text"] {
    width: 70%;
    padding: 8px;
    margin-right: 10px;
}

.ci-verification-form button {
    padding: 8px 15px;
}

.ci-error {
    color: red;
    font-weight: bold;
}

ul.ci-my-certificates {
    list-style: none;
    padding: 0;
}

ul.ci-my-certificates li {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

ul.ci-my-certificates li span {
    color: #666;
}

.ci-view-button {
    text-decoration: none;
    background: #2271b1;
    color: #fff;
    padding: 8px 12px;
    border-radius: 3px;
    font-size: 14px;
}