/* File Upload Widget Styles */
.validation-results {
    margin-top: 40px;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: slideIn 0.3s ease-out;
}

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

.validation-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.validation-header h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
    font-family: 'Poppins', sans-serif;
}

.file-name {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.validation-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
}

.validation-status.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.validation-status.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    color: #856404;
}

.status-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.status-icon.success {
    background: #28a745;
    color: white;
}

.status-icon.warning {
    background: #ffc107;
    color: #856404;
}

.status-text {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.validation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.detail-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    font-family: 'Poppins', sans-serif;
}

.detail-item strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.detail-item:not(strong) {
    color: #666;
    font-size: 14px;
}

.validation-issues {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.validation-issues h4 {
    color: #721c24;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    font-family: 'Poppins', sans-serif;
}

.validation-issues ul {
    margin: 0;
    padding-left: 20px;
    color: #721c24;
    font-family: 'Poppins', sans-serif;
}

.validation-issues li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.validation-loading {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

.validation-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.validation-error {
    text-align: center;
    padding: 30px 20px;
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    color: #721c24;
}

.error-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.validation-error p {
    font-size: 16px;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* Enhanced upload button styles - 30% bigger */
.upload-button {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 102;
    transform: scale(1.3); /* Make button 30% bigger */
}

.upload-button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.upload-button:active {
    transform: scale(0.98);
}

/* Enhanced dimension input styles */
.dimension-input {
    width: 200px;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background-color: #fff;
    text-align: center;
}

.dimension-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.dimension-input:valid {
    border-color: #28a745;
}

.dimension-input:invalid {
    border-color: #dc3545;
}

/* File upload section */
.file-upload-section {
    margin-top: 30px;
    text-align: center;
}

.upload-instructions {
    margin-bottom: 15px;
    color: #666;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* Workflow instructions */
.workflow-instructions {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    color: #1565c0;
    font-size: 14px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.workflow-instructions strong {
    color: #0d47a1;
}

/* Analyze button */
.analyze-button {
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    opacity: 0.6;
    cursor: not-allowed;
}

.analyze-button:not([disabled]) {
    opacity: 1;
    cursor: pointer;
}

.analyze-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.analyze-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* Color mode note */
.color-mode-note {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 14px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.color-mode-note strong {
    color: #856404;
}

/* Tolerance note */
.tolerance-note {
    margin-top: 15px;
    padding: 15px;
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    color: #155724;
    font-size: 14px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.tolerance-note strong {
    color: #155724;
}

/* Vector note */
.vector-note {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    color: #1565c0;
    font-size: 14px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.vector-note strong {
    color: #1565c0;
}

/* Widget header and description */
.widget-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.widget-header h1 {
    color: #333;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
    font-family: 'Poppins', sans-serif;
}

.widget-description {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Supported file types */
.supported-files {
    margin-top: 50px;
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.supported-files h3 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 25px 0;
    font-family: 'Poppins', sans-serif;
}

.file-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}

.file-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.file-type-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.file-type-item i {
    font-size: 32px;
    color: #007bff;
}

.file-type-item span {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .validation-results {
        margin: 20px;
        padding: 20px;
    }
    
    .validation-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .detail-item {
        padding: 12px;
    }
    
    .validation-status {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .dimension-inputs {
        flex-direction: column;
        gap: 20px;
    }
    
    .input-group {
        min-width: auto;
    }
    
    .widget-header h1 {
        font-size: 28px;
    }
    
    .widget-description {
        font-size: 16px;
    }
    
    .supported-files {
        margin: 30px 20px;
        padding: 20px;
    }
    
    .file-types-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .validation-results {
        margin: 10px;
        padding: 15px;
    }
    
    .validation-header h3 {
        font-size: 20px;
    }
    
    .status-text {
        font-size: 16px;
    }
    
    .detail-item {
        padding: 10px;
        font-size: 13px;
    }
}
