/* VE Table Calculator Component Styles */

.ve-module-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ve-module-radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.ve-module-inputs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.ve-module-dropzone {
    border: 2px dashed #6c757d;
    border-radius: 8px;
    padding: 2rem 1rem;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.ve-module-dropzone:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

.ve-module-dropzone.drag-over {
    border-style: solid;
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.2);
}

.ve-module-dropzone.file-loaded {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.1);
}

.dropzone-content {
    width: 100%;
}

.dropzone-hint {
    font-size: 0.875rem;
    color: #6c757d;
    display: block;
    margin-top: 0.5rem;
}

.ve-module-button-primary {
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    background: #0d6efd;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ve-module-button-primary:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.ve-module-button-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.ve-module-button-secondary {
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #6c757d;
    background: transparent;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ve-module-button-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-1px);
}

.ve-module-output-display {
    padding: 1rem;
    border: 1px solid #495057;
    border-radius: 6px;
    width: 100%;
    min-height: 200px;
    overflow: auto;
    font-family: 'Courier New', Courier, monospace;
    background: #212529;
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.4;
    white-space: pre;
}

.status-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.status-success {
    background: rgba(25, 135, 84, 0.2);
    border: 1px solid #198754;
    color: #75b798;
}

.status-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #f1aeb5;
}

.status-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffe69c;
}

.file-info {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid #0d6efd;
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #9ec5fe;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ve-module-inputs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ve-module-radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ve-module-dropzone {
        min-height: 120px;
        padding: 1rem;
    }
    
    .ve-module-section {
        padding: 1rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between .d-flex {
        justify-content: center;
    }
}

/* Animation for successful operations */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.success-animation {
    animation: successPulse 0.3s ease-in-out;
}

/* Image preview styles */
.ve-module-dropzone.file-loaded {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.15);
}

.image-preview {
    text-align: center;
}

.image-preview img {
    border: 2px solid #28a745;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.image-preview p {
    margin: 8px 0 4px 0;
    font-weight: bold;
    color: #28a745;
}

.image-preview small {
    display: block;
    margin-bottom: 10px;
}

.image-preview .btn {
    margin: 2px;
    font-size: 0.85em;
}