/*
 * Front‑end styles for the AKB Certificate Verification plugin.
 * The form is responsive, with fields taking full width on small screens and a maximum width on larger screens.
 */
.akb-certificate-search-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.akb-certificate-search-form .akb-field-group {
    margin-bottom: 1rem;
}

.akb-certificate-search-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.akb-certificate-search-form select,
.akb-certificate-search-form input[type="text"],
.akb-certificate-search-form input[type="submit"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.akb-certificate-search-form input[type="submit"] {
    background-color: #007cba;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    border: none;
    transition: background-color 0.3s ease;
}

.akb-certificate-search-form input[type="submit"]:hover {
    background-color: #006ba1;
}

/* Result section */
.akb-search-result {
    margin-top: 2rem;
    text-align: center;
}

.akb-certificate-display img,
.akb-certificate-display embed {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.akb-actions {
    margin-top: 1rem;
}

.akb-actions a.akb-download-button,
.akb-actions button.akb-print-button {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.akb-actions button.akb-print-button {
    background-color: #28a745;
}

.akb-actions a.akb-download-button:hover {
    background-color: #006ba1;
}

.akb-actions button.akb-print-button:hover {
    background-color: #218838;
}

.akb-no-result {
    color: #a00;
    font-weight: 600;
}

.akb-credit {
    margin-top: 2rem;
    font-size: 0.85rem;
    text-align: center;
    color: #666;
}