/**
 * Academic Certificate Verification - Frontend Styles
 */

/* ==========================================================================
   1. Verification Form Card
   ========================================================================== */
.acceve-verification-wrapper {
    max-width: 780px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    box-sizing: border-box;
}

.acceve-verification-wrapper * {
    box-sizing: border-box;
}

.acceve-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 32px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.acceve-form-header {
    text-align: center;
    margin-bottom: 28px;
}

.acceve-form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 50%;
    margin-bottom: 14px;
}

.acceve-form-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.acceve-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.acceve-form-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.acceve-form-fields {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.acceve-input-group {
    flex: 1;
    min-width: 260px;
}

.acceve-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.acceve-required {
    color: #ef4444;
}

.acceve-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.acceve-field-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    pointer-events: none;
}

.acceve-text-input {
    width: 100% !important;
    padding: 12px 14px 12px 40px !important;
    font-size: 15px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    transition: all 0.2s ease;
}

.acceve-text-input:focus {
    outline: none !important;
    border-color: #0ea5e9 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15) !important;
}

.acceve-form-actions {
    text-align: center;
}

.acceve-btn-primary {
    width: 100%;
    padding: 14px 28px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.1s;
}

.acceve-btn-primary:hover {
    background: #1e293b;
}

.acceve-btn-primary:active {
    transform: translateY(1px);
}

.acceve-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: acceve-spin 0.8s linear infinite;
}

@keyframes acceve-spin {
    to { transform: rotate(360deg); }
}

.acceve-form-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

/* Alerts */
.acceve-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.acceve-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.acceve-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ==========================================================================
   2. Verification Result Card
   ========================================================================== */
.acceve-result-wrapper {
    margin-top: 28px;
    animation: acceve-fadeIn 0.3s ease-in-out;
}

@keyframes acceve-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.acceve-result-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

/* Status Banner Variations */
.acceve-badge-banner {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.acceve-status-active .acceve-badge-banner {
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: #ffffff;
}

.acceve-status-expired .acceve-badge-banner {
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #ffffff;
}

.acceve-status-revoked .acceve-badge-banner {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #ffffff;
}

.acceve-status-inactive .acceve-badge-banner {
    background: linear-gradient(135deg, #475569, #64748b);
    color: #ffffff;
}

.acceve-badge-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acceve-badge-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
}

.acceve-badge-info {
    flex: 1;
    min-width: 220px;
}

.acceve-badge-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 0 0 2px;
    color: #ffffff;
}

