.grid-stack-container {
  position: relative;
}

.grid-stack-container.edit-mode-active {
  padding: 1rem;
  background: rgba(var(--v-theme-surface), 0.5);
  border-radius: 12px;
}

.grid-stack-item {
  position: relative;
}

.grid-stack-item.edit-mode {
  cursor: move;
}

.grid-stack-item.edit-mode:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.grid-stack-item.edit-mode .grid-stack-item-content {
  border-radius: 8px;
}

.grid-stack-item-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.grid-stack-item-content > * {
  flex: 1;
  margin-bottom: 3.2rem;
}

.grid-stack-item:has(AgGridTable) {
  height: 100vh !important;
}

.grid-stack-item:has(AgGridTable) .grid-stack-item-content {
  height: 100vh;
}

.edit-mode-banner {
  position: relative;
  margin: 0 0 2rem 0;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg,
      rgba(var(--v-theme-primary), 0.9) 0%,
      rgba(var(--v-theme-secondary), 0.8) 50%,
      rgba(var(--v-theme-accent), 0.9) 100%);
  box-shadow: 0 8px 32px rgba(var(--v-theme-primary), 0.3),
    0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.banner-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 70%);
}

.banner-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(2px 2px at 20% 30%,
      rgba(255, 255, 255, 0.3),
      transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40% 80%, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200px 200px, 150px 150px, 100px 100px, 250px 250px;
}

.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  gap: 1.5rem;
}

.banner-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.banner-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.edit-icon {
  color: white;
  z-index: 2;
}

.icon-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
}

.banner-text {
  flex: 1;
}

.banner-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.banner-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
}

.banner-decorations {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.decoration {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.decoration-1 {
  width: 80px;
  height: 80px;
  top: -40px;
  right: 10%;
}

.decoration-2 {
  width: 60px;
  height: 60px;
  bottom: -30px;
  left: 15%;
}

.decoration-3 {
  width: 40px;
  height: 40px;
  top: 50%;
  right: 5%;
}

.drag-handle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  cursor: grab;
  padding: 6px;
  border-radius: 50%;
  background: rgba(var(--v-theme-primary), 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: white;
}

.drag-handle:hover {
  background: rgba(var(--v-theme-primary), 1);
  transform: scale(1.1);
}

.drag-handle:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.delete-btn-chart {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  opacity: 1 !important;
  background: #dc2626 !important;
  color: white !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  min-width: auto !important;
  height: 28px !important;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.delete-btn-chart:hover {
  background: #b91c1c !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
}

.delete-btn-chart:active {
  transform: scale(0.95);
}

.edit-mode:hover .drag-handle {
  opacity: 1;
}

.custom-toggle {
  .v-selection-control__input {
    .v-switch__track {
      background-color: rgba(255, 255, 255, 0.3) !important;
      opacity: 1 !important;
    }
  }
  
  &.v-switch--on .v-selection-control__input {
    .v-switch__track {
      background-color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .v-switch__thumb {
      background-color: rgba(var(--v-theme-primary), 1) !important;
    }
  }
  
  .v-label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }

  .banner-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .banner-title {
    font-size: 1.2rem;
  }

  .banner-subtitle {
    font-size: 0.85rem;
  }

  .edit-mode .drag-handle {
    opacity: 0.7;
  }

  .delete-btn-chart {
    font-size: 11px !important;
    padding: 3px 6px !important;
    height: 24px !important;
  }

  .auto-compact-switch {
    .v-switch__track {
      width: 44px !important;
      height: 22px !important;
    }
    
    .v-switch__thumb {
      width: 18px !important;
      height: 18px !important;
    }
    
    .v-label {
      font-size: 0.85rem;
    }
  }
}