// node-details-modal.component.scss

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-bottom: none;
    
    .modal-title {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      color: white;
      display: flex;
      align-items: center;
      gap: 8px;
      
      i {
        font-size: 20px;
      }
    }
    
    .close {
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: white;
      opacity: 0.8;
      transition: opacity 0.2s ease;
      
      &:hover {
        opacity: 1;
      }
    }
  }
  
  .modal-body {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
  }
  
  .modal-layout {
    display: flex;
    flex: 1;
    min-height: 0;
  }
  
  .modal-sidebar {
    width: 320px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 24px;
    overflow-y: auto;
    flex-shrink: 0;
  }
  
  .modal-content-main {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: white;
  }
  
  .node-configuration {
    .config-section {
      margin-bottom: 24px;
      
      &:last-child {
        margin-bottom: 0;
      }
    }
    
    .config-heading {
      font-size: 14px;
      font-weight: 600;
      color: #495057;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
      
      i {
        color: #e74c3c;
        font-size: 16px;
      }
    }
    
    .config-content {
      .form-group {
        margin-bottom: 16px;
        
        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }
  
  .input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 4px;
  }
  
  .form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #f8f9fa;
    color: #495057;
    
    &:disabled {
      background: #e9ecef;
      color: #6c757d;
      cursor: not-allowed;
    }
  }
  
  .type-display, .loading-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
  }
  
  .node-type-icon {
    color: #e74c3c;
    font-size: 16px;
  }
  
  .node-details-content {
    .form-fieldset {
      margin-bottom: 24px;
      border: 1px solid #e9ecef;
      border-radius: 4px;
      padding: 0;
      
      &:last-child {
        margin-bottom: 0;
      }
    }
    
    .form-legend {
      font-size: 14px;
      font-weight: 600;
      color: #495057;
      margin-bottom: 0;
      padding: 12px 16px;
      background: #f8f9fa;
      border-bottom: 1px solid #e9ecef;
      width: 100%;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .status-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      padding: 16px;
    }
    
    .custom-fields-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 16px;
      padding: 16px;
    }
    
    .technical-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      padding: 16px;
    }
    
    .form-field {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    
    .status-item {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    
    .status-label {
      font-size: 12px;
      font-weight: 500;
      color: #6c757d;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .status-value {
      display: flex;
      align-items: center;
    }
  }
  
  // Status indicators
  .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    
    &.active {
      background: #d4edda;
      color: #155724;
    }
    
    &.inactive {
      background: #f8d7da;
      color: #721c24;
    }
    
    &.warning {
      background: #fff3cd;
      color: #856404;
    }
    
    &.error {
      background: #f8d7da;
      color: #721c24;
    }
  }
  
  .toggle-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #e9ecef;
    color: #495057;
    
    &.expanded {
      background: #d4edda;
      color: #155724;
    }
  }
  
  .root-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #e9ecef;
    color: #495057;
    
    &.is-root {
      background: linear-gradient(135deg, #FFD700, #FFA500);
      color: white;
    }
  }
  
  .loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #e9ecef;
    color: #495057;
    
    &.is-loading {
      background: #fff3cd;
      color: #856404;
      
      .fa-spinner {
        animation: spin 1s linear infinite;
      }
    }
  }
  
  .empty-attributes-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    
    .empty-icon {
      font-size: 48px;
      color: #dee2e6;
      margin-bottom: 16px;
    }
    
    h4 {
      margin: 0 0 8px 0;
      font-size: 18px;
      font-weight: 600;
      color: #495057;
    }
    
    p {
      margin: 0;
      font-size: 14px;
    }
  }
  
  .modal-footer {
    padding: 12px 24px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    
    .btn {
      padding: 8px 16px;
      border: none;
      border-radius: 4px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      
      &.btn-secondary {
        background: #6c757d;
        color: white;
        
        &:hover {
          background: #5a6268;
        }
      }
    }
  }
  
  // Responsive design
  @media (max-width: 768px) {
    .modal-layout {
      flex-direction: column;
    }
    
    .modal-sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #e9ecef;
      max-height: 200px;
    }
    
    .status-grid,
    .custom-fields-grid,
    .technical-grid {
      grid-template-columns: 1fr;
    }
  }


  