/* Keep your existing successful full-width/centered and single-line heading styles */

/* DROPDOWN CONTAINER: 90% width, 5% spacing on each side */
.sina-nav .mega-menu.dropdown-menu {
    width: 90% !important; 
    left: 5% !important;
    right: 5% !important;
    position: absolute !important; /* This causes the overlap! */
    max-width: none !important;
    padding-left: 5% !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Ensure h5 headings in the FIRST 3 columns stay on a single line */
.sina-nav .mega-menu-row li:nth-child(-n+3) h5.title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Keep h5 headings vertically aligned (min-height rule) */
.sina-nav .mega-menu-col .d-flex {
    min-height: 50px; 
    align-items: center;
}


/* NEW CSS: Pushes content down to make room for the open dropdown */
.push-down-content {
    /* Adjust this margin to match the height of your open dropdown menu.
       You might need to tweak the 250px value slightly. */
    margin-top: 250px !important; 
}
/* ------------------------------------ */
/* 1. DROP ZONE CONTAINER STYLING */
/* ------------------------------------ */
#drop-zone {
    /* Define the area */
    border: 3px dashed #ccc;
    border-radius: 12px; /* Smoother corners */
    padding: 40px 20px;
    text-align: center;
    background-color: #fcfcfc; /* Light background */
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Hover/Drag-Over State */
#drop-zone.hover,
#drop-zone:hover { /* Added :hover for visual feedback even without dragging */
    border-color: #007bff; /* Primary color border */
    background-color: #e6f7ff; /* Very light blue tint */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.1); /* Subtle shadow on hover */
}

/* File Format Info Text */
.file-format-info {
    font-size: 0.85rem;
    color: #6c757d; /* Muted gray text */
    margin-top: 15px;
    line-height: 1.4;
}

/* Heading inside the drop zone */
#drop-zone h4 {
    color: #343a40; /* Dark text */
    margin-bottom: 10px;
}

/* ------------------------------------ */
/* 2. FILE DISPLAY AREA STYLING */
/* ------------------------------------ */
#file-display {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align content to the left */
    width: 100%;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6; /* Separator line */
}

#file-display strong {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #333;
    width: 100%;
    text-align: left;
}

/* Individual File Preview Item */
.file-preview-item {
    /* Styles applied in JS: d-flex align-items-center justify-content-between p-2 mb-2 border rounded */
    background-color: #ffffff;
    border: 1px solid #ced4da !important;
    border-left: 4px solid #007bff; /* Highlight strip on the left */
    width: 100%; /* Take full width of the container */
}

/* 'X' Remove Button Styling */
.file-preview-item .btn-danger {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    line-height: 1;
    border-radius: 0.25rem;
    margin-left: 10px;
}

/* Icon and image alignment */
.file-preview-item img,
.file-preview-item .fa {
    flex-shrink: 0; /* Prevents image/icon from shrinking */
}
.remove-file {
  font-weight: bold;
  color: red;
  border: none;
  background: none;
  cursor: pointer;
}
.remove-file:hover {
  color: darkred;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
