body {
  background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
  min-height: 100vh;
  margin: 0;
  font-family: "Arial", sans-serif;
}

.main-container {
  min-height: 100vh;
  position: relative;
}

/* Header Styles */
.navbar {
  background: transparent;
  padding: 20px 40px;
}

.navbar-brand {
  color: white !important;
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-link {
  color: white !important;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

.dropdown-menu {
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Form Styles */
.form-section {
  max-width: 600px;
  margin: 0 auto;
}

.form-control {
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 1rem;
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Editor Styles */
.editor-input {
  height: 48px;
}

.editor-textarea {
  height: 128px;
  resize: none;
}

.add-section-btn {
  border: 4px dashed rgba(255, 255, 255, 0.6);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

.add-section-btn:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.05);
}

.section-delete-btn {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.section-delete-btn:hover {
  background: #5a6268;
  opacity: 1;
}

/* Tool Icons */
.tool-icon {
  background: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  transition: all 0.3s ease;
  user-select: none;
}

.tool-icon:active {
  cursor: grabbing;
}

.tool-icon:hover {
  background: #f8f9fa;
}

.tool-icon img {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* Slides Container */
.slides-container {
  width: 100vw;
  margin: 0;
  padding: 0 60px;
  position: relative;
}

.slides-wrapper {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.slide-item {
  flex-shrink: 0;
  position: relative;
}

.slide-content {
  width: 432px;
  height: 243px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solid-slide {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.solid-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.add-slide {
  border: 4px dashed rgba(255, 255, 255, 0.8);
  background: transparent;
}

.add-slide:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

.plus-icon {
  color: white;
  font-size: 3rem;
  font-weight: bold;
}

.slide-number {
  color: #666;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Slide Action Buttons */
.slide-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  gap: 8px;
}

.slide-item:hover .slide-actions {
  display: flex;
}

.slide-action-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dee2e6;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #6c757d;
}

.slide-action-btn:hover {
  background: white;
  color: #495057;
}

.slide-action-btn.delete:hover {
  color: #dc3545;
}

/* Drag Indicator */
.drag-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  opacity: 0.3;
  color: #6c757d;
  cursor: grab;
  transition: opacity 0.3s ease;
}

.drag-indicator:hover {
  opacity: 0.6;
}

.drag-indicator:active {
  cursor: grabbing;
}

/* Scroll Buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
  z-index: 10;
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.scroll-left {
  left: 10px;
}

.scroll-right {
  right: 10px;
}

/* Bottom Buttons */
#bottomButtons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 1000;
}

#bottomButtons .btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 12px 30px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

#bottomButtons .btn:hover {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none !important;
}

#bottomButtons .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Media Library Styles */
.upload-area {
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-area:hover {
  border-color: #6c757d !important;
}

.media-item {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.media-thumbnail {
  aspect-ratio: 1;
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.media-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slide Content Styles - Teljesen újratervezve */
.slide-content-wrapper {
  width: 100%;
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.slide-logo {
  margin-bottom: 6px;
  flex-shrink: 0;
  height: 16px;
}

.slide-logo img {
  height: 48px;
}

.slide-sections {
  display: flex;
  gap: 6px;
  flex: 1;
  min-height: 0;
  height: calc(100% - 22px);
  /* Teljes magasság mínusz logo */
}

.slide-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.slide-section-content {
  flex: 1;
  overflow: hidden;
  min-height: 0;
  height: calc(100% - 20px);
  /* Hely az ikonoknak */
  display: flex;
  padding-left: 1em;
  padding-right: 1em;
  flex-direction: column;
}

.slide-title {
  font-weight: bold;
  color: #212529;
  margin: 0 0 4px 0;
  line-height: 1.1;
  flex-shrink: 0;
  overflow: hidden;
  word-wrap: break-word;
  hyphens: auto;
  padding-top: 0.7em;
}

.slide-description {
  color: #495057;
  line-height: 1.2;
  margin: 0;
  flex: 1;
  overflow: hidden;
  word-wrap: break-word;
  hyphens: auto;
}

.slide-icons {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  flex-shrink: 0;
  height: 18px;
  overflow: hidden;
  align-items: flex-start;
}

.slide-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #212529;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.slide-icon img {
  width: 7px;
  height: 7px;
}

/* Drag and Drop Styles */
.slide-dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.slide-drag-over {
  border: 2px dashed #007bff !important;
}

.dropdown-toggle::after {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }

  .slides-container {
    padding: 0 20px;
  }

  .slide-content {
    width: 320px;
    height: 180px;
  }

  .save-section {
    bottom: 20px;
    right: 20px;
  }

  .tool-icon {
    width: 40px;
    height: 40px;
  }

  .tool-icon img {
    width: 16px;
    height: 16px;
  }
}

#editorSection .btn-link {
  text-decoration: none !important;
}

.border-dashed {
  border-style: dashed !important;
}

/* Icon delete button - csak hover-re látható */
.icon-container {
  position: relative;
}

.icon-container .bg-danger {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.icon-container:hover .bg-danger {
  opacity: 1;
}

/* Fullscreen presentation icons */
/*
.slide-icon-clickable {
  width: 24px !important;
  height: 24px !important;
}

.slide-icon-clickable img {
  width: 16px !important;
  height: 16px !important;
}*/

/* Egyenlő oszlopszélességek */
.w-33 {
  width: 33.333333% !important;
}