/* style.css - HeyuOA Professional Design */

/* ============ Reset & Base ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #app {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: #f5f7fa;
  color: #303133;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============ Login Page ============ */
.login-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}
#aurora-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
#aurora-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.login-box {
  width: 400px;
  padding: 40px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.login-form .el-form-item {
  margin-bottom: 20px;
}

.login-form .el-input__wrapper {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  box-shadow: none !important;
}

.login-form .el-input__inner {
  height: 44px;
  font-size: 14px;
  color: #fff !important;
}

.login-form .el-input__inner::placeholder {
  color: rgba(255,255,255,0.5) !important;
}

.login-form .el-input__prefix .el-icon {
  color: rgba(255,255,255,0.5) !important;
}

.login-form .el-button--primary {
  height: 44px;
  font-size: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
}
#aurora-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
#aurora-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.login-box {
  width: 400px;
  padding: 40px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.login-header p {
  font-size: 14px;
  color: #909399;
}

.login-form .el-form-item {
  margin-bottom: 20px;
}

.login-form .el-input__wrapper {
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  box-shadow: none !important;
}

.login-form .el-input__inner {
  height: 44px;
  font-size: 14px;
  color: #fff !important;
}

.login-form .el-input__inner::placeholder {
  color: rgba(255,255,255,0.5) !important;
}

.login-form .el-input__prefix .el-icon {
  color: rgba(255,255,255,0.5) !important;
}

.login-form .el-button--primary {
  height: 44px;
  font-size: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
}

/* ============ Layout ============ */
.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ============ Sidebar ============ */
.sidebar {
  width: 220px;
  background-color: #1a1a2e;
  display: flex;
  flex-direction: column;
  transition: width 0.3s;
  flex-shrink: 0;
}

.sidebar.collapsed {
  width: 64px;
}

.sidebar-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
  color: #fff;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  border-right: none !important;
}

.sidebar-menu::-webkit-scrollbar {
  width: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.sidebar-menu .el-menu-item {
  height: 48px;
  line-height: 48px;
}

.sidebar-menu .el-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.sidebar-menu .el-menu-item.is-active {
  background-color: rgba(64, 158, 255, 0.15) !important;
}

.sidebar-menu .el-sub-menu__title {
  height: 48px;
  line-height: 48px;
}

.sidebar-menu .el-sub-menu__title:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* ============ Main Area ============ */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ============ Topbar ============ */
.topbar {
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #e4e7ed;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.collapse-btn {
  font-size: 20px;
  cursor: pointer;
  color: #606266;
  transition: color 0.2s;
}

.collapse-btn:hover {
  color: #409eff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  font-size: 14px;
  color: #606266;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #409eff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

/* ============ Content Area ============ */
.content-area {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f5f7fa;
}

/* ============ Cards ============ */
.el-card {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.el-card__header {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: #303133;
}

.el-card__body {
  padding: 20px;
}

/* ============ Stat Cards ============ */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card .el-card__body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #303133;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: #909399;
  margin-top: 4px;
}

/* ============ Tables ============ */
.el-table {
  border-radius: 8px;
  overflow: hidden;
}

.el-table th {
  background-color: #fafafa !important;
  color: #606266;
  font-weight: 600;
}

.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background: #fafafa;
}

/* ============ Notice Items ============ */
.notice-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-title {
  font-size: 14px;
  color: #303133;
  margin-bottom: 4px;
}

.notice-date {
  font-size: 12px;
  color: #909399;
}

/* ============ Notice Cards ============ */
.notice-card {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.notice-card:hover {
  background-color: #fafafa;
}

.notice-card:last-child {
  border-bottom: none;
}

.notice-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.notice-card-header h3 {
  font-size: 16px;
  color: #303133;
}

.notice-card-content {
  font-size: 14px;
  color: #606266;
  line-height: 1.6;
  margin-bottom: 8px;
}

.notice-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #909399;
}

/* ============ Chat Box ============ */
.chat-box {
  display: flex;
  flex-direction: column;
  height: 400px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.chat-msg {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.chat-msg strong {
  color: #303133;
  font-size: 14px;
}

.chat-time {
  color: #909399;
  font-size: 12px;
  margin-left: 8px;
}

.chat-msg p {
  margin-top: 4px;
  color: #606266;
  font-size: 14px;
  line-height: 1.5;
}

.chat-input {
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

/* ============ Links ============ */
.link-primary {
  color: #409eff;
  cursor: pointer;
}

.link-primary:hover {
  color: #66b1ff;
  text-decoration: underline;
}

/* ============ Element Plus Overrides ============ */
.el-breadcrumb {
  font-size: 14px;
}

.el-button--primary {
  --el-button-bg-color: #409eff;
  --el-button-border-color: #409eff;
}

.el-tag {
  border-radius: 4px;
}

.el-dialog {
  border-radius: 8px;
}

.el-dialog__header {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 16px;
  margin-right: 0;
}

.el-dialog__footer {
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.el-descriptions {
  margin-top: 0;
}

/* ============ Scrollbar ============ */
.content-area::-webkit-scrollbar {
  width: 6px;
}

.content-area::-webkit-scrollbar-thumb {
  background: #c0c4cc;
  border-radius: 3px;
}

.content-area::-webkit-scrollbar-track {
  background: transparent;
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
  .sidebar {
    width: 64px;
  }
  .sidebar .el-menu-item span,
  .sidebar .el-sub-menu__title span {
    display: none;
  }
  .sidebar-header h2 {
    font-size: 14px;
  }
}

/* ============ Page Header Override ============ */
.el-page-header {
  margin-bottom: 0;
}

/* ============ Tabs ============ */
.el-tabs__header {
  margin-bottom: 20px;
}

/* ============ Timeline ============ */
.el-timeline-item__content h4 {
  font-size: 15px;
  color: #303133;
  margin-bottom: 4px;
}

.el-timeline-item__content p {
  font-size: 13px;
  color: #909399;
}

/* ============ Form Dialog ============ */
.el-form-item {
  margin-bottom: 20px;
}

.el-form-item:last-child {
  margin-bottom: 0;
}
