/**
 * Visa Status Tracker - Frontend Styles
 */

/* Reset and Base Styles */
.vst-tracker-container * {
    box-sizing: border-box;
}

/* Tracker Container */
.vst-tracker-container {
    max-width: 700px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.vst-tracker-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* Form Header */
.vst-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.vst-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.vst-form-description {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Form Styles */
.vst-tracking-form {
    margin-top: 30px;
}

.vst-form-group {
    margin-bottom: 24px;
}

.vst-form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.vst-required {
    color: #ef4444;
}

.vst-form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.vst-form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--vst-primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Button Styles */
.vst-form-actions {
    margin-top: 30px;
}

.vst-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
}

.vst-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vst-submit-btn:active {
    transform: translateY(0);
}

.vst-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.vst-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vst-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Result Container */
.vst-result-container {
    margin-top: 30px;
    animation: vst-fade-in 0.5s ease;
}

@keyframes vst-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Display */
.vst-status-display {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
}

.vst-status-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.vst-status-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.vst-status-message {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

/* Status Colors */
.vst-status-approved {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid var(--vst-approved-color);
}

.vst-status-processing {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 2px solid var(--vst-processing-color);
}

.vst-status-rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid var(--vst-rejected-color);
}

.vst-status-on-hold {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid var(--vst-on-hold-color);
}

/* Error Message */
.vst-error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
    margin-top: 20px;
}

/* Document Display */
.vst-document-wrapper {
    margin-top: 30px;
    animation: vst-slide-up 0.6s ease;
}

@keyframes vst-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vst-document-actions {
    text-align: center;
    margin: 30px 0 20px;
}

.vst-download-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--vst-primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0 8px;
}

.vst-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.vst-document-header {
    text-align: center;
    margin-bottom: 20px;
}

.vst-document-header h3 {
    font-size: 24px;
    color: #1f2937;
    margin: 0;
}

.vst-pdf-viewer,
.vst-image-viewer {
    margin: 20px 0;
}

.vst-image-viewer img {
    display: block;
    margin: 0 auto;
}

/* QR Code Section */
.vst-qr-section {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.vst-qr-title {
    font-size: 20px;
    color: #1f2937;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.vst-qr-code-container {
    display: inline-block;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vst-qr-image {
    width: 200px;
    height: 200px;
    display: block;
    margin: 0 auto;
}

.vst-qr-instructions {
    margin: 15px 0 0 0;
    font-size: 14px;
    color: #6b7280;
}

/* Official Document Styles */
.vst-official-document {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.vst-doc-header {
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.vst-header-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
}

.vst-header-content {
    position: relative;
    z-index: 1;
}

.vst-coat-of-arms {
    margin-bottom: 20px;
}

.vst-coat-of-arms img,
.vst-default-emblem {
    width: 80px;
    height: 80px;
    display: inline-block;
}

.vst-header-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.vst-header-content h2 {
    font-size: 20px;
    font-weight: 400;
    margin: 8px 0;
}

.vst-header-tagline {
    font-size: 14px;
    opacity: 0.9;
    margin: 8px 0 0 0;
}

/* Document Body */
.vst-doc-body {
    padding: 30px;
}

.vst-notification-banner {
    background: #d1fae5;
    border-left: 5px solid #10b981;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    border-radius: 6px;
}

.vst-banner-icon {
    font-size: 36px;
    color: #10b981;
    margin-right: 20px;
}

.vst-banner-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 6px 0;
}

.vst-banner-text p {
    font-size: 14px;
    color: #047857;
    margin: 0;
}

/* Document Sections */
.vst-doc-section {
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
}

.vst-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--vst-primary-color);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--vst-accent-color, #CC0000);
}

/* Info Grid */
.vst-info-grid {
    display: flex;
    gap: 30px;
}

.vst-info-main {
    flex: 1;
}

.vst-photo-container {
    flex-shrink: 0;
}

.vst-applicant-photo {
    width: 150px;
    height: 180px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

/* Info Rows */
.vst-info-row {
    margin-bottom: 16px;
}

.vst-info-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 4px;
}

.vst-info-value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.vst-highlight {
    color: var(--vst-accent-color, #CC0000);
    font-size: 18px;
}

.vst-monospace {
    font-family: 'Courier New', Courier, monospace;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
}

/* eVisa Section */
.vst-evisa-section {
    background: #eff6ff;
    border-color: #3b82f6;
}

.vst-evisa-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.vst-qr-container {
    text-align: center;
    flex-shrink: 0;
}

.vst-qr-code {
    width: 150px;
    height: 150px;
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.vst-qr-placeholder {
    font-size: 10px;
    color: #9ca3af;
    padding: 10px;
    word-break: break-all;
    text-align: center;
}

.vst-qr-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.vst-evisa-data {
    flex: 1;
}

.vst-verification-note {
    margin-top: 16px;
    padding: 12px;
    background: #dbeafe;
    border-left: 3px solid #3b82f6;
    font-size: 13px;
    color: #1e40af;
    border-radius: 4px;
}

/* Footer Code */
.vst-footer-code {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 16px;
    margin: 20px 0;
    text-align: center;
    border-radius: 6px;
}

.vst-code-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.vst-code-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 2px;
}

/* Important Notes */
.vst-important-notes {
    margin-top: 20px;
    padding: 20px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
}

.vst-important-notes h4 {
    font-size: 16px;
    color: #92400e;
    margin: 0 0 12px 0;
}

.vst-important-notes ul {
    margin: 0;
    padding-left: 20px;
}

.vst-important-notes li {
    margin-bottom: 8px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}

/* Document Footer */
.vst-doc-footer {
    background: #f9fafb;
    border-top: 3px solid var(--vst-primary-color);
    padding: 20px;
    text-align: center;
}

.vst-footer-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 6px 0;
}

.vst-footer-date {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Hide Open in New Tab button - Admin request */
.vst-view-btn {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vst-tracker-form-wrapper {
        padding: 24px;
    }
    
    .vst-form-title {
        font-size: 24px;
    }
    
    .vst-info-grid {
        flex-direction: column;
    }
    
    .vst-photo-container {
        text-align: center;
    }
    
    .vst-evisa-info {
        flex-direction: column;
    }
    
    .vst-doc-body {
        padding: 20px;
    }
    
    .vst-doc-section {
        padding: 16px;
    }
}

@media print {
    .vst-document-actions {
        display: none;
    }
    
    .vst-official-document {
        box-shadow: none;
        border: none;
    }
}
