/* ============================================
   CERTIFICATE VERIFICATION UPLOAD PAGE STYLES
   ============================================ */

/* Main Validation Section */
.validation-section {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f4f4f0 0%, #e8e8e0 100%);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.validation-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.validation-header {
    text-align: center;
    margin-bottom: 40px;
}

.validation-header h1 {
    font-size: 2.8rem;
    color: var(--text-heading);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.validation-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffc107;
    border-radius: 3px;
}

.validation-header p {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-top: 20px;
}

/* Validation Card */
.validation-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.validation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
    position: relative;
}

.upload-area:hover {
    border-color: var(--nav-bg);
    background: #f5f7fa;
}

.upload-area.dragover {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
}

.upload-icon {
    font-size: 4rem;
    color: var(--nav-bg);
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 1.5rem;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.upload-area p {
    color: #666;
    margin-bottom: 10px;
}

.file-requirements {
    font-size: 0.85rem;
    color: #999;
    margin-top: 10px;
}

.upload-btn {
    display: inline-block;
    background: var(--nav-bg);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.upload-btn:hover {
    background: var(--text-heading);
    transform: translateY(-2px);
}

/* Image Preview */
.image-preview {
    text-align: center;
}

.image-preview h4 {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 15px;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.remove-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* Validation Status */
.validation-status {
    text-align: center;
    padding: 30px;
}

.status-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--nav-bg);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-loading p {
    color: var(--text-body);
    font-size: 1rem;
}

/* Validation Actions */
.validation-actions {
    text-align: center;
    padding: 20px 0 0;
}

.btn-validate {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-validate:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Error Message Box */
.error-message-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-top: 20px;
}

.error-message-box ion-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 15px;
}

.error-message-box h4 {
    font-size: 1.3rem;
    color: #721c24;
    margin-bottom: 10px;
}

.error-message-box p {
    color: #721c24;
    margin-bottom: 20px;
}

.error-message-box button {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-message-box button:hover {
    background: #c82333;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, #e8f0fe 0%, #d4e4fc 100%);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.info-box h4 {
    font-size: 1.3rem;
    color: var(--text-heading);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #444;
}

.info-box ul li ion-icon {
    font-size: 1.3rem;
    color: #28a745;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    /* Upload Page Responsive */
    .validation-section {
        padding: 40px 0 60px;
    }
    
    .validation-header h1 {
        font-size: 2rem;
    }
    
    .validation-header p {
        font-size: 1rem;
    }
    
    .validation-card {
        padding: 25px;
    }
    
    .upload-area {
        padding: 35px 20px;
    }
    
    .upload-area h3 {
        font-size: 1.2rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .info-box {
        padding: 20px;
    }
    
    .info-box h4 {
        font-size: 1.1rem;
    }
    
    .info-box ul li {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .validation-header h1 {
        font-size: 1.6rem;
    }
    
    .validation-card {
        padding: 20px;
    }
    
    .upload-area {
        padding: 25px 15px;
    }
    
    .upload-area h3 {
        font-size: 1rem;
    }
    
    .upload-area p {
        font-size: 0.85rem;
    }
    
    .file-requirements {
        font-size: 0.75rem;
    }
    
    .upload-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-validate {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .info-box {
        padding: 15px;
    }
    
    .info-box ul li {
        font-size: 0.85rem;
    }
}

/* Remove any vertical scrollbar issues */
body {
    overflow-x: hidden;
}

.validation-section::-webkit-scrollbar {
    display: none;
}

/* Image Preview - Centered Styles */
.image-preview {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-preview h4 {
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 15px;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.remove-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.remove-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}