/* Modern Dashboard Styles */
:root {
  --dashboard-primary: #aa2325;
  --dashboard-success: #2ecc71;
  --dashboard-warning: #f39c12;
  --dashboard-danger: #e74c3c;
  --dashboard-info: #1abc9c;
  --dashboard-dark: #242c44;
  --dashboard-light: #ecf0f1;
  --dashboard-gray: #95a5a6;
  --dashboard-border: #e0e0e0;
  --dashboard-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --dashboard-hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  --dashboard-radius: 12px;
  --dashboard-transition: all 0.3s ease;
}

/* RTL Specific Adjustments for Sidebar */
html[dir="rtl"] .modern-account-nav li.is-active a {
  border-right: none;
  border-left: 3px solid var(--dashboard-primary);
}

/* Main Dashboard Container */
.modern-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 15px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dashboard Header with Profile */
.dashboard-header {
  display: flex;
  gap: 24px;
  margin-bottom: 10px;
}

.profile-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: var(--dashboard-radius);
  box-shadow: var(--dashboard-shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  transition: var(--dashboard-transition);
}

.profile-card:hover {
  box-shadow: var(--dashboard-hover-shadow);
  transform: translateY(-3px);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--dashboard-primary) 0%, rgba(170, 35, 37, 0.1) 100%);
  border-radius: 0 0 0 100%;
  opacity: 0.1;
  z-index: 0;
}

.profile-avatar {
  text-align: center;
  z-index: 1;
}

.profile-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--dashboard-transition);
}

.profile-avatar img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.profile-info {
  text-align: center;
  z-index: 1;
}

.profile-info h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dashboard-dark);
}

.profile-email {
  font-size: 14px;
  color: var(--dashboard-gray);
  margin-bottom: 12px;
}

.edit-profile-btn {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--dashboard-primary);
  color: white;
  font-size: 13px;
  font-weight: 500;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--dashboard-transition);
  border: none;
  cursor: pointer;
}

.edit-profile-btn:hover {
  background-color: #2980b9;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
  transform: translateY(-2px);
}

.profile-progress {
  margin-top: 10px;
  z-index: 1;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--dashboard-dark);
  margin-bottom: 8px;
}

.progress-bar {
  height: 8px;
  background-color: #f1f1f1;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(to right, var(--dashboard-primary), #8a1c1e);
  border-radius: 4px;
  transition: width 0.8s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
                             rgba(255,255,255,0) 0%, 
                             rgba(255,255,255,0.4) 50%, 
                             rgba(255,255,255,0) 100%);
  animation: shimmer 1.5s infinite;
}

.progress-percent {
  font-size: 12px;
  color: var(--dashboard-primary);
  font-weight: 600;
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

/* Welcome Message */
.welcome-message {
  flex: 2;
  background: #fff;
  border-radius: var(--dashboard-radius);
  box-shadow: var(--dashboard-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--dashboard-transition);
  position: relative;
  overflow: hidden;
}

.welcome-message::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(170, 35, 37, 0.05), transparent);
  z-index: 0;
}

.welcome-message:hover {
  box-shadow: var(--dashboard-hover-shadow);
  transform: translateY(-3px);
}

.welcome-message h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--dashboard-dark);
  position: relative;
  z-index: 1;
}

.welcome-message p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dashboard-gray);
  position: relative;
  z-index: 1;
}

/* Dashboard Stats */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--dashboard-radius);
  box-shadow: var(--dashboard-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--dashboard-transition);
  position: relative;
  overflow: hidden;
}

.stat-card:nth-child(1) {
  background: linear-gradient(135deg, #fff 0%, rgba(170, 35, 37, 0.1) 100%);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #fff 0%, rgba(46, 204, 113, 0.1) 100%);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #fff 0%, rgba(243, 156, 18, 0.1) 100%);
}

.stat-card:hover {
  box-shadow: var(--dashboard-hover-shadow);
  transform: translateY(-5px) scale(1.02);
}

.stat-icon {
  font-size: 24px;
  margin-bottom: 16px;
  height: 50px;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--dashboard-transition);
}

.stat-card:nth-child(1) .stat-icon {
  color: var(--dashboard-primary);
}

.stat-card:nth-child(2) .stat-icon {
  color: var(--dashboard-success);
}

.stat-card:nth-child(3) .stat-icon {
  color: var(--dashboard-warning);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dashboard-dark);
}

.stat-label {
  font-size: 14px;
  color: var(--dashboard-gray);
}

/* Latest Sections (Orders & Courses) */
.dashboard-latest {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.latest-section {
  background: #fff;
  border-radius: var(--dashboard-radius);
  box-shadow: var(--dashboard-shadow);
  padding: 24px;
  transition: var(--dashboard-transition);
}

.latest-section:hover {
  box-shadow: var(--dashboard-hover-shadow);
  transform: translateY(-3px);
}

.latest-section h4 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dashboard-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.latest-section h4 i {
  color: var(--dashboard-primary);
}

.latest-courses, .latest-orders {
  list-style: none;
  padding: 0;
  margin: 0;
}

.latest-courses li, .latest-orders li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dashboard-border);
  font-size: 14px;
  color: var(--dashboard-dark);
}