.acceve-badge-desc {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.acceve-timestamp {
    font-size: 12px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Result Body */
.acceve-result-body {
    padding: 28px 24px;
}

.acceve-recipient-headline {
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.acceve-label-tiny {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
}

.acceve-recipient-name {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.acceve-credential-title {
    font-size: 16px;
    font-weight: 600;
    color: #0284c7;
}

.acceve-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.acceve-detail-item {
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.acceve-detail-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.acceve-detail-val {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

.acceve-detail-val code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #0f172a;
}

/* Custom Metadata Chips */
.acceve-custom-metadata-section {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.acceve-section-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
}

.acceve-custom-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acceve-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 12px;
    color: #334155;
}

.acceve-chip-label {
    font-weight: 600;
    color: #0f172a;
}

/* Security Bar in Result */
.acceve-result-security-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 16px;
}

.acceve-result-qr {
    display: flex;
    align-items: center;
    gap: 12px;
}

.acceve-qr-microtext {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.acceve-result-barcode {
    display: flex;
    align-items: center;
}

/* Actions & Social Toolbar */
.acceve-result-actions-toolbar {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.acceve-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.acceve-btn-print {
    background: #0284c7;
    color: #ffffff !important;
}

.acceve-btn-print:hover {
    background: #0369a1;
}

.acceve-social-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.acceve-share-caption {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-right: 4px;
}

.acceve-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    color: #ffffff !important;
}

.acceve-social-btn:hover {
    opacity: 0.88;
}

.acceve-linkedin { background: #0a66c2; }
.acceve-twitter  { background: #0f1419; }
.acceve-facebook { background: #1877f2; }
.acceve-whatsapp { background: #25d366; }
.acceve-copy-btn { background: #475569; color: #ffffff; }

/* ==========================================================================
   3. Certificate Visual Template Frame
   ========================================================================== */
.acceve-certificate-frame {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
    font-family: 'Cinzel', Georgia, serif;
    color: #0f172a;
    background: #ffffff;
}

.acceve-cert-inner-border {
    position: relative;
    border: 3px double #c59b27;
    padding: 36px 32px 28px;
    text-align: center;
    border-radius: 2px;
}

.acceve-border-gold-ornate .acceve-cert-inner-border {
    border: 4px double #c59b27;
    outline: 1px solid #e2c068;
    outline-offset: -10px;
}

.acceve-border-solid-accent .acceve-cert-inner-border {
    border: 5px solid #0f172a;
    outline: 2px solid #c59b27;
    outline-offset: -8px;
}

.acceve-cert-institution {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
}

.acceve-cert-department {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

.acceve-cert-main-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin: 24px 0 8px;
    text-transform: uppercase;
}

.acceve-cert-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    color: #475569;
    margin-bottom: 12px;
}

.acceve-cert-recipient {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    padding: 6px 30px 10px;
    display: inline-block;
    border-bottom: 2px solid #c59b27;
    margin-bottom: 16px;
}

.acceve-cert-statement {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #475569;
    max-width: 650px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.acceve-cert-course {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.acceve-cert-grade {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #334155;
    margin-bottom: 16px;
}

.acceve-cert-meta-tags {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.acceve-meta-chip {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.04);
    padding: 3px 8px;
    border-radius: 4px;
    color: #334155;
}

/* Footer of Certificate: Signatures & Seal */
.acceve-cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 30px;
    padding: 0 20px;
}

.acceve-sig-block {
    width: 200px;
    text-align: center;
}

.acceve-sig-img {
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 4px;
}

.acceve-sig-line {
    width: 140px;
    height: 1px;
    background: #0f172a;
    margin: 0 auto 8px;
}

.acceve-sig-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.acceve-sig-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #64748b;
}

.acceve-seal-block {
    text-align: center;
}

.acceve-gold-seal-badge {
    width: 70px;
    height: 70px;
    margin: 0 auto 6px;
    border: 3px double #c59b27;
    border-radius: 50%;
    background: radial-gradient(circle, #fff9e6 20%, #f7e6b5 90%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(197, 155, 39, 0.3);
}

.acceve-seal-star {
    font-size: 14px;
    color: #c59b27;
    line-height: 1;
}

.acceve-seal-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 7px;
    font-weight: 800;
    color: #855e11;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-align: center;
}

.acceve-issue-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    color: #475569;
}

/* Certificate Security Bar */
.acceve-cert-security-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px dashed #cbd5e1;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
}

.acceve-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.acceve-qr-caption {
    font-size: 9px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.acceve-security-text {
    text-align: left;
    color: #334155;
    line-height: 1.5;
}

.acceve-verify-link-text {
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ==========================================================================
   4. Directory Table & Search Filter
   ========================================================================== */
.acceve-directory-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
}

.acceve-directory-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
}

.acceve-directory-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
}

.acceve-filter-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.acceve-filter-inputs {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.acceve-filter-field {
    flex: 1;
    min-width: 180px;
}

.acceve-filter-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.acceve-filter-field select,
.acceve-filter-field input {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    background: #ffffff !important;
}

.acceve-filter-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acceve-btn-filter {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.acceve-btn-reset {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 12px;
}

.acceve-btn-reset:hover {
    color: #0f172a;
}

.acceve-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow-x: auto;
}

.acceve-directory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.acceve-directory-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.acceve-directory-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.acceve-table-student {
    font-weight: 600;
    color: #0f172a;
}

.acceve-table-sub {
    font-size: 12px;
    color: #64748b;
}

.acceve-table-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.acceve-badge-active   { background: #dcfce7; color: #15803d; }
.acceve-badge-expired  { background: #fef3c7; color: #b45309; }
.acceve-badge-revoked  { background: #fee2e2; color: #b91c1c; }
.acceve-badge-inactive { background: #f1f5f9; color: #475569; }

.acceve-table-verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #0284c7;
    color: #ffffff !important;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

.acceve-table-verify-btn:hover {
    background: #0369a1;
}

.acceve-pagination {
    margin-top: 20px;
    text-align: center;
}

.acceve-pagination .page-numbers {
    padding: 6px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-decoration: none;
    margin: 0 2px;
    color: #334155;
}

.acceve-pagination .page-numbers.current {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* ==========================================================================
   5. Official AMP Maritime Certificate Verification Result Extensions
   ========================================================================== */
.acceve-section-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.acceve-section-main-title {
    font-size: 14px;
    font-weight: 700;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #e0f2fe;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acceve-inst-header-flex {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.acceve-inst-logo-wrap {
    flex-shrink: 0;
}

.acceve-inst-logo {
    max-height: 80px;
    max-width: 220px;
    object-fit: contain;
    border-radius: 4px;
}

.acceve-inst-name-big {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.acceve-inst-data-lines {
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
}

.acceve-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.acceve-grid-card {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    padding: 10px 14px;
}

.acceve-card-highlight {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.acceve-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 3px;
}

.acceve-value {
    font-size: 13px;
    color: #1e293b;
    word-break: break-word;
}

.acceve-value-highlight {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.acceve-value-code code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #0f172a;
    font-family: monospace;
}

.acceve-course-name-banner {
    background: #f0f9ff;
    border-left: 4px solid #0284c7;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.acceve-course-title {
    font-size: 18px;
    font-weight: 800;
    color: #0369a1;
    margin: 4px 0 0;
    line-height: 1.3;
}

.acceve-normative-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
}

.acceve-doc-control-box {
    background: #fdfdfd;
    border: 1px dashed #cbd5e1;
}

.acceve-doc-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    font-size: 12px;
    color: #475569;
}
