
.content {
    background-color: #FFFFFF;
    min-height: 100vh;
    padding: 0px 20px 20px 20px;
    font-family: 'Montserrat', sans-serif;
}

.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    margin-left: 20px;
}

.title-section h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #000;
}

.title-section p {
    font-size: 0.875rem;
    color: #707070;
    margin: 0;
}



.action-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.breadcrumb-wrapper {
  position: relative;
  max-width: 100%;
   overflow: visible !important;
  padding: 8px 16px;
  background: #fff;
  white-space: nowrap;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
   overflow: visible !important;
}

#sort-dropdown-menu {
  z-index: 99999 !important;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  display: inline-block;
  font-size: 14px;
}

.breadcrumb i {
  color: #D0D0D0;
  font-size: 18px;
}

.back-link img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.breadcrumb-ellipsis {
  background: none;
  border: none;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.breadcrumb-ellipsis:hover {
  color: #007bff;
}

.breadcrumb-modal {
  position: fixed;
  top: 70px;
  right: 50px; /* was left: 100px */
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 20px 40px -5px rgba(0, 0, 0, 0.04);
  padding: 8px 0;
  z-index: 9999;
  min-width: 280px;
  max-width: 400px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  color: #000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: modalFadeIn 0.15s ease-out;
}


@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.breadcrumb-modal::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.05));
}

.breadcrumb-modal a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  white-space: nowrap;
  text-decoration: none;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: all 0.15s ease;
  position: relative;
  border-radius: 6px;
  margin: 0 8px;
}

.breadcrumb-modal a:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #1e40af;
  transform: translateX(2px);
}

.breadcrumb-modal a:active {
  transform: translateX(2px) scale(0.98);
}

.breadcrumb-modal a .folder-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  opacity: 0.7;
}

.breadcrumb-modal i {
  display: none !important; /* Hide chevron icons in modal */
}

.breadcrumb-modal a::before {
  content: none !important; /* Remove any leading slashes or separators */
}


/* Custom scrollbar for the modal */
.breadcrumb-modal::-webkit-scrollbar {
  width: 4px;
}

.breadcrumb-modal::-webkit-scrollbar-track {
  background: transparent;
}

.breadcrumb-modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.breadcrumb-modal::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Add a subtle header to the modal */
.breadcrumb-modal-header {
  padding: 12px 16px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
  .breadcrumb-modal {
    left: 10px;
    right: 10px;
    min-width: auto;
    max-width: none;
    width: calc(100% - 20px);
  }
  
  .breadcrumb-modal::before {
    left: 20px;
  }
}
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-left: 10px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-left: 20px;
}

.folder-card {
    background-color: #F9FAFB;
    border-radius: 10px;
 
    text-align: center;
    padding: 30px 10px 15px;
    transition: all 0.2s;
    cursor: grab;
    position: relative;
    border: 1px solid #695CFE;
}

.folder-card.selected {
    box-shadow: 0 0 0 2px #3B82F6;
}

.folder-card.selected::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #3B82F6;
    border-radius: 50%;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.folder-icon {
    margin: 0 auto 15px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #B0B0B0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #B0B0B0;
}

.add-icon i {
    font-size: 20px;
}


.selection-marker {
    position: absolute;
    width: 8px;
    height: 8px;
    top: 4px;
    left: 4px;
    background-color: #3B82F6;
    border-radius: 50%;
}

.selection-outline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #3B82F6;
    border-radius: 10px;
    pointer-events: none;
}

.corner-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #3B82F6;
    border-radius: 50%;
}

.top-right {
    top: -4px;
    right: -4px;
}

.top-left {
    top: -4px;
    left: -4px;
}

.bottom-right {
    bottom: -4px;
    right: -4px;
}

.bottom-left {
    bottom: -4px;
    left: -4px;
}

.middle-right {
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
}

.middle-bottom {
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
}



#versionModal{
    z-index: 999 !important;
}


