/* Proof Document Verifier - Frontend Styles */

/* Container */
.pdv-form-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Form Sections */
.pdv-form-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.pdv-status-section {
    background: #f9fafb;
}

/* Typography */
.pdv-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.pdv-status-title {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 10px 0;
}

.pdv-form-description {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

/* Form Groups */
.pdv-form-group {
    margin-bottom: 25px;
}

.pdv-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

/* Input Fields */
.pdv-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #111827;
    background: #ffffff;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.pdv-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pdv-input::placeholder {
    color: #9ca3af;
}

/* Select Dropdown */
.pdv-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.pdv-required {
    color: #dc2626;
    margin-left: 4px;
}

.pdv-field-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0 0 0;
    font-style: italic;
}

/* File Upload Styling */
.pdv-file-upload-wrapper {
    position: relative;
}

.pdv-file-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

.pdv-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 20px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 120px;
}

.pdv-file-label:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

.pdv-file-label:active {
    transform: scale(0.98);
}

.pdv-file-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.7;
}

.pdv-file-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.pdv-file-name {
    font-size: 14px;
    color: #3b82f6;
    font-weight: 500;
    margin-top: 8px;
    word-break: break-all;
    max-width: 100%;
}

.pdv-file-input:focus + .pdv-file-label {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pdv-file-input:valid + .pdv-file-label .pdv-file-text {
    color: #3b82f6;
}

.pdv-file-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 10px 0 0 0;
    text-align: center;
}

/* Buttons */
.pdv-submit-btn,
.pdv-status-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    margin-top: 10px;
}

.pdv-submit-btn:hover,
.pdv-status-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.pdv-submit-btn:active,
.pdv-status-btn:active {
    transform: translateY(0);
}

.pdv-submit-btn:disabled,
.pdv-status-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.pdv-status-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
    max-width: 300px;
    margin: 20px auto 0;
}

.pdv-status-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.pdv-btn-loader {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Messages */
.pdv-message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.pdv-message.show {
    display: block;
}

.pdv-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.pdv-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pdv-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Status Results */
.pdv-status-results {
    margin-top: 25px;
    min-height: 50px;
}

.pdv-status-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdv-status-results li {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.pdv-status-results li:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pdv-status-results li strong {
    display: block;
    font-size: 16px;
    color: #111827;
    margin-bottom: 8px;
}

.pdv-status-results p {
    margin: 0;
    padding: 15px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
    font-size: 14px;
}

/* Status Badges */
.pdv-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
}

.pdv-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.pdv-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.pdv-status-badge.error {
    background: #fee2e2;
    color: #991b1b;
}

.pdv-status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdv-form-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .pdv-form-section {
        padding: 25px 20px;
    }

    .pdv-form-title {
        font-size: 24px;
    }

    .pdv-status-title {
        font-size: 20px;
    }

    .pdv-file-label {
        padding: 30px 15px;
        min-height: 100px;
    }

    .pdv-file-icon {
        font-size: 36px;
    }
}

/* Loading State */
.pdv-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Status Tabs */
.pdv-status-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.pdv-tab-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-bottom: -2px;
}

.pdv-tab-btn:hover {
    color: #3b82f6;
}

.pdv-tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.pdv-tab-content {
    display: none;
}

.pdv-tab-content.active {
    display: block;
}

/* Download Button */
.pdv-download-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: #10b981;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.pdv-download-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Status Progress */
.pdv-status-progress {
    margin-top: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.pdv-status-progress h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #111827;
}

.pdv-status-progress ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdv-status-progress li {
    padding: 8px 0;
    color: #6b7280;
    font-size: 14px;
    position: relative;
    padding-left: 25px;
}

.pdv-status-progress li:before {
    content: "○";
    position: absolute;
    left: 0;
    color: #d1d5db;
    font-size: 18px;
}

.pdv-status-progress li.completed:before {
    content: "✓";
    color: #10b981;
}

.pdv-status-progress li.current {
    color: #111827;
    font-weight: 600;
}

.pdv-status-progress li.current:before {
    content: "→";
    color: #3b82f6;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

