/* Styling for the frontend search bar */
#certificate-verification {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#certificate-verification label {
    display: block;
    margin-bottom: 10px;
}

#certificate-verification form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align form contents */
}

#certificate-verification input[type="text"],
#certificate-verification input[type="date"] {
    width: calc(100% - 40px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#certificate-verification input[type="submit"] {
    width: auto;
    padding: 8px 15px; /* Adjusted padding for smaller button */
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#certificate-verification input[type="submit"]:hover {
    background-color: #0056b3;
}

.text {
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
}

/* Styling for the certificate details table */
.certificate-details-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.certificate-details-table th,
.certificate-details-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.certificate-details-table th {
    background-color: #007bff;
    color: #fff;
}

.certificate-details-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.certificate-details-table tbody tr:hover {
    background-color: #f5f5f5;
}

.certificate-details-table td:last-child {
    text-align: center;
}

.certificate-details-table a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.certificate-details-table a:hover {
    background-color: #0056b3;
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
    .certificate-details-table {
        overflow-x: auto;
    }
    .certificate-details-table th,
    .certificate-details-table td {
        white-space: wrap;
    }
}

@media screen and (max-width: 576px) {
    .certificate-details-table th,
    .certificate-details-table td {
        display: block;
        text-align: left;
    }
    .certificate-details-table th {
        text-align: left;
    }
    .certificate-details-table td {
        border: none;
        padding: 1px;
    }
}

@media screen and (max-width: 576px) {
    #certificate-verification input[type="text"],
    #certificate-verification input[type="date"],
    #certificate-verification input[type="submit"] {
        width: calc(100% - 40px);
    }
}

/* Social media share buttons */
.social-share-buttons {
    text-align: center;
    margin-top: 20px;
}

.social-share-buttons a {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 20px;
    text-decoration: none;
    color: #0056b3;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.social-share-buttons a:hover {
    background-color: #0056b3;
    color: #fff;
}