/* CSV Merger Styles - Bootstrap Compatible */

/* Drop Zone Styling */
#drop-zone {
    border: 3px dashed #cbd5e0;
    border-radius: 12px;
    background-color: #f8fafc;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 1rem;
}

#drop-zone:hover {
    background-color: #edf2f7;
    border-color: #3b82f6;
}

#drop-zone.drag-over {
    background-color: #dbeafe;
    border-color: #2563eb;
    border-style: solid;
    transform: scale(1.01);
}

/* Cloud Icon Styling */
.upload-icon {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    display: block;
}

#drop-zone.drag-over .upload-icon {
    color: #2563eb;
}

/* Drop Zone Text */
.drop-zone-text {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

#drop-zone.drag-over .drop-zone-text {
    color: #1e40af;
    font-weight: 500;
}

/* Hide the actual file input completely */
#csv_files {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Choose Files Button */
.choose-files-btn {
    background-color: #3b82f6;
    color: white;
    padding: 0.625rem 1.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.choose-files-btn:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.choose-files-btn:active {
    transform: translateY(0);
}

/* File List Container */
#file-list {
    margin-top: 0;
}

#file-list .list-group {
    margin-bottom: 0.75rem;
}

#file-list .list-group-item {
    border-left: 3px solid #3b82f6;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #ffffff;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

#file-list .list-group-item:hover {
    background-color: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* File Info Styling */
.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon {
    font-size: 1.25rem;
}

.file-name {
    font-weight: 500;
    color: #1e293b;
    font-size: 0.875rem;
}

.file-size {
    color: #64748b;
    font-size: 0.75rem;
}

/* Remove Button */
.remove-file-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.125rem 0.5rem;
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.remove-file-btn:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

/* File Count Badge */
.file-count-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
}

/* No Files Message */
.no-files-message {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.875rem;
    padding: 0.75rem;
    text-align: center;
    margin: 0;
}

/* Card Styling */
.upload-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.25rem;
}

/* Form Controls */
.form-label {
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-select,
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-select:focus,
.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Checkboxes - Override Bootstrap defaults */
.upload-card .form-check {
    padding-left: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
    margin-bottom: 0;
}

.upload-card .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin: 0 !important;
    flex-shrink: 0;
    position: relative;
}

.upload-card .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.upload-card .form-check-label {
    font-weight: 500;
    color: #334155;
    font-size: 0.95rem;
    cursor: pointer;
    margin: 0 !important;
    padding: 0;
}

.form-text {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

/* Results Card */
.results-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

/* Stats Display */
.stat-box {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .upload-card {
        padding: 1.5rem;
    }
    
    #drop-zone {
        padding: 1.5rem 1rem;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .drop-zone-text {
        font-size: 0.875rem;
    }
    
    .choose-files-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .card-title {
        font-size: 1.125rem;
    }
    
    .submit-btn {
        width: 100%;
        margin-top: 1.5rem !important;
    }
}