/**
 * DocFlow Pro Shortcodes Styles
 * 
 * @package DocFlowPro
 * @since 1.0.0
 */

/* Modern Circular Loading Styles */
.docflow-verification-loading {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.docflow-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Modern Circular Spinner */
.docflow-loading-spinner-large {
    position: relative;
    width: 80px;
    height: 80px;
}

.docflow-loading-spinner-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-right: 4px solid #3b82f6;
    border-radius: 50%;
    animation: docflow-circular-spin 1.2s linear infinite;
}

.docflow-loading-spinner-large::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 64px;
    height: 64px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #60a5fa;
    border-radius: 50%;
    animation: docflow-circular-spin 0.8s linear infinite reverse;
}

/* Button Spinner */
.docflow-loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: docflow-circular-spin 1s linear infinite;
    margin-right: 8px;
}

.docflow-loading-content h4 {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
}

.docflow-loading-content p {
    margin: 0 0 25px 0;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
}

/* Dots Animation */
.docflow-loading-dots {
    display: inline-flex;
    gap: 4px;
    margin-top: 10px;
}

.docflow-loading-dots span {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: docflow-dots-bounce 1.4s ease-in-out infinite both;
}

.docflow-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.docflow-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.docflow-loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes docflow-circular-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes docflow-dots-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Button Loading State */
.docflow-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.docflow-button:disabled .docflow-loading-spinner {
    animation: docflow-spin 1s linear infinite;
}

/* Tracking Form */
.docflow-tracking-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.docflow-tracking-header {
    text-align: left;
    margin-bottom: 20px;
    padding: 0;
}

.docflow-tracking-header h2 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.docflow-tracking-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
}

.docflow-form {
    margin-bottom: 30px;
}

.docflow-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.docflow-form-group {
    margin-bottom: 20px;
}

.docflow-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

/* Inline input + button layout */
.docflow-inline-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    width: 100%;
    margin: 0;
    padding: 0;
}