/* Drag and Drop Styles */
.dragging {
    transform: rotate(2deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1000;
}

.drag-over {
    background-color: #e3f2fd !important;
    border: 2px dashed #2196f3 !important;
    border-radius: 4px;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Breadcrumb drag over effect */
.breadcrumb a.drag-over {
    background-color: #e3f2fd;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Folder and file item drag styles */
.folder-item[draggable="true"]:hover,
.file-item[draggable="true"]:hover {
    cursor: grab !important;
}

.folder-item[draggable="true"]:active,
.file-item[draggable="true"]:active {
    cursor: grabbing !important;
}

/* Visual feedback for draggable items */
.folder-item[draggable="true"]::before,
.file-item[draggable="true"]::before {
    content: "⋮⋮";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 12px;
    color: #ccc;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.folder-item[draggable="true"]:hover::before,
.file-item[draggable="true"]:hover::before {
    opacity: 1;
}

/* Ensure proper positioning for the drag handle */
.folder-item,
.file-item {
    position: relative;
}

/* Drop zone highlighting */
.drop-zone-active {
    background: linear-gradient(45deg, #e3f2fd, #bbdefb);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { background-color: #e3f2fd; }
    50% { background-color: #bbdefb; }
    100% { background-color: #e3f2fd; }
}

/* Selection mode styles */
#selection-wrapper {
    display: flex;
    justify-content: end;
    align-items: center;
    height: 40px;
    overflow: hidden;
    position: relative;
}

#selection-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 6px;
    margin-left: 10px;

    opacity: 0;
    width: 0;
    transition: width 0.5s ease, opacity 0.5s ease;
    overflow: hidden;
    white-space: nowrap;
}

#selection-actions.open {
    width: 550px; /* or however wide it needs to be */
    opacity: 1;
}

#toggle-selection-mode {
    transition: opacity 1s ease;
}


.selection-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    display: none;
    z-index: 10;
}

body.selection-mode .selection-checkbox {
    display: block;
}

body.selection-mode .dropdown .btn-light[data-bs-toggle="dropdown"] {
    display: none;
}

#checklist-icon.hidden {
    display: none;
}


.modal-content {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

.modal-header {
  padding: 18px 24px;
  background: linear-gradient(135deg, #6a5cfe 0%, #8a7cff 100%);
  border-bottom: none;
}

.modal-title {
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 1.25rem;
  color: white;
}

.modal-body {
  padding: 24px;
}

#folderTree {
  max-height: 250px;
  overflow-y: auto;
  padding: 12px 0;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #fafafa;
  margin-top: 8px;
}

.folder-node {
  position: relative;
  padding: 6px 12px;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.folder-node:hover {
  background: rgba(105, 92, 254, 0.05);
  border-left-color: #695CFE;
}

.folder-node > div {
  padding: 6px 8px;
  display: flex;
  align-items: center;
}

/* PNG-based arrow styling */
.arrows {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-image: url('assets/toggle-arrow.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.arrows.expanded {
  transform: rotate(90deg);
}

.folder-name {
  font-weight: 500;
  color: #333;
}

.children {
  border-left: 1px dashed #e0e0e0;
  margin-left: 8px;
}

.form-label {
  font-weight: 500;
  margin-bottom: 10px;
  color: #444;
}

#conflict_options {
  padding: 16px;
  background: #f8f9ff;
  border-radius: 8px;
  border: 1px solid #edf0ff;
  margin: 20px 0;
}

.form-check {
  margin-bottom: 12px;
}

.form-check-input {
  margin-top: 0.3em;
}

.form-check-label {
  color: #555;
}

.btn-close {
  opacity: 0.8;
  transition: all 0.2s;
}

.btn-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

#move_submit_btn {
  padding: 10px 16px;
  font-weight: 500;
  border-radius: 8px;
  background: linear-gradient(135deg, #6a5cfe 0%, #8a7cff 100%);
  border: none;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(105, 92, 254, 0.15);
}

#move_submit_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(105, 92, 254, 0.25);
}

  #folderTree .selected {
    background-color: #e0e7ff; /* Tailwind: indigo-100 */
    border-radius: 0.375rem;   /* Tailwind: rounded-md */
    font-weight: 600;          /* Tailwind: font-semibold */
    padding: 2px 4px;
  }

  #folderTree .folder-node .folder-name {
    transition: background-color 0.2s ease;
  }

@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem;
  }
  
  .modal-body {
    padding: 20px 16px;
  }
  
  #folderTree {
    max-height: 200px;
  }
  
  .arrow {
    width: 14px;
    height: 14px;
  }
}

.nav-link.active {
    color: blue !important;
}
.nav-link {
    color: black !important;
}


/* Toast Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}

/* Toast Base Styles */
.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

/* Toast Types */
.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

/* Toast Icon */
.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: #10b981;
}

.toast.error .toast-icon {
    background: #ef4444;
}

.toast.warning .toast-icon {
    background: #f59e0b;
}

.toast.info .toast-icon {
    background: #3b82f6;
}

/* Toast Content */
.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    margin: 0;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Close Button */
.toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    color: #6b7280;
    background: #f3f4f6;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    transform-origin: left;
    animation: progress linear;
}

.toast.success .toast-progress {
    background: #10b981;
}

.toast.error .toast-progress {
    background: #ef4444;
}

.toast.warning .toast-progress {
    background: #f59e0b;
}

.toast.info .toast-progress {
    background: #3b82f6;
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .toast {
        transform: translateY(-100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
    
    .toast.hide {
        transform: translateY(-100px);
    }
}

/* Upload Results Styling */
#uploadResults ul {
    list-style: none;
    padding: 0;
}

#uploadResults li {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

#uploadResults li.success {
    background: #f0fdf4;
    border-color: #10b981;
    color: #047857;
}

