/**
 * Verification Document Upload Styles
 * Comprehensive styling for the verification upload interface
 * @version 1.0.0
 */

/* ============================================================================
   Base Styles
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================================
   Header
   ============================================================================ */

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================================================
   Main Content
   ============================================================================ */

.main-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* ============================================================================
   Verification Stats
   ============================================================================ */

.verification-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-bottom: 1px solid #e0e0e0;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

/* ============================================================================
   Status Badges
   ============================================================================ */

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.verified {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================================================
   Content Section
   ============================================================================ */

.content-section {
    padding: 40px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 1rem;
}

/* ============================================================================
   Verification Type Selection
   ============================================================================ */

.verification-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.verification-type-card {
    padding: 30px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.verification-type-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.verification-type-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.verification-type-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.verification-type-card p {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* ============================================================================
   Upload Section
   ============================================================================ */

.upload-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
}

.upload-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.upload-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}

.upload-header p {
    color: #666;
}

/* ============================================================================
   Form Elements
   ============================================================================ */

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9375rem;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ============================================================================
   Upload Drop Zone
   ============================================================================ */

.upload-drop-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.upload-drop-zone:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-drop-zone.drag-over {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
    display: block;
}

.upload-text {
    font-size: 1.125rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.upload-hint {
    font-size: 0.875rem;
    color: #666;
}

/* ============================================================================
   File Preview
   ============================================================================ */

.file-preview {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e0e0e0;
}

.preview-image-container {
    margin-bottom: 20px;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-size {
    font-size: 0.875rem;
    color: #666;
}

/* ============================================================================
   Progress Indicator
   ============================================================================ */

.progress-container {
    margin: 25px 0;
}

.progress-bar-wrapper {
    background: #e0e0e0;
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #666;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* ============================================================================
   Verifications List
   ============================================================================ */

.verifications-list {
    margin-top: 40px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ============================================================================
   Verification Cards
   ============================================================================ */

.verification-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.verification-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.verification-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.verification-type {
    display: flex;
    align-items: center;
    gap: 15px;
}

.type-icon {
    font-size: 2rem;
}

.verification-type h4 {
    font-size: 1.125rem;
    color: #333;
    font-weight: 700;
}

.verification-card-body {
    margin-bottom: 15px;
}

.verification-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.875rem;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 600;
    color: #333;
}

.rejection-reason {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
}

.rejection-reason strong {
    display: block;
    margin-bottom: 8px;
    color: #856404;
    font-weight: 700;
}

.rejection-reason p {
    color: #856404;
    margin: 0;
    line-height: 1.5;
}

.verification-card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.status-approved {
    border-left: 4px solid #28a745;
}

.status-pending {
    border-left: 4px solid #ffc107;
}

.status-rejected {
    border-left: 4px solid #dc3545;
}

/* ============================================================================
   Empty State
   ============================================================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* ============================================================================
   Notifications
   ============================================================================ */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.notification-message {
    flex: 1;
    line-height: 1.5;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success .notification-icon {
    color: #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error .notification-icon {
    color: #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-info .notification-icon {
    color: #17a2b8;
}

/* ============================================================================
   Utility Classes
   ============================================================================ */

.hidden {
    display: none !important;
}

.text-sm {
    font-size: 0.875rem;
}

.text-gray-600 {
    color: #666;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .header p {
        font-size: 1rem;
    }

    .verification-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 15px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .verification-types-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 20px;
    }

    .upload-section {
        padding: 20px;
    }

    .upload-drop-zone {
        padding: 40px 15px;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .verification-card {
        padding: 20px;
    }

    .verification-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .verification-type {
        width: 100%;
    }

    .filter-buttons {
        justify-content: center;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-200px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .verification-stats {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .verification-type-card .icon {
        font-size: 2.5rem;
    }
}

/* ============================================================================
   Print Styles
   ============================================================================ */

@media print {
    body {
        background: white;
        padding: 0;
    }

    .header,
    .btn,
    .filter-buttons,
    .upload-section {
        display: none;
    }

    .main-content {
        box-shadow: none;
    }

    .verification-card {
        page-break-inside: avoid;
    }
}
