/* Base layout and common styles */

/* Body and main layout */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  height: auto;
  background-color: #fff;
}

.main-layout {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.main-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  transition: margin-left 0.3s ease;
}

.main-content {
  flex: 1;
  padding: 32px 48px 48px 48px;
}

/* Mobile hamburger menu button */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: #20212D;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-toggle.hidden {
  opacity: 0;
  visibility: hidden;
}

.mobile-menu-toggle:hover {
  background: #494A56;
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* Toast notification system */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 500;
  max-width: 300px;
  word-wrap: break-word;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  pointer-events: auto;
}

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

.toast.success {
  background: #28a745;
}

.toast.error {
  background: #dc3545;
}

.toast.info {
  background: #17a2b8;
}

.toast.warning {
  background: #ffc107;
  color: #333;
}

/* Drag and drop visual feedback - DISABLED (using specific dropzone instead) */
/* body.drag-over {
  background-color: rgba(0, 123, 255, 0.1);
}

body.drag-over::before {
  content: "Drop files here to upload";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 123, 255, 0.9);
  color: white;
  padding: 20px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  z-index: 1000;
  pointer-events: none;
} */

/* Modal styles */
.modal-input-group {
  margin: 16px 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.modal-cancel-btn {
  display: none;
  background: #ccc;
  color: #000;
}

.modal-confirm-btn {
  display: none;
}


/* Responsive design - mobile and landscape */
@media (max-width: 768px), (max-height: 500px) and (orientation: landscape) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-content-wrapper {
    margin-left: 0;
  }
  
  .main-content {
    padding: 8px 12px 16px 12px;
    margin-top: 50px; /* Reduced space for mobile menu button */
  }
  
  .toast-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    max-width: none;
    font-size: 13px;
    padding: 10px 16px;
  }
  
  /* Reduce overall font sizes on mobile */
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 12px 16px 20px 16px;
  }
}
