/* Move File Module Styles */

/* Move Modal Content */
.move-modal-content {
  padding: 20px;
  max-width: 500px;
}

.move-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.path-input-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.path-input-container input {
  flex: 1;
}

.path-input-container button {
  white-space: nowrap;
}

.current-path-info {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 5px;
  border-left: 4px solid #007bff;
}

.current-path-info code {
  background: #e9ecef;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
}

.move-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Directory Browser */
.directory-browser-content {
  padding: 0;
  max-width: 600px;
  max-height: 500px;
}

.directory-browser {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.browser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.browser-header h4 {
  margin: 0;
  color: #495057;
}

.browser-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: 300px;
}

.current-path-display {
  margin-bottom: 15px;
  padding: 10px;
  background: #e9ecef;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
}

.directory-list {
  max-height: 200px;
  overflow-y: auto;
}

.directory-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.directory-item:hover {
  background: #f8f9fa;
}

.directory-item i {
  margin-right: 10px;
  color: #6c757d;
}

.directory-item.parent-directory {
  font-style: italic;
  color: #6c757d;
}

.directory-item.parent-directory i {
  color: #007bff;
}

.no-directories,
.loading,
.error {
  text-align: center;
  padding: 20px;
  color: #6c757d;
}

.error {
  color: #dc3545;
}

.browser-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

/* Success/Error Popups */
.move-success-popup,
.move-error-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 0;
  max-width: 400px;
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.popup-content {
  padding: 30px;
  text-align: center;
}

.popup-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.popup-icon.success {
  color: #28a745;
}

.popup-icon.error {
  color: #dc3545;
}

.popup-message {
  font-size: 16px;
  margin-bottom: 20px;
  color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
  .move-modal-content {
    padding: 15px;
  }
  
  .path-input-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .path-input-container button {
    width: 100%;
  }
  
  .move-actions {
    flex-direction: column;
  }
  
  .browser-footer {
    flex-direction: column;
  }
  
  .directory-browser-content {
    max-height: 400px;
  }
  
  .browser-body {
    max-height: 250px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .current-path-info {
    background: #343a40;
    color: #f8f9fa;
  }
  
  .current-path-info code {
    background: #495057;
    color: #f8f9fa;
  }
  
  .browser-header {
    background: #343a40;
    color: #f8f9fa;
  }
  
  .browser-footer {
    background: #343a40;
    color: #f8f9fa;
  }
  
  .current-path-display {
    background: #495057;
    color: #f8f9fa;
  }
  
  .directory-item:hover {
    background: #495057;
  }
}
