/* IIJFG Certificate Verification Widget - Stylesheet */

.iijfg-wrap {
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 760px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.iijfg-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.10);
    overflow: hidden;
}

.iijfg-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    padding: 40px 40px 36px;
    text-align: center;
    color: #ffffff;
}

.iijfg-icon { font-size: 48px; line-height: 1; margin-bottom: 12px; }

.iijfg-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff !important;
}

.iijfg-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.70);
    margin: 0 auto;
    max-width: 480px;
}

.iijfg-search-box {
    padding: 36px 40px 32px;
    border-bottom: 1px solid #f0f0f0;
}

.iijfg-label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.iijfg-input-row { display: flex; gap: 10px; }

.iijfg-input {
    flex: 1;
    height: 52px;
    padding: 0 18px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s;
    color: #222;
    background: #fafafa;
    box-sizing: border-box;
}

.iijfg-input:focus { border-color: #0f3460; background: #fff; }
.iijfg-input::placeholder { color: #bbb; }

.iijfg-btn-primary {
    height: 52px;
    padding: 0 28px;
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.iijfg-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.iijfg-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.iijfg-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: iijfg-spin 0.7s linear infinite;
    display: inline-block;
}
@keyframes iijfg-spin { to { transform: rotate(360deg); } }

.iijfg-result-area { padding: 0 40px 32px; }
.iijfg-result-area:empty { padding: 0; }

.iijfg-success-card {
    background: #f8fdf8;
    border: 1.5px solid #c3e6cb;
    border-radius: 12px;
    padding: 28px;
    margin-top: 24px;
    animation: iijfg-fadein 0.3s ease;
}

.iijfg-verified-badge {
    display: inline-block;
    background: #d4edda;
    color: #1d5c2e;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.iijfg-details {
    border-top: 1px solid #d4edda;
    padding-top: 16px;
    margin-bottom: 24px;
}

.iijfg-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eaf5eb;
}
.iijfg-detail-row:last-child { border-bottom: none; }

.iijfg-detail-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 140px;
}

.iijfg-detail-value {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a2e;
    text-align: right;
}

.iijfg-code-chip {
    font-family: 'Courier New', monospace;
    background: #e8edf5;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #0f3460;
    font-weight: 700;
}

.iijfg-action-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.iijfg-action-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.iijfg-download { background: #fff; color: #0f3460; border-color: #FFB606; }
.iijfg-download:hover { background: #fff; color: #0f3460; border-color: #FFB606; }

.iijfg-print { background: #fff; color: #0f3460; border-color: #FFB606; }
.iijfg-print:hover { background: #fff; color: #0f3460; border-color: #FFB606; }

.iijfg-share { background: #fff; color: #0f3460; border-color: #FFB606; }
.iijfg-share:hover { background: #fff; color: #0f3460; border-color: #FFB606; }

.iijfg-error-box {
    background: #fff5f5;
    border: 1.5px solid #f5c6cb;
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 24px;
    animation: iijfg-fadein 0.3s ease;
}

.iijfg-error-box p {
    margin: 0;
    color: #8b1a1a;
    font-size: 15px;
    font-weight: 500;
}

@keyframes iijfg-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
    .iijfg-header { padding: 28px 20px 24px; }
    .iijfg-title  { font-size: 22px; }
    .iijfg-search-box { padding: 24px 20px 20px; }
    .iijfg-result-area { padding: 0 20px 24px; }
    .iijfg-input-row { flex-direction: column; }
    .iijfg-btn-primary { width: 100%; justify-content: center; }
    .iijfg-detail-row { flex-direction: column; gap: 4px; }
    .iijfg-detail-label { min-width: unset; }
    .iijfg-detail-value { text-align: left; }
    .iijfg-action-btn { min-width: unset; }
}