#uploadResults li.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

#uploadResults li.warning {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #d97706;
}


    .pdf-wrapper {
        width: 100%;
        height: 200px;
        position: relative;
        overflow: hidden;
        background: white;
    }

    .pdf-mask {
        position: absolute;
        top: 0;
        left: 0;
        width: 7px;
        height: 100%;
        background: inherit;
        z-index: 2;
        pointer-events: none;
    }

    .pdf-iframe {
        width: calc(100% + 20px);
        height: 100%;
        border: none;
        position: relative;
        z-index: 1;
        overflow: hidden;
        pointer-events: none;
    }

    .pdf-wrapper ::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }



    .drag-drop-area {
            border: 2px dashed #dee2e6;
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: grab;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            position: relative;
            overflow: hidden;
        }
        
        .drag-drop-area:hover {
            border-color: #0d6efd;
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
        }
        
        .drag-drop-area.drag-over {
            background: linear-gradient(135deg, #e8f5e8 0%, #c3e6c3 100%);
            transform: scale(1.02);
        }
        
        .upload-icon {
            font-size: 3rem;
            color: #6c757d;
            margin-bottom: 1rem;
            transition: all 0.3s ease;
        }
        
        .drag-drop-area:hover .upload-icon {
            color: #0d6efd;
            transform: scale(1.1);
        }
        
        .drag-drop-area.drag-over .upload-icon {
            color: #198754;
            animation: bounce 0.6s infinite alternate;
        }
        
        @keyframes bounce {
            from { transform: translateY(0px); }
            to { transform: translateY(-10px); }
        }
        
        .file-preview-card {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 12px;
            margin: 8px 0;
            transition: all 0.3s ease;
        }
        .file-preview iframe {
    pointer-events: none; /* disable scrolling inside iframe */
    overflow: hidden; 
}

        
        .file-preview-card:hover {
            background: #e9ecef;
            transform: translateX(5px);
        }
        
        .file-icon {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            margin-right: 12px;
        }
        .file-card {
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.file-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
      z-index: 9999 !important;
}

.file-card .card-header {
    font-size: 0.85rem;
    font-weight: 500;
}

.file-card .dropdown-menu .dropdown-item i {
    width: 18px;
}

.file-preview iframe,
.file-preview img,
.file-preview video {
    border-radius: 10px;
    background: #f8f9fa;
}

.file-preview {
    width: 100%;
    height: 160px;
    overflow: hidden; /* hide scrollbar area */
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff; /* keep background consistent */
}

.file-preview iframe,
.file-preview embed {
   
    width: 100%;
    height: calc(100% + 10px);
    border: none;
    pointer-events: none;
    transform: scale(1.09); /* slight zoom to even out edges */
    transform-origin: center center;
}
.file-card { overflow: visible !important; }
.file-preview { overflow: hidden; border-radius: 12px; }
.dropdown-menu { z-index: 300 !important; }


.selection-checkbox {
    transform: scale(1.1);
}

        .file-icon.image { background: #e3f2fd; color: #1976d2; }
        .file-icon.pdf { background: #ffebee; color: #d32f2f; }
        .file-icon.document { background: #e8f5e9; color: #388e3c; }
        .file-icon.default { background: #f3e5f5; color: #7b1fa2; }
        
        .progress-modern {
            height: 6px;
            border-radius: 3px;
            background: #e9ecef;
            overflow: hidden;
        }
        
        .progress-modern .progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #0d6efd, #198754);
            border-radius: 3px;
            transition: width 0.3s ease;
        }
        
        .btn-modern {
            border-radius: 25px;
            padding: 12px 30px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .btn-modern::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        
        .btn-modern:hover::before {
            left: 100%;
        }
        
        .max-height-200 {
            max-height: 200px;
        }
        
        .folder-structure {
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
            font-size: 0.85rem;
        }


    .nav-pills .nav-link.active {
        background-color: #0d6efd; /* Bootstrap primary blue */
        color: white !important;
    }

    .nav-pills .nav-link {
        color: #0d6efd; /* optional: color for inactive tabs */
    }


.file-item .card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.file-item:hover .card {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.unmarked-card {
    background: linear-gradient(135deg, #fff9d8 0%, #fff3c2 100%);
}


.marked-card {
    background: linear-gradient(135deg, #f0fff4 0%, #e6f7ed 100%);
}

.status-indicator {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-menu {
    min-width: 140px;
}

.dropdown-item {
    font-size: 0.875rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}


.folder-card:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



.progress-modern {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-modern .progress-bar {
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 10px;
    transition: width 0.3s ease;
}



.swal2-container {
  z-index: 99999 !important;
}


.FolderCardIcon {
    display: flex !important; 
}