
/* ========================================================= */
/* ============= Sidebar Layout Styles ===================== */
/* ========================================================= */

.dashboard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: 0.64rem; /* Space for fixed Top Nav */
}

.main-layout-container {
  display: flex;
  max-width: 1400px;
  width: 100%;
  margin: auto; /* Center vertically and horizontally */
  align-items: stretch; /* Stretch columns to equal height */
  gap: 0.24rem; /* Consistent gap between columns */
  padding: 0 0.24rem 0.24rem 0.24rem; /* Add horizontal padding to prevent edge touching */
  box-sizing: border-box;
  height: 800px; /* Fixed total height as requested */
}

/* Override sidebar menu height for fixed layout */
.dashboard-sidebar .sidebar-menu {
  min-height: 0 !important;
  height: 100% !important;
  overflow-y: auto !important; /* Enable scrolling if menu is long */
}

/* ========================================================= */
/* ============= Dashboard Content Styles ================== */
/* ========================================================= */

/* Dashboard Layout Columns */

/* Center Column */
.dashboard-center {
  flex: 1;
  min-width: 0; /* Prevent flex overflow */
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Allow scrolling within fixed height */
}

/* Right Sidebar Column */
.dashboard-right-sidebar {
  width: 3.2rem; /* Fixed width for right column */
  flex-shrink: 0;
  /* position: sticky; Removed sticky as container is fixed height */
  /* top: 0.88rem; */
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Allow scrolling within fixed height */
}

/* Common Card Styles */
.quick-actions-section,
.resource-overview-section,
.user-info-card {
  background: #fff;
  border-radius: 0.2rem;
  padding: 0.24rem;
  margin-bottom: 0.24rem;
  box-shadow: 0 1px 4px rgba(0,21,41,0.08);
  border: 1px solid #EBEEF5;
}

.announcement-card {
  background: #fff;
  border-radius: 0.2rem;
  padding: 0.24rem;
  box-shadow: 0 1px 4px rgba(0,21,41,0.08);
  border: 1px solid #EBEEF5;
  flex: 1; /* Stretch to fill remaining space */
  display: flex;
  flex-direction: column;
}

.management-console-section {
  height: 127px;
  background: #fff;
  border-radius: 0.2rem;
  margin-bottom: 0.24rem;
  box-shadow: 0 1px 4px rgba(0,21,41,0.08);
  border: 1px solid #EBEEF5;
}

.carousel-section {
  background: #fff;
  border-radius: 0.2rem;
  padding: 0;
  margin-bottom: 0.24rem;
  box-shadow: 0 1px 4px rgba(0,21,41,0.08);
  border: 1px solid #EBEEF5;
  overflow: hidden;
}

.carousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.24rem;
  font-weight: bold;
  border-radius: 0;
  cursor: pointer;
}