.docflow-inline-row .docflow-form-group {
    flex: 0 0 70%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.docflow-inline-row .docflow-form-group label {
    margin: 0 0 8px 0;
    padding: 0;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.docflow-inline-row .docflow-button {
    flex: 0 0 calc(30% - 12px);
    height: 44px;
    padding: 0 16px;
    white-space: nowrap;
    margin: 0;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Elementor: force inline layout too */
.elementor .docflow-inline-row {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-end !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.elementor .docflow-inline-row .docflow-form-group {
    flex: 0 0 70% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.elementor .docflow-inline-row .docflow-form-group label {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
}

.elementor .docflow-inline-row .docflow-button {
    flex: 0 0 calc(30% - 12px) !important;
    height: 44px !important;
    padding: 0 16px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    align-self: flex-end !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.docflow-input {
    width: 100% !important;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    margin: 0;
    height: 44px;
    line-height: 1.4;
}

.docflow-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.docflow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.docflow-button-primary {
    background: #0073aa;
    color: white;
}

.docflow-button-primary:hover {
    background: #005a87;
    color: white;
}

.docflow-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Tracking Results */
.docflow-tracking-result {
    margin-top: 30px;
}

.docflow-tracking-success {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.docflow-tracking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.docflow-tracking-header h3 {
    margin: 0;
    color: #333;
    flex: 1;
}

.docflow-status-badge {
    padding: 2px 16px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: right;
    min-width: 120px;
    white-space: nowrap;
}

/* Status-specific colors matching backend */
.docflow-status-badge.docflow-status-received {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.docflow-status-badge.docflow-status-in_progress {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.docflow-status-badge.docflow-status-review {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.docflow-status-badge.docflow-status-completed {
    background: linear-gradient(135deg, #10b981, #059669);
}

.docflow-status-badge.docflow-status-pending_payment {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.docflow-status-badge.docflow-status-payment_completed {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.docflow-status-badge.docflow-status-rejected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Additional status variations */
.docflow-status-badge.docflow-status-pending {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.docflow-status-badge.docflow-status-on_hold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.docflow-status-badge.docflow-status-failed {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.docflow-status-badge.docflow-status-processing {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.docflow-status-badge.docflow-status-cancelled {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Default status for unknown statuses */
.docflow-status-badge:not([class*="docflow-status-"]) {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.docflow-tracking-details {
    margin-bottom: 20px;
}

.docflow-detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.docflow-detail-item {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.docflow-detail-item strong {
    color: #333;
    margin-right: 5px;
}

.docflow-detail-item code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
}

/* Tracking number styling - exact backend match */
.tracking-number {
    background: #52e3a86b;
    padding: 2px 8px;
    border-radius: 2px;
    font-family: monospace;
}

/* Comment badge styling */
.docflow-comment-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 8px;
    border: 1px solid #fbbf24;
}

/* Ultra Modern Timeline */
.docflow-timeline {
    margin: 2rem 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

.docflow-timeline h4 {
    margin: 0 0 2.5rem 0;
    color: inherit;
    font-size: 1.5rem;
    font-weight: normal;
    text-align: left;
    position: relative;
}

.docflow-timeline h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: inherit;
    border-radius: 2px;
}

.docflow-timeline-items {
    position: relative;
    padding: 0 2rem;
}

.docflow-timeline-items::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    border-radius: 1px;
}

.docflow-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform: translateY(30px);
}

.docflow-timeline-item:nth-child(1) { animation-delay: 0.1s; }
.docflow-timeline-item:nth-child(2) { animation-delay: 0.2s; }
.docflow-timeline-item:nth-child(3) { animation-delay: 0.3s; }
.docflow-timeline-item:nth-child(4) { animation-delay: 0.4s; }
.docflow-timeline-item:nth-child(5) { animation-delay: 0.5s; }
.docflow-timeline-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.docflow-timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-right: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: #ffffff;
    border: 2px solid #e2e8f0;
    font-size: 20px;
    font-weight: 600;
}

.docflow-timeline-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* Completed Status - Modern Green */
.docflow-timeline-item.completed .docflow-timeline-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

/* Remove the problematic after pseudo-element for completed status */

/* Current Status - Ultra Modern */
.docflow-timeline-item.current .docflow-timeline-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    animation: modernPulse 2s ease-in-out infinite;
}

.docflow-timeline-item.current .docflow-timeline-icon::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    z-index: -1;
    animation: modernRipple 2s infinite;
}

/* Remove the problematic after pseudo-element for current status */

@keyframes modernPulse {
    0%, 100% {
        transform: scale(1.1);
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
    }
}

@keyframes modernRipple {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes modernBlink {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.6;
    }
}

/* Future Status */
.docflow-timeline-item.future .docflow-timeline-icon {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #94a3b8;
    transform: scale(0.9);
    opacity: 0.6;
}

.docflow-timeline-item.future .docflow-timeline-icon:hover {
    transform: scale(1);
    opacity: 0.8;
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #64748b;
}

.docflow-timeline-content {
    flex: 1;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.docflow-timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e2e8f0; /* default neutral */
    transition: all 0.3s ease;
}

.docflow-timeline-item.completed .docflow-timeline-content {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

.docflow-timeline-item.completed .docflow-timeline-content::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.docflow-timeline-item.current .docflow-timeline-content {
    background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 100%);
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
    position: relative;
}

.docflow-timeline-item.current .docflow-timeline-content::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Left gradient stripe by specific status - using same 2-color gradients as status icons */
.docflow-timeline-item.status-received .docflow-timeline-content::before {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.docflow-timeline-item.status-pending_payment .docflow-timeline-content::before {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.docflow-timeline-item.status-payment_completed .docflow-timeline-content::before {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.docflow-timeline-item.status-in_progress .docflow-timeline-content::before {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.docflow-timeline-item.status-review .docflow-timeline-content::before {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

.docflow-timeline-item.status-completed .docflow-timeline-content::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.docflow-timeline-item.status-rejected .docflow-timeline-content::before {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}

/* Timeline Content Typography */
.docflow-timeline-content h5 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.docflow-timeline-content h5 > span:first-child {
    flex: 1;
}

.docflow-timeline-content h5 .docflow-status-chip {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 6px;
}

.docflow-timeline-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.docflow-timeline-content .docflow-timeline-date {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Status Badge */
.docflow-timeline-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.docflow-timeline-item.completed .docflow-timeline-status-badge {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.docflow-timeline-item.current .docflow-timeline-status-badge {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    animation: modernBlink 2s ease-in-out infinite;
}

.docflow-timeline-item.future .docflow-timeline-status-badge {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

/* Header-style status chips */
.docflow-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: -2px;
}

/* Header-style status chip colors */
.docflow-status-chip.current {
    background: #667eea;
    color: #fff;
    box-shadow: 0 2px 4px rgba(102,126,234,.2);
}

.docflow-status-chip.completed {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 4px rgba(16,185,129,.2);
}

.docflow-status-chip.pending {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 4px rgba(245,158,11,.2);
}

/* Status-specific chip colors - solid header style */
.docflow-timeline-item.status-received .docflow-status-chip {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 2px 4px rgba(59,130,246,.2);
}

.docflow-timeline-item.status-pending_payment .docflow-status-chip {
    background: #f59e0b;
    color: #fff;
    box-shadow: 0 2px 4px rgba(245,158,11,.2);
}

.docflow-timeline-item.status-payment_completed .docflow-status-chip {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 4px rgba(16,185,129,.2);
}

.docflow-timeline-item.status-in_progress .docflow-status-chip {
    background: #8b5cf6;
    color: #fff;
    box-shadow: 0 2px 4px rgba(139,92,246,.2);
}

.docflow-timeline-item.status-review .docflow-status-chip {
    background: #0ea5e9;
    color: #fff;
    box-shadow: 0 2px 4px rgba(14,165,233,.2);
}

.docflow-timeline-item.status-completed .docflow-status-chip {
    background: #059669;
    color: #fff;
    box-shadow: 0 2px 4px rgba(5,150,105,.2);
}

.docflow-timeline-item.status-rejected .docflow-status-chip {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 4px rgba(239,68,68,.2);
}

.docflow-status-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: .9;
}

.docflow-current-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
}

/* Downloads */
.docflow-downloads {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.docflow-downloads h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.docflow-download-item {
    margin-bottom: 10px;
}

.docflow-download-link {
    display: inline-block;
    padding: 10px 20px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.docflow-download-link:hover {
    background: #218838;
    color: white;
}

/* Error Messages */
.docflow-tracking-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.docflow-tracking-success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

/* Verification Result - Using EXACT same classes as tracking page */
.docflow-verification-result {
    margin-top: 30px;
}

.docflow-verification-success {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

/* Verification Status Badge - Green Gradient */
.docflow-verified-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Status Badge for Header - Same gradient style */
.docflow-status-badge.docflow-status-verified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Documents Section - Modern Professional */
.docflow-documents-section {
    margin-top: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.docflow-documents-section h4 {
    margin: 0 0 20px 0;
    color: #1a202c;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.025em;
}

.docflow-documents-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.docflow-documents-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.docflow-documents-table th {
    background: #f7fafc;
    color: #2d3748;
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.docflow-documents-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: #4a5568;
    vertical-align: middle;
}

.docflow-documents-table tr:last-child td {
    border-bottom: none;
}

.docflow-documents-table tr:hover {
    background: #f8fafc;
}

.docflow-documents-table tr:hover td {
    color: #2d3748;
}

/* Serial number styling */
.docflow-documents-table td:first-child {
    font-weight: 600;
    color: #718096;
    text-align: center;
    width: 80px;
}

/* File name styling */
.docflow-documents-table td:nth-child(2) {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    color: #2d3748;
    font-weight: 500;
}

/* Action button styling - modern professional */
.docflow-download-btn {
    background: #3182ce;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.docflow-download-btn:hover {
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.docflow-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .docflow-documents-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .docflow-documents-section h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .docflow-documents-table th,
    .docflow-documents-table td {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .docflow-download-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .docflow-documents-section {
        padding: 16px;
    }
    
    .docflow-documents-table th,
    .docflow-documents-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .docflow-download-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

.docflow-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Verification Form */
.docflow-verification-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.docflow-verification-header {
    text-align: left;
    margin-bottom: 20px;
    padding: 0;
}

.docflow-verification-header h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
}

.docflow-verification-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.docflow-verification-result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
}

.docflow-verification-success {
    background: #f9f9f9;
    border: 1px solid #ddd;
}

.docflow-verification-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.docflow-verification-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.docflow-verification-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.docflow-verification-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.docflow-verification-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    margin: 10px 0;
}

.docflow-verification-status.verified {
    background: #28a745;
    color: white;
}

.docflow-verification-status.under_process {
    background: #ffc107;
    color: #212529;
}

.docflow-verification-status.pending {
    background: #6c757d;
    color: white;
}

.docflow-verification-status.unknown {
    background: #dc3545;
    color: white;
}

.docflow-verification-documents {
    margin-top: 20px;
}

.docflow-verification-documents h4 {
    margin: 0 0 15px 0;
    color: #333;
}

.docflow-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.docflow-document-info {
    flex: 1;
}

.docflow-document-name {
    font-weight: 600;
    color: #333;
}

.docflow-document-size {
    font-size: 12px;
    color: #666;
}

.docflow-document-download {
    background: #0073aa;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.docflow-document-download:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.docflow-document-download:active {
    background: #004a6f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .docflow-form-row {
        grid-template-columns: 1fr;
    }
    
    .docflow-detail-row {
        grid-template-columns: 1fr;
    }
    
    .docflow-tracking-header {
        text-align: left;
        padding: 15px 0;
    }
    
    .docflow-tracking-header h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .docflow-tracking-header p {
        font-size: 14px;
        max-width: 100%;
    }
    
    .docflow-status-badge {
        margin-top: 10px;
    }
    
    .docflow-timeline-items::before {
        left: 25px;
    }
    
    .docflow-timeline-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }
    
    .docflow-timeline-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .docflow-timeline-item.current .docflow-timeline-icon {
        transform: scale(1.15);
    }
    
    .docflow-verification-details {
        grid-template-columns: 1fr;
    }
}

/* ===== Elementor Compatibility (minimal overrides) ===== */
/* Remove default Elementor paddings around our widgets */
.elementor .elementor-widget-docflow_tracking .elementor-widget-container,
.elementor .elementor-widget-docflow_status .elementor-widget-container,
.elementor .elementor-widget-docflow_uploads .elementor-widget-container,
.elementor .elementor-widget-docflow_countdown .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Make shortcode forms span full width inside Elementor */
.elementor .docflow-tracking-form,
.elementor .docflow-verification-form {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Force smaller heading in Elementor */
.elementor .docflow-tracking-header h2 {
    font-size: 20px !important;
    margin: 0 0 10px 0 !important;
}

/* Force full width input in Elementor */
.elementor .docflow-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Slightly reduce grid gap in Elementor to keep layout compact */
.elementor .docflow-form-row {
    grid-template-columns: 1fr !important;
    gap: 16px;
}

/* ===== Elementor Timeline Sizing Tweaks ===== */
.elementor .docflow-timeline { 
    font-size: 16px; /* normalize base size inside Elementor */
}

.elementor .docflow-timeline-items::before {
    left: 60px; /* align with larger icon */
}

.elementor .docflow-timeline-icon {
    width: 60px;
    height: 60px;
    font-size: 22px;
    margin-right: 24px;
}

.elementor .docflow-timeline-content {
    padding: 20px;
}

.elementor .docflow-timeline-content h5 {
    font-size: 1.35rem;
}

.elementor .docflow-timeline-content p {
    font-size: 1rem;
}

.elementor .docflow-timeline-content .docflow-timeline-date {
    font-size: 0.95rem;
}

.elementor .docflow-timeline-content h5 .docflow-status-chip,
.elementor .docflow-timeline-status-badge {
    font-size: 12px;
    padding: 6px 12px;
}

/* ===== Elementor Layout Fixes for Buttons/Rows ===== */
/* Remove extra top spacing Elementor may inject before widgets */
.elementor .docflow-tracking-form .docflow-button,
.elementor .docflow-verification-form .docflow-button,
.elementor .docflow-form .docflow-button {
    margin-top: 0 !important;
}

/* Tighter vertical rhythm for rows inside Elementor */
.elementor .docflow-form-row {
    margin-bottom: 14px;
}

/* Force equal input field sizing in Elementor */
.elementor .docflow-form-group input[type="text"],
.elementor .docflow-form-group input[type="number"],
.elementor .docflow-form-group #tracking_number,
.elementor .docflow-form-group #order_id {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    display: block !important;
}

/* Ensure both grid columns are exactly equal width */
.elementor .docflow-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

.elementor .docflow-form-row .docflow-form-group {
    width: 100% !important;
    min-width: 0 !important;
}
