// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
  
  // 玻璃质感重写 - Dialog
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.7) !important; // 再次降低不透明度
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  overflow: hidden;

  .el-dialog__header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-right: 0 !important;
    padding: 20px 24px !important;
    
    .el-dialog__title {
      font-weight: 600;
      color: #1e293b;
    }
    
    .el-dialog__headerbtn {
      top: 24px;
      right: 24px;
      
      .el-dialog__close {
        color: #94a3b8;
        font-weight: bold;
        transition: all 0.3s;
        
        &:hover {
          color: #ef4444; // 红色关闭按钮
          transform: rotate(90deg);
        }
      }
    }
  }

  .el-dialog__body {
    background: transparent !important;
    padding: 24px !important;
    color: #334155;
  }

  .el-dialog__footer {
    padding: 16px 24px 24px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent !important;
  }
}

// 玻璃质感重写 - Drawer
.el-drawer {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.5) !important;
  
  .el-drawer__header {
    background: transparent !important;
    margin-bottom: 0 !important;
    padding: 20px 24px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    
    span {
      font-weight: 600;
      color: #1e293b;
      font-size: 18px;
    }
    
    .el-drawer__close-btn {
      transition: all 0.3s;
      &:hover {
        color: #ef4444;
        transform: rotate(90deg);
      }
    }
  }
  
  .el-drawer__body {
    background: transparent !important;
    padding: 24px !important;
    color: #334155;
  }
  
  .el-drawer__footer {
    padding: 16px 24px 24px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent !important;
  }
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse
  > div
  > .el-submenu
  > .el-submenu__title
  .el-submenu__icon-arrow {
  display: none;
}

.el-dropdown .el-dropdown-link{
  color: var(--el-color-primary) !important;
}

// 强制覆盖 - 现代化弹窗样式 - 极简白毛玻璃效果
body {
  // 现代化弹窗样式 - 极简白毛玻璃效果
  .el-message {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    padding: 12px 20px !important;
    min-width: 300px !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background: rgba(255, 255, 255, 0.95) !important; // 统一纯白高透明度背景
    
    .el-message__content {
      font-weight: 500 !important;
      font-size: 14px !important;
      color: #303133 !important; // 统一深色文字
    }
    
    .el-icon {
      margin-right: 10px !important;
      font-size: 18px !important;
    }
    
    // 状态仅通过图标颜色区分，去除背景和边框色差异
    &.el-message--success {
      background: rgba(255, 255, 255, 0.95) !important;
      border-color: rgba(255, 255, 255, 0.6) !important;
      .el-icon { color: #67c23a !important; }
    }
    
    &.el-message--warning {
      background: rgba(255, 255, 255, 0.95) !important;
      border-color: rgba(255, 255, 255, 0.6) !important;
      .el-icon { color: #e6a23c !important; }
    }
    
    &.el-message--error {
      background: rgba(255, 255, 255, 0.95) !important;
      border-color: rgba(255, 255, 255, 0.6) !important;
      .el-icon { color: #f56c6c !important; }
    }
    
    &.el-message--info {
      background: rgba(255, 255, 255, 0.95) !important;
      border-color: rgba(255, 255, 255, 0.6) !important;
      .el-icon { color: #909399 !important; }
    }
  }

  // 现代化 Notification 样式 - 纯白风格
  .el-notification {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 16px 24px !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    
    .el-notification__title {
      font-weight: 600 !important;
      font-size: 16px !important;
      color: #303133 !important;
    }
    
    .el-notification__content {
      color: #606266 !important;
      font-size: 14px !important;
      margin-top: 8px !important;
    }
    
    // 成功通知图标
    .el-notification__icon.el-icon-success { color: #67c23a !important; }
    .el-notification__icon.el-icon-warning { color: #e6a23c !important; }
    .el-notification__icon.el-icon-error { color: #f56c6c !important; }
    .el-notification__icon.el-icon-info { color: #909399 !important; }
  }

  // 现代化 MessageBox 样式 - 纯白风格
  .el-message-box {
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding-bottom: 24px !important;
    
    .el-message-box__header {
      padding: 24px 24px 12px !important;
      .el-message-box__title {
        font-weight: 600 !important;
        font-size: 18px !important;
        color: #303133 !important;
      }
    }
    
    .el-message-box__content {
      padding: 12px 24px 24px !important;
      font-size: 14px !important;
      color: #606266 !important;
    }
    
    .el-message-box__btns {
      padding: 0 24px !important;
    }
  }
}