/* NHC Certificates Manager - Public Styles - Balanced & Professional V5 */

:root {
    --nhc-navy: #003366;
    --nhc-navy-light: #004488;
    --nhc-white: #ffffff;
    --nhc-border: #e2e8f0;
    --nhc-bg: #f8fafc;
    --nhc-error-bg: #fff5f5;
    --nhc-error-text: #c53030;
    --nhc-error-border: #feb2b2;
    --nhc-radius: 12px;
    --nhc-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nhc-modern-container {
    max-width: 650px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.nhc-search-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: var(--nhc-shadow);
    text-align: center;
    border: 1px solid var(--nhc-border);
}

.nhc-title-minimal {
    font-size: 26px;
    color: var(--nhc-navy);
    margin: 0 0 8px 0;
    font-weight: 800;
}

.nhc-subtitle-minimal {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 30px;
}

.nhc-input-wrapper {
    display: flex;
    gap: 10px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s;
}

.nhc-input-wrapper:focus-within {
    border-color: var(--nhc-navy);
    background: #fff;
}

#nhc-certificate-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 16px;
    outline: none;
    color: #1e293b;
    font-weight: 600;
}

.nhc-submit-minimal {
    background: var(--nhc-navy);
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px; /* Reduced font size */
    cursor: pointer;
    transition: background 0.2s;
    min-height: 45px; /* Balanced height */
    min-width: 120px;
}

.nhc-submit-minimal:hover {
    background: var(--nhc-navy-light);
}

/* Alert Box */
.nhc-msg-minimal.error {
    margin-top: 20px;
    padding: 15px 20px;
    background: var(--nhc-error-bg);
    color: var(--nhc-error-text);
    border: 1px solid var(--nhc-error-border);
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.nhc-msg-minimal.error::before {
    content: "\f158";
    font-family: dashicons;
    font-size: 20px;
    background: #fff;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #e53e3e;
}

/* Result Card */
.nhc-result-minimal {
    margin-top: 30px;
}

.nhc-result-card-minimal {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--nhc-shadow);
    border: 1px solid var(--nhc-border);
}

.nhc-result-image-box {
    position: relative;
    cursor: zoom-in;
    background: #f8fafc;
    line-height: 0;
}

.nhc-result-image-box img {
    width: 100%;
    height: auto;
}

/* Result Info Section */
.nhc-result-info {
    padding: 15px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--nhc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nhc-info-label {
    font-weight: 700;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
}

.nhc-info-value {
    font-weight: 800;
    color: var(--nhc-navy);
    font-size: 18px;
}

/* Result Footer */
.nhc-result-footer-minimal {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.nhc-download-btn-minimal {
    background: var(--nhc-navy);
    color: #fff;
    text-decoration: none;
    padding: 12px 35px; /* Reduced padding */
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px; /* Reduced font size */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    width: auto; /* Not full width by default */
    min-width: 200px;
    justify-content: center;
}

.nhc-download-btn-minimal:hover {
    background: var(--nhc-navy-light);
    transform: translateY(-2px);
}

.nhc-reset-btn-minimal {
    background: transparent;
    border: none;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

/* Lightbox */
.nhc-lightbox {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 20, 40, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nhc-lightbox-content {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
}

/* Mobile Adjustments - Professional & Balanced */
@media (max-width: 600px) {
    .nhc-modern-container {
        margin: 20px auto;
    }
    .nhc-search-card {
        padding: 30px 20px;
    }
    .nhc-title-minimal {
        font-size: 22px;
    }
    .nhc-subtitle-minimal {
        font-size: 14px;
    }
    .nhc-input-wrapper {
        flex-direction: column;
        padding: 10px;
        gap: 12px;
    }
    #nhc-certificate-search-input {
        padding: 12px;
        font-size: 16px !important; /* Balanced font size */
        text-align: center;
        background: #fff;
        border-radius: 10px;
        border: 1px solid #e2e8f0;
    }
    .nhc-submit-minimal {
        padding: 12px;
        font-size: 15px;
        border-radius: 10px;
        width: 100%;
        min-height: 48px;
    }
    .nhc-download-btn-minimal {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }
}