.bg-banner-1 { background: linear-gradient(135deg, #3699FF 0%, #0077E6 100%); }
.bg-banner-2 { background: linear-gradient(135deg, #7367F0 0%, #5E50EE 100%); }
.bg-banner-3 { background: linear-gradient(135deg, #00BCD4 0%, #00A3B8 100%); }
.bg-banner-4 { background: linear-gradient(135deg, #FF6B6B 0%, #EE5A5A 100%); }

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}

.section-title {
  font-size: 0.18rem;
  font-weight: 600;
  color: #333;
}

.section-subtitle {
  font-size: 0.14rem;
  color: #999;
}

/* Quick Actions */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(1.2rem, 1fr));
  gap: 0.16rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.16rem;
  background: transparent;
  border-radius: 0.2rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #EBEEF5;
}

.action-card:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #E1F0FF;
  transform: translateY(-2px);
}

.action-icon-wrapper {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.08rem;
  font-size: 0.2rem;
}

.action-card span {
  font-size: 0.14rem;
  color: #333;
  font-weight: 500;
}

/* Icon Colors */
.icon-blue { background: #F7F8FB; color: #3699FF; }
.icon-purple { background: #F7F8FB; color: #7367F0; }
.icon-cyan { background: #F7F8FB; color: #00BCD4; }
.icon-pink { background: #F7F8FB; color: #FF6B6B; }

/* Resource Overview */
.resource-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
}

.resource-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.15rem;
  border-radius: 0.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.bg-blue-light { background: #86e77f5c; }
.bg-cyan-light { background: #efe3f7; }
.bg-purple-light { background: #ffb6db57; }
.bg-pink-light { background: #ffe0e0c7; }

.res-name {
  font-size: 0.14rem;
  color: #666;
  margin-bottom: 0.08rem;
}

.res-num {
  font-size: 0.24rem;
  font-weight: bold;
}

.text-blue { color: #39c12f; }
.text-cyan { color: #a650df; }
.text-purple { color: #ff45a3; }
.text-pink { color: #fb3737; }

.res-icon-right {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.2rem;
  opacity: 0.2;
}



/* Console Links */
.console-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.2rem;
}

.console-link-item {
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border: 1px solid #EBEEF5;
  border-radius: 0.08rem;
  cursor: pointer;
  transition: all 0.3s;
}

.console-link-item:hover {
  border-color: #3699FF;
  box-shadow: 0 2px 12px rgba(54, 153, 255, 0.1);
}

.link-icon-wrapper {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 0.08rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.2rem;
  color: #fff;
  margin-right: 0.16rem;
}

.icon-blue-bg { background: #94f38d; }
.icon-cyan-bg { background: #fd8ec8; }
.icon-pink-bg { background: #ffabab; }
.icon-purple-bg { background: #dab6f1; }

.link-details {
  flex: 1;
}

.link-title {
  font-size: 0.16rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.04rem;
}

.link-desc {
  font-size: 0.12rem;
  color: #999;
}

/* User Info Card */
.user-profile-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.24rem;
}

.user-avatar {
  margin-right: 0.16rem;
}

.avatar-circle {
  width: 0.64rem;
  height: 0.64rem;
  background: linear-gradient(135deg, #3699FF 0%, #0077E6 100%);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.24rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(54, 153, 255, 0.3);
}

.user-name {
  font-size: 0.18rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.04rem;
}

.user-email {
  font-size: 0.14rem;
  color: #999;
}

/* Auth Status */
.auth-status-box {
  background: #F9FAFC;
  padding: 0.16rem;
  border-radius: 0.08rem;
  margin-bottom: 0.24rem;
}

.auth-title {
  font-size: 0.14rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.12rem;
}

.auth-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.12rem;
}

.auth-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.12rem;
}

.auth-name { 
  color: #666; 
  display: flex;
  align-items: center;
  gap: 0.04rem;
}
.auth-tag {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.tag-success { background: #def7e5; color: #28c76f; }
.tag-error { background: #fceaea; color: #ea5455; }
.tag-gray { background: #eee; color: #999; }

/* Finance Stats */
.finance-stats-list {
  margin-bottom: 0.24rem;
}

.finance-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.12rem;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid #f0f0f0;
}

.finance-stat-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.stat-label {
  font-size: 0.14rem;
  color: #666;
}

.stat-value {
  font-size: 0.18rem;
  font-weight: bold;
}
.text-purple-bold { color: #7367F0; }
.text-dark { color: #333; }

/* User Action Buttons */
.user-action-btns {
  display: flex;
  gap: 0.12rem;
}

.recharge-btn-flex, .edit-profile-btn-flex {
  flex: 1;
}


.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.16rem;
  padding-bottom: 0.16rem;
  border-bottom: 1px solid #f0f0f0;
}

.header-title { font-size: 0.16rem; font-weight: 600; color: #333; }
.view-all-btn { font-size: 0.12rem; color: #999; cursor: pointer; }

.announce-list {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.announce-item-v {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  margin-top: 0.16rem;
  margin-bottom: 0;
  cursor: pointer;
  padding: 0.16rem;
  border: 1px solid #EBEEF5;
  border-radius: 0.12rem;
  transition: all 0.3s;
  background: #fff;
}

.announce-item-v:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: #3699FF;
  transform: translateY(-2px);
}

.announce-icon-wrapper {
  position: absolute;
  top: -0.1rem;
  left: 0.16rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  flex-shrink: 0;
  font-size: 0.14rem;
  background: #F0F5FF;
  color: #3699FF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #fff;
}

.bg-grey-light { background: #f5f5f5 !important; }
.text-grey { color: #999 !important; }

.announce-content { 
  flex: 1; 
  padding-top: 0rem;
}
.announce-title { font-size: 0.15rem; font-weight: 600; color: #333; margin-bottom: 0.06rem; }
.announce-desc { 
  font-size: 0.13rem; 
  color: #666; 
  margin-bottom: 0.08rem; 
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.announce-time { 
  position: absolute;
  top: -0.02rem;
  right: -0.08rem;
  font-size: 0.12rem;
  color: #fff;
  background: #3699FF;
  padding: 0.02rem 0.08rem;
  border-radius: 0.04rem 0 0 0.04rem;
  box-shadow: -2px 2px 4px rgba(54, 153, 255, 0.2);
}

.announce-time::after {
  content: '';
  position: absolute;
  bottom: -0.04rem;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.04rem 0.08rem 0 0;
  border-color: #2b7ac9 transparent transparent transparent;
}
