<template>
  <div class="header-box bg-white dark:bg-dark-900">
    <DesignLogo />
    <div class="header-title">{{ title }}</div>
    <div class="button-box">
      <slot name="buttons"></slot>
    </div>
  </div>
</template>

<script setup lang="ts">
  import { DesignLogo } from '/@/components/ModalPanel/index';
  withDefaults(
    defineProps<{
      title: string;
    }>(),
    {
      title: '',
    },
  );
</script>

<style lang="less" scoped>
  .header-box {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    position: relative;
  }

  // .box-shadow {
  //   box-shadow: 5px 5px 5px rgb(0 0 0 / 10%);
  // }

  .left {
    display: flex;
    align-items: center;
  }

  .header-title {
    position: absolute;
    left: 0;
    right: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-align: center;
  }

  [data-theme='dark'] .header-title {
    color: #fff;
  }

  .button-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  :deep(.design-button) {
    display: flex;
  }

  :deep(.common-button) {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  :deep(.common-todo-button) {
    background-color: #ff8000;
    border-color: #ff8000;
    color: #fff;
  }

  :deep(.common-todo-button:hover) {
    background-color: #ff8000;
    border-color: #ff8000;
    color: #fff;
  }

  :deep(.common-todo-button:focus) {
    background-color: #ff8000;
    border-color: #ff8000;
    color: #fff;
  }

  :deep(.common-clean-button) {
    background-color: #ff8989;
    border-color: #ff8989;
    color: #fff;
  }

  :deep(.common-clean-button:hover) {
    background-color: #ff8989;
    border-color: #ff8989;
    color: #fff;
  }

  :deep(.common-clean-button:focus) {
    background-color: #ff8989;
    border-color: #ff8989;
    color: #fff;
  }

  :deep(.clean-icon) {
    background-color: @clear-color;
    border-color: @clear-color;
  }

  :deep(.button-box) {
    button {
      margin-left: 10px;
      width: 82px;
    }
  }
</style>
