/**
 * Certificate Admin Styles
 * 
 * Styles for the certificate management pages.
 */

/* Certificate preview container */
.hvac-certificate-preview {
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.hvac-certificate-preview img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Certificate settings form */
.hvac-certificate-settings {
    max-width: 800px;
    margin-bottom: 30px;
}

.hvac-certificate-settings .form-table th {
    width: 200px;
}

.hvac-certificate-settings .color-picker {
    width: 80px;
}

.hvac-certificate-placeholder-list {
    background: #f5f5f5;
    padding: 10px 15px;
    border-left: 4px solid #0074be;
    margin-bottom: 20px;
}

.hvac-certificate-placeholder-list code {
    margin-right: 10px;
    background: #fff;
    padding: 2px 4px;
}

/* Certificate generation button */
.hvac-generate-certificate-btn {
    background-color: #0074be;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
}

.hvac-generate-certificate-btn:hover {
    background-color: #005fa0;
}

/* Certificate statistics */
.hvac-certificate-stats {
    display: flex;
    margin-bottom: 20px;
}

.hvac-certificate-stat-box {
    flex: 1;
    padding: 15px;
    margin-right: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-left: 5px solid;
    text-align: center;
}

.hvac-certificate-stat-box:last-child {
    margin-right: 0;
}

.hvac-certificate-stat-box.active {
    border-left-color: #46b450;
}

.hvac-certificate-stat-box.revoked {
    border-left-color: #dc3232;
}

.hvac-certificate-stat-box.total {
    border-left-color: #0074be;
}

.hvac-certificate-stat-box h3 {
    margin-top: 0;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
}

.hvac-certificate-stat-box .stat-number {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

/* Certificate table */
.hvac-certificates-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.hvac-certificates-table th,
.hvac-certificates-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.hvac-certificates-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.hvac-certificates-table tr:hover {
    background-color: #f9f9f9;
}

.hvac-certificates-table .status-active,
.hvac-certificates-table .status-revoked {
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.hvac-certificates-table .status-active {
    background-color: #e7f9e7;
    color: #46b450;
}

.hvac-certificates-table .status-revoked {
    background-color: #f9e7e7;
    color: #dc3232;
}

.hvac-certificates-table .certificate-actions a {
    margin-right: 10px;
}

/* Media Queries */
@media (max-width: 768px) {
    .hvac-certificate-stats {
        flex-direction: column;
    }
    
    .hvac-certificate-stat-box {
        margin-right: 0;
        margin-bottom: 15px;
    }
}