#drop-area {
  border: 2px dashed #007bff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  margin-bottom: 1rem;
}

#drop-area.dragover {
  border-color: #28a745;
  background-color: #f8fff8;
  color: #28a745;
}

#drop-area:hover {
  border-color: #0056b3;
  background-color: #e7f1ff;
}

/* Unified file management zone styling */
.col-lg-7 .card {
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* File list with integrated drag & drop functionality */
#file-list {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 5px;
    background: #fdfdfd;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

/* File list as drop zone */
.file-drop-zone {
    position: relative;
}

.file-drop-zone.dragover {
    border-color: #28a745;
    background-color: #f8fff8;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.2);
}

/* Empty state with integrated drag & drop */
#empty-file-state {
    cursor: pointer;
    border: 2px dashed #007bff;
    border-radius: 8px;
    background-color: #f8f9fa;
    margin: 10px;
    transition: all 0.3s ease;
}

#empty-file-state:hover {
    border-color: #0056b3;
    background-color: #e7f1ff;
}

#empty-file-state.dragover {
    border-color: #28a745;
    background-color: #f8fff8;
}

/* When files are present, the whole file-list becomes droppable */
#file-list.has-files {
    border: 1px solid #ddd;
}

#file-list.has-files.dragover {
    border-color: #28a745;
    background-color: #f8fff8;
}

/* Hide the old drop-area styles if they exist */
#drop-area {
    display: none;
}

/* File list when empty shows integrated drop area */
#file-list:empty::before {
    content: "Drop files here or click to browse";
    display: block;
    text-align: center;
    padding: 2rem;
    color: #6c757d;
    border: 2px dashed #007bff;
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* Select all container styling */
#select-all-container {
    transition: opacity 0.3s ease;
}

/* Horizontal layout improvements */
.row > .col-lg-7, .row > .col-lg-5 {
  min-height: 600px;
}

.col-lg-5 .card {
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  top: 20px;
}


/* Responsive improvements */
@media (max-width: 991.98px) {
  .row > .col-lg-7, .row > .col-lg-5 {
    min-height: auto;
  }
  
  .col-lg-5 .card {
    position: static;
    margin-top: 20px;
  }
}

.file-group {
display: flex;
align-items: center;
flex-wrap: wrap;
}

.file-group strong {
margin-right: 5px;
color: #444;
white-space: nowrap;
}

.file-chip {
background-color: #e0f0ff;
border-radius: 12px;
padding: 2px 8px;
margin: 2px 4px;
display: flex;
align-items: center;
}

.remove-btn {
background: none;
color: #c00;
border: none;
margin-left: 6px;
cursor: pointer;
font-size: 0.9em;
}

.remove-btn:hover {
text-decoration: underline;
}

#pipeline-status {
  height: 300px;
  resize: vertical; /* Allow vertical resizing only */
  overflow-y: auto;
}

.module-section {
    margin-bottom: 1.5rem;
}

/* Session Files Management Styles */
.file-card {
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.file-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.file-card .form-check-input:checked ~ * {
    opacity: 0.8;
}

#session-files-list .btn-group-sm .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive file grid */
@media (max-width: 768px) {
    #session-files-list .col-md-6 {
        margin-bottom: 1rem;
    }
}


/* Module status icons styling */
.module-status-icon {
    font-size: 1.2em;
    transition: opacity 0.3s ease;
}

.module-status-icon:not(:empty) {
    animation: statusAppear 0.5s ease-in-out;
}

@keyframes statusAppear {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* Enhanced module headers with status indicators */
.module-section .card-header .form-check-label {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.module-section.status-pending .card-header {
    border-left: 3px solid #ffc107;
}

.module-section.status-running .card-header {
    border-left: 3px solid #fd7e14;
}

.module-section.status-success .card-header {
    border-left: 3px solid #198754;
}

.module-section.status-error .card-header {
    border-left: 3px solid #dc3545;
}

/* Enhanced clickable headers */
.clickable-header {
    transition: background-color 0.2s ease;
}

.clickable-header:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Ensure the input and label areas don't inherit the pointer cursor */
.clickable-header input,
.clickable-header label {
    cursor: default;
}

/* Keep button cursor as pointer */
.clickable-header button {
    cursor: pointer;
}

/* Compact cards in the "Generated Outputs" section */
.generated-output-cards .card {
    flex: 0 0 165px; 
}

.generated-output-cards .card .card-body {
    padding: 0.5rem;
}

.generated-output-cards .card i {
    font-size: 3rem !important;
}

.generated-output-cards .card p {
    font-size: 0.9rem;
    line-height: 1.2;
}