.compass-widget {
  width: 100%;
  height: 100%;

  .ant-card {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .ant-card-body {
    background: transparent;
  }


  .ant-card-head {
    min-height: 32px;
    padding: 0 8px;
  }

  .ant-card-head-title {
    padding: 6px 0;
    font-size: 12px;
  }

  .ant-card-body {
    padding: 6px 8px;
  }

  &.is-edit,
  &.is-locked {
    .ant-card-body {
      padding: 0;
    }
  }



  .compass-content {
    padding: 6px 0;
  }


  .compass-minimal {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #1890ff;
  }

  .compass-settings-btn {
    margin-left: 6px;
    padding: 2px 6px;
    border: 1px solid rgba(24, 144, 255, 0.4);
    background: rgba(255, 255, 255, 0.6);
    color: #1890ff;
    font-size: 10px;
    line-height: 1;
    border-radius: 10px;
    cursor: pointer;
  }

  .compass-settings {
    max-width: 220px;
  }


  .compass-minimal__dir {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
  }

  .compass-minimal__deg {
    font-size: 12px;
    color: #7aa5ff;
  }






  .compass-handle {
    cursor: default;
    user-select: none;
  }

  .compass-rnd.editable .compass-handle {
    cursor: move;
  }



  .compass-circle {
    width: 60px;
    height: 60px;
    margin: 6px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  }

  .compass-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 26px solid #ff4444;
    top: 8px;
    left: 50%;
    transform-origin: 50% 26px;
    transform: translateX(-50%);
    transition: transform 0.3s ease;
  }

  .compass-n {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: #fff;
  }

  .compass-data {
    margin-top: 6px;
    font-size: 11px;
  }

  .data-item {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    
    .label {
      color: #999;
      font-size: 11px;
    }
    
    .value {
      font-weight: bold;
      color: #1890ff;
      font-size: 11px;
    }
  }


  .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    position: absolute;
    top: 8px;
    right: 8px;
    
    &.connected {
      background: #52c41a;
      box-shadow: 0 0 6px #52c41a;
    }
    
    &.disconnected {
      background: #ff4d4f;
    }
  }

  .compass-tools {
    margin-top: 6px;
    font-size: 10px;
    display: block;
    visibility: visible;
    opacity: 1;
    max-height: none;
    overflow: visible;
  }



  .tool-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 4px;
  }

  .tool-label {
    color: #666;
    margin-right: 2px;
    font-size: 10px;
  }


  .tool-actions {
    justify-content: center;
  }
}

