/* Docs Verification & Authentication - Public Styles */
.dvap-wrap {
    max-width: 680px;
    margin: 30px auto;
    font-family: Arial, sans-serif;
}

.dvap-wrap h2 {
    color: #003366;
    border-bottom: 3px solid #003366;
    padding-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
}

.dvap-form {
    margin: 20px 0;
}

.dvap-field-row {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8f9fa;
    padding: 20px 24px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dvap-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #ffffff;
    color: #1a202c;
}

.dvap-input:focus {
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.15);
}

.dvap-input::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

.dvap-btn {
    padding: 12px 28px;
    background: #003366;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    white-space: nowrap;
}

.dvap-btn:hover {
    background: #00509e;
}

.dvap-btn:active {
    transform: scale(0.97);
}

.dvap-btn-download {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 22px;
    background: #28a745;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.dvap-btn-download:hover {
    background: #218838;
    color: #fff;
}

/* ===================================================
   Result Box - Card Layout
   =================================================== */
.dvap-result {
    margin-top: 28px;
    padding: 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 2px solid #28a745;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dvap-success {
    border-color: #28a745;
}

.dvap-error {
    border-color: #dc3545;
    background: #fff5f5;
    padding: 16px 20px;
    font-weight: 600;
    color: #721c24;
}

/* Status Badge - Top Right Corner */
.dvap-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.dvap-badge-active {
    background: #28a745;
    color: #fff;
}

.dvap-badge-intern {
    background: #007bff;
    color: #fff;
}

.dvap-badge-former-employee {
    background: #6c757d;
    color: #fff;
}

.dvap-badge-invalid {
    background: #dc3545;
    color: #fff;
}

/* Result Inner Content */
.dvap-result-content {
    padding: 24px 28px 28px;
}

.dvap-result-header {
    margin-bottom: 18px;
}

.dvap-result-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 4px 0;
}

.dvap-result-header .dvap-status-text {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
}

.dvap-status-valid {
    color: #28a745;
}

.dvap-status-revoked {
    color: #dc3545;
}

.dvap-result-category {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.dvap-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}

.dvap-table th,
.dvap-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 14px;
}

.dvap-table th {
    width: 40%;
    color: #4b5563;
    font-weight: 600;
    background: #f9fafb;
    border-radius: 4px;
}

.dvap-table td {
    color: #1a202c;
    font-weight: 500;
}

.dvap-table tr:last-child th,
.dvap-table tr:last-child td {
    border-bottom: none;
}

.dvap-verified-stamp {
    margin-top: 20px;
    text-align: center;
    color: #28a745;
    font-size: 18px;
    font-weight: 700;
    border: 3px solid #28a745;
    border-radius: 8px;
    padding: 10px;
    display: inline-block;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #f0fff4;
}

.dvap-qr-wrap {
    margin-top: 20px;
    text-align: center;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.dvap-qr-wrap img {
    display: block;
    margin: 0 auto 8px;
    border-radius: 4px;
}

.dvap-qr-wrap small {
    color: #6b7280;
    font-size: 12px;
}

/* ===================================================
   Employee Photo
   =================================================== */
.dvap-photo-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.dvap-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #003366;
}

/* ===================================================
   Multi-field search layout
   =================================================== */
.dvap-search-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.dvap-search-field-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dvap-search-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.dvap-search-hint {
    font-size: 12px;
    color: #888;
    margin: 0;
    font-style: italic;
}

.dvap-btn-search {
    margin-top: 4px;
    align-self: flex-start;
}

/* ===================================================
   Settings page — search option checkboxes
   =================================================== */
.dvap-search-opt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
}

.dvap-search-opt:hover {
    background: #eef3ff;
    border-color: #b3c9f5;
}

.dvap-search-opt input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

.dvap-search-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dvap-search-label strong {
    font-size: 13px;
    color: #1a202c;
}

.dvap-search-label small {
    font-size: 12px;
    color: #718096;
}

/* ===================================================
   Document status badges
   =================================================== */
.dvap-status-valid {
    color: #28a745;
    font-weight: 700;
}

.dvap-status-revoked {
    color: #dc3545;
    font-weight: 700;
}

.dvap-qr-img {
    display: block;
}

/* ===================================================
   Responsive
   =================================================== */
@media (max-width: 600px) {
    .dvap-wrap {
        padding: 0 16px;
    }

    .dvap-field-row {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .dvap-input {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
    }

    .dvap-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 16px;
    }

    .dvap-result-content {
        padding: 16px 18px 20px;
    }

    .dvap-badge {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
    }

    .dvap-table th,
    .dvap-table td {
        padding: 8px 10px;
        font-size: 13px;
        display: block;
        border-bottom: none;
    }

    .dvap-table tr {
        display: block;
        border-bottom: 1px solid #f0f0f0;
        padding: 6px 0;
    }

    .dvap-table th {
        width: 100%;
        background: transparent;
        font-weight: 600;
        padding-bottom: 2px;
    }

    .dvap-table td {
        padding-top: 0;
        padding-bottom: 4px;
    }

    .dvap-table tr:last-child {
        border-bottom: none;
    }
}