.latest-courses li:last-child, .latest-orders li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.latest-courses a {
  color: var(--dashboard-primary);
  text-decoration: none;
  transition: var(--dashboard-transition);
}

.latest-courses a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.order-status {
  border-radius: 30px;
  padding: 2px 8px;
  font-size: 12px;
  color: white;
}

.order-status.completed {
  background-color: var(--dashboard-success);
}

.order-status.processing {
  background-color: var(--dashboard-primary);
}

.order-status.on-hold {
  background-color: var(--dashboard-warning);
}

.order-status.cancelled {
  background-color: var(--dashboard-danger);
}

.order-status.failed {
  background-color: var(--dashboard-danger);
}

.order-status.pending {
  background-color: var(--dashboard-gray);
}

/* Notifications */
.dashboard-notifications {
  background: #fff;
  border-radius: var(--dashboard-radius);
  box-shadow: var(--dashboard-shadow);
  padding: 24px;
  transition: var(--dashboard-transition);
}

.dashboard-notifications:hover {
  box-shadow: var(--dashboard-hover-shadow);
  transform: translateY(-3px);
}

.dashboard-notifications h4 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dashboard-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-notifications h4 i {
  color: var(--dashboard-primary);
}

.notifications-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notifications-list li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dashboard-border);
  transition: var(--dashboard-transition);
}

.notifications-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.notifications-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--dashboard-dark);
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--dashboard-transition);
}

.notifications-list li a:hover {
  background-color: rgba(170, 35, 37, 0.05);
}

.notif-title {
  font-weight: 500;
  font-size: 14px;
}

.notif-date {
  font-size: 12px;
  color: var(--dashboard-gray);
}

/* Social Buttons */
.dashboard-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  transition: var(--dashboard-transition);
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.social-btn.telegram {
  background: linear-gradient(135deg, var(--dashboard-primary), #8a1c1e);
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.youtube {
  background: linear-gradient(135deg, #ff0000, #c00);
}

.social-btn.aparat {
  background: linear-gradient(135deg, #ED145B, #7b1a38);
}

/* Animations */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive Design */
@media (max-width: 991px) {
  .dashboard-header {
    flex-direction: column;
  }
  
  .dashboard-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-latest {
    grid-template-columns: 1fr;
  }
  
  .dashboard-social {
    flex-wrap: wrap;
  }
}

@media (max-width: 575px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  
  .profile-card {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-avatar {
    margin: 0 auto;
  }
  
  .profile-info {
    text-align: center;
  }
  
  .latest-section h4, .dashboard-notifications h4 {
    font-size: 16px;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .stat-icon {
    font-size: 20px;
  }
  
  .dashboard-social {
    justify-content: center;
    gap: 12px;
  }
}

/* Modern Navigation */
.modern-account-nav {
  background: #fff;
  border-radius: var(--dashboard-radius);
  box-shadow: var(--dashboard-shadow);
  overflow: hidden;
  margin-bottom: 30px;
  transition: var(--dashboard-transition);
}

.modern-account-nav:hover {
  box-shadow: var(--dashboard-hover-shadow);
}

.account-nav-header {
  background: linear-gradient(135deg, var(--dashboard-primary) 0%, #8a1c1e 100%);
  padding: 20px;
  color: #fff;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
}

.nav-logo i {
  font-size: 24px;
}

.modern-account-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modern-account-nav li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--dashboard-border);
}

.modern-account-nav li:last-child {
  border-bottom: none;
}

.modern-account-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  color: var(--dashboard-dark);
  text-decoration: none;
  transition: var(--dashboard-transition);
}

.modern-account-nav li a:hover {
  background-color: rgba(170, 35, 37, 0.05);
  color: var(--dashboard-primary);
}

.modern-account-nav li.is-active a {
  background-color: rgba(170, 35, 37, 0.1);
  color: var(--dashboard-primary);
  border-right: 3px solid var(--dashboard-primary);
  font-weight: 600;
}

.modern-account-nav li i {
  color: var(--dashboard-gray);
  width: 20px;
  text-align: center;
  transition: var(--dashboard-transition);
}

.modern-account-nav li.is-active i,
.modern-account-nav li a:hover i {
  color: var(--dashboard-primary);
}

@media (max-width: 767px) {
  .modern-account-nav {
    border-radius: var(--dashboard-radius);
    margin-bottom: 20px;
  }
  
  .account-nav-header {
    padding: 15px;
  }
  
  .modern-account-nav li a {
    padding: 12px 15px;
  }
}

/* RTL Specific Adjustments */
html[dir="rtl"] .profile-card::before {
  right: auto;
  left: 0;
  border-radius: 0 0 100% 0;
}

html[dir="rtl"] .welcome-message p,
html[dir="rtl"] .welcome-message h3 {
  text-align: right;
}

html[dir="rtl"] .stat-card,
html[dir="rtl"] .latest-courses li,
html[dir="rtl"] .latest-orders li {
  text-align: right;
}

html[dir="rtl"] .notifications-list li a {
  flex-direction: row-reverse;
}

html[dir="rtl"] .notif-title {
  margin-left: auto;
} 