/* RooboCloud console - layout & component styles on top of Element Plus */

.rc-root { height: 100%; }

/* ---------------- login ---------------- */
.rc-login {
  height: 100%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #3a7bd5 0%, #2b5876 55%, #1f364d 100%);
  padding: 16px; overflow: auto;
}
.rc-login-box {
  width: 420px; max-width: 100%; background: #fff; border-radius: 12px;
  padding: 34px 30px 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}
.rc-login-head { text-align: center; margin-bottom: 26px; }
.rc-login-logo { font-size: 24px; font-weight: 700; letter-spacing: 1px; color: #303133; }
.rc-login-sub { margin-top: 6px; font-size: 13px; color: #909399; }
.rc-login-extra { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 16px; }
.rc-login-btn { width: 100%; letter-spacing: 4px; }
.rc-login-alert { margin-top: 14px; }
.rc-login-foot { margin-top: 18px; text-align: center; font-size: 12px; color: #a8abb2; }

/* ---------------- shell ---------------- */
.rc-shell { height: 100%; }
.rc-aside {
  background: #fff; border-right: 1px solid #e4e7ed; overflow: hidden;
  display: flex; flex-direction: column; transition: width .2s ease;
}
.rc-brand {
  height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  font-weight: 700; font-size: 16px; color: #303133; cursor: pointer;
  border-bottom: 1px solid #f0f2f5; white-space: nowrap; overflow: hidden;
}
.rc-brand-icon { font-size: 20px; color: #409eff; }
.rc-menu { flex: 1; overflow-y: auto; overflow-x: hidden; border-right: none; }
.rc-menu:not(.el-menu--collapse) { width: 100%; }

.rc-header {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid #e4e7ed; padding: 0 12px;
}
.rc-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rc-header-right { display: flex; align-items: center; gap: 10px; }
.rc-crumb { font-size: 13px; white-space: nowrap; overflow: hidden; }
.rc-user { display: flex; align-items: center; gap: 6px; cursor: pointer; outline: none; }
.rc-avatar { background: #409eff; font-size: 12px; }
.rc-user-name { font-size: 13px; color: #606266; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rc-main { padding: 14px; overflow: auto; background: #f5f7fa; }
.rc-boot { height: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; color: #909399; }

/* ---------------- page ---------------- */
.rc-page { max-width: 1560px; margin: 0 auto; }
.rc-page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.rc-page-title { margin: 0; font-size: 18px; font-weight: 600; color: #303133; }
.rc-page-desc { margin-top: 4px; font-size: 12px; color: #909399; }
.rc-block { margin-top: 14px; }
.rc-sub { font-size: 12px; color: #a8abb2; }
.rc-empty { color: #c0c4cc; font-size: 12px; }
.rc-tag { margin-right: 4px; margin-bottom: 2px; }
.rc-ua { font-size: 12px; color: #606266; word-break: break-all; }

.rc-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rc-toolbar-right { margin-left: auto; }
.rc-w180 { width: 180px; }
.rc-w200 { width: 200px; }
.rc-w150 { width: 150px; }
.rc-pager { display: flex; justify-content: flex-end; margin-top: 12px; }

/* ---------------- stat cards ---------------- */
.rc-stats { margin-bottom: 14px; }
.rc-stat-card { text-align: center; }
.rc-stat-label { font-size: 12px; color: #909399; }
.rc-stat-value { margin-top: 6px; font-size: 26px; font-weight: 600; color: #303133; line-height: 1.2; }
.rc-stat-sub { margin-top: 4px; font-size: 12px; color: #a8abb2; }

/* ---------------- password strength ---------------- */
.rc-pwd-strength { display: flex; align-items: center; gap: 10px; width: 100%; }
.rc-pwd-bar { flex: 1; height: 6px; background: #ebeef5; border-radius: 3px; overflow: hidden; }
.rc-pwd-bar > i { display: block; height: 100%; border-radius: 3px; transition: width .25s ease; }
.rc-pwd-bar > i.lv-weak { background: #f56c6c; }
.rc-pwd-bar > i.lv-fair { background: #e6a23c; }
.rc-pwd-bar > i.lv-good { background: #409eff; }
.rc-pwd-bar > i.lv-strong { background: #67c23a; }
.rc-pwd-text { font-size: 12px; color: #909399; width: 32px; }
.rc-pwd-tip { font-size: 12px; color: #e6a23c; margin-top: -8px; }

/* ---------------- permission tree ---------------- */
.rc-perm-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; width: 100%; }
.rc-perm-search { width: 160px; }
.rc-perm-tree {
  width: 100%; max-height: 340px; overflow: auto; border: 1px solid #e4e7ed;
  border-radius: 6px; padding: 6px;
}
.rc-tree-node { font-size: 13px; }
.rc-perm-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-yes { color: #67c23a; }
.rc-no { color: #c0c4cc; }

/* ---------------- profile ---------------- */
.rc-sec-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px; border-bottom: 1px dashed #f0f2f5;
}
.rc-sec-progress { margin-top: 10px; }

/* ---------------- legacy iframe ---------------- */
.rc-legacy { display: flex; flex-direction: column; height: calc(100vh - 84px); }
.rc-legacy-bar {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #fff; border: 1px solid #e4e7ed; border-radius: 6px; margin-bottom: 10px; flex-wrap: wrap;
}
.rc-legacy-text { font-size: 12px; color: #909399; }
.rc-legacy-frame { flex: 1; width: 100%; border: none; border-radius: 6px; background: #fff; min-height: 420px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1200px) {
  .rc-stat-value { font-size: 22px; }
}
@media (max-width: 768px) {
  .rc-main { padding: 10px; }
  .rc-page-head { align-items: stretch; }
  .rc-w180, .rc-w200, .rc-w150 { width: 100%; }
  .rc-toolbar-right { margin-left: 0; width: 100%; }
  .rc-pager { justify-content: center; }
  .rc-login-box { padding: 26px 20px 18px; }
  .rc-stat-value { font-size: 20px; }
  .rc-crumb { display: none; }
}
@media (max-width: 480px) {
  .rc-header { padding: 0 6px; }
  .rc-user-name { display: none; }
}
