/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.container {
  height: 100%;
  width: 100%;
  position: relative;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
}

.dag-container {
  height: 100%;
  width: 100%;
  background: transparent;
}

.minimap {
  position: absolute;
  right: 20px;
  bottom: 60px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  &:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
}

[data-theme="dark"] {
  .minimap {
    background: rgba(17, 24, 39, 0.95);
    border-color: #374151;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    
    &:hover {
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
  }
}

.dag-node {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  
  &:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
  }

  .dag-node-icon {
    width: 20px;
    height: 20px;
    margin: 0 10px;
    flex-shrink: 0;
  }

  .dag-node-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
  }
}

.dag-node-status {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 10;
  

  animation: status-pulse 2s ease-in-out infinite;
}


@keyframes node-entrance {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes status-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}


[data-theme="dark"] {
  .dag-node {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border-color: #374151;
    backdrop-filter: blur(8px);
    
    .dag-node-label {
      color: #d1d5db;
    }
    
    &:hover .dag-node-label {
      color: #f3f4f6;
    }
  }
  
  .dag-node-status {
    border-color: #111827;
  }
}
