@font-face {
    font-family: vazir;
    src: url("../fonts/vazir/Vazir-FD.eot");
    src: url("../fonts/vazir/Vazir-FD.eot?#iefix") format("embedded-opentype"),
      url("../fonts/vazir/Vazir-FD.woff2") format("woff2"),
      url("../fonts/vazir/Vazir-FD.woff") format("woff"),
      url("../fonts/vazir/Vazir-FD.ttf") format("truetype");
    font-weight: normal;
  }
    body {
    font-family: "vazir", Arial, Helvetica, sans-serif !important;
    font-size: 0.85rem;
  }

  ul {
    padding-inline-start: 0px;
}
  
  .ltr {
    direction: ltr !important;
    text-align: left !important;
  }
  .none {
    display: none;
  }
  
  .no-link {
    color: inherit !important;
    /* blue colors for links too */
    text-decoration: inherit;
    /* no underline */
  }
  
  .no-link:hover {
    color: inherit !important;
    /* blue colors for links too */
    text-decoration: inherit;
    /* no underline */
  }
  
  .alertarea {
    padding: 0 .5rem;
  }
  
  .alertarea i {
    float: right;
    margin-left: 5px;
    margin-top: 2px;
  }
  
  .alertarea p {
    margin-bottom: 0;
  }
  
  .borderless .list-group-item {
    border: none;
  }
  

 
  
  .card-body .text-justify img {
      max-width: 100%;
      height: auto !important;
  }
  .full-btn{
    width: 100%;
    height: 100%;
    text-align: justify;
  }
  .card-header .tableh5{
    margin: 0px;
  }
  
  .card-header .tableh5 > .float-left {
    position: absolute;
    page-break-after: always;
    left: 10px;
    top: 10px;
  }


.accordion .card .table{
    margin: 0;
  }

  .avatar-upload {
    position: relative;
    max-width: 205px;
    margin: 50px auto;
}

.avatar-upload .avatar-edit {
    position: absolute;
    right: 12px;
    z-index: 1;
    top: 10px;
}

.avatar-upload .avatar-edit input {
    display: none;
}

.avatar-upload .avatar-edit input+label {
    display: inline-block;
    width: 34px;
    height: 34px;
    margin-bottom: 0;
    border-radius: 100%;
    background: #FFFFFF;
    border: 1px solid transparent;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-weight: normal;
    transition: all 0.2s ease-in-out;
    padding: 6px 0 0 4px;
}

.avatar-upload .avatar-edit input+label:hover {
    background: #f1f1f1;
    border-color: #d6d6d6;
}

.avatar-upload .avatar-edit input+label:after {
    content: "\f304";
    font-family: "Font Awesome 5 Brands";
    color: #757575;
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    text-align: center;
    margin: auto;
}

.avatar-upload .avatar-preview {
    width: 192px;
    height: 192px;
    position: relative;
    border-radius: 100%;
    border: 6px solid #F8F8F8;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
}

.avatar-upload .avatar-preview>div {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.main-course-body:hover  .sale-perc-badge{
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
}
.sale-perc-badge {
  position: absolute;
  width: 54px;
  height: 55px;
  background: url(../img/discont_badge.png);
  z-index: 5;  color: #fff;
  font-size: 11px;
  font-weight: 100;

  line-height: 16px;
  left: -10px;
  top: -10px;
  -webkit-transform: rotate(-30deg);
  -ms-transform: rotate(-30deg);
  -o-transform: rotate(-30deg);
  -moz-transform: rotate(-30deg);
  transform: rotate(-30deg);
  -webkit-transition: all .3s;
  transition: all .3s;
}
.sale-perc {
  margin-top: 13px;
  margin-right: 13px;
  font-size: 15px;
}
.sale-badge-text {
  margin-right: 9px;
  margin-top: -4px;
}

.select2-container .select2-selection--single{
  height: 35px !important;
  line-height: 31px !important;
}

.select2-container--default.select2-container--open , .datepicker-container{
  z-index: 2147483648;
}

/* Fix overflow issue in marketing dashboard tab */
.card-body {
  overflow-x: hidden;
  max-width: 100%;
}

#marketing.tab-pane {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#marketing.tab-pane .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

#marketing.tab-pane .col,
#marketing.tab-pane [class*="col-"] {
  padding-left: 8px !important;
  padding-right: 8px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#marketing.tab-pane .counter {
  max-width: 100% !important;
  box-sizing: border-box !important;
  width: 100% !important;
  padding: 15px 10px !important;
  margin: 0 !important;
}

#marketing.tab-pane .count-text {
  font-size: 0.85rem !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  line-height: 1.4 !important;
}

#marketing.tab-pane .count-title {
  font-size: 1.8rem !important;
  word-wrap: break-word !important;
}

/* Responsive adjustments for marketing tab */
@media (max-width: 991.98px) {
  #marketing.tab-pane .col-sm-6 {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  
  #marketing.tab-pane .counter {
    padding: 12px 8px !important;
  }
  
  #marketing.tab-pane .count-text {
    font-size: 0.75rem !important;
  }
  
  #marketing.tab-pane .count-title {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  #marketing.tab-pane .col-12 {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  
  #marketing.tab-pane .counter {
    padding: 10px 6px !important;
  }
  
  #marketing.tab-pane .count-text {
    font-size: 0.7rem !important;
  }
  
  #marketing.tab-pane .count-title {
    font-size: 1.3rem !important;
  }
}

/* Modern Professional Profile Card Styles */
.modern-profile-card {
  border: none !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.modern-profile-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.modern-profile-card .profile-banner {
  width: 100% !important;
  height: 120px !important;
  background: linear-gradient(135deg, rgba(69, 25, 141, 0.85) 0%, rgba(69, 25, 141, 0.95) 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  display: block !important;
}

.modern-profile-card .profile-banner::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.08) 8px, rgba(255,255,255,0.08) 16px),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255,255,255,0.05) 8px, rgba(255,255,255,0.05) 16px),
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%) !important;
  opacity: 1 !important;
}

.modern-profile-card .profile-banner::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0),
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0) !important;
  background-size: 40px 40px, 20px 20px !important;
  background-position: 0 0, 20px 20px !important;
  opacity: 0.6 !important;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.modern-profile-card .box-profile,
.modern-profile-card .card-body.box-profile {
  padding: 0 !important;
  position: relative !important;
  overflow: visible !important;
}

.modern-profile-card .profile-header {
  text-align: center !important;
  padding: 0 1.5rem !important;
  margin-top: -60px !important;
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
}

.modern-profile-card .profile-avatar-wrapper {
  position: relative !important;
  display: inline-block !important;
  margin-bottom: 1rem !important;
}

.modern-profile-card .profile-avatar-wrapper .profile-user-img {
  width: 120px !important;
  height: 120px !important;
  border: 5px solid #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
  border-radius: 50% !important;
}

.modern-profile-card .profile-avatar-wrapper:hover .profile-user-img {
  transform: scale(1.05) !important;
}

.modern-profile-card .profile-avatar-wrapper .avatar-upload {
  position: relative;
  max-width: 126px;
  margin: 0 auto;
}

.modern-profile-card .profile-avatar-wrapper .avatar-upload .avatar-edit {
  position: absolute;
  right: 0;
  z-index: 1;
  top: 0;
}

.modern-profile-card .profile-avatar-wrapper .avatar-upload .avatar-edit input {
  display: none;
}

.modern-profile-card .profile-avatar-wrapper .avatar-upload .avatar-edit input+label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0;
  border-radius: 100%;
  background: #FFFFFF;
  border: 1px solid transparent;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-weight: normal;
  transition: all 0.2s ease-in-out;
  padding: 0;
  position: relative;
}

.modern-profile-card .profile-avatar-wrapper .avatar-upload .avatar-edit input+label:hover {
  background: #f1f1f1;
  border-color: #d6d6d6;
}

.modern-profile-card .profile-avatar-wrapper .avatar-upload .avatar-edit input+label i {
  color: #757575;
  font-size: 14px;
  line-height: 1;
}

.modern-profile-card .profile-avatar-wrapper .avatar-upload .avatar-preview {
  width: 126px;
  height: 126px;
  position: relative;
  border-radius: 100%;
  border: 5px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modern-profile-card .profile-avatar-wrapper .avatar-upload .avatar-preview>div {
  width: 100%;
  height: 100%;
  border-radius: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.modern-profile-card .avatar-status-badge,
.modern-profile-card .avatar-upload .avatar-status-badge {
  position: absolute !important;
  bottom: 8px !important;
  right: 8px !important;
  width: 32px !important;
  height: 32px !important;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 12px !important;
  border: 3px solid #ffffff !important;
  box-shadow: 0 2px 8px rgba(79, 172, 254, 0.4) !important;
  z-index: 3 !important;
}

.modern-profile-card .profile-username {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin: 0.5rem 0 0.25rem 0 !important;
  padding: 0 !important;
  display: block !important;
  text-shadow: none !important;
}

.modern-profile-card .profile-subtitle {
  font-size: 0.875rem !important;
  color: #6c757d !important;
  margin: 0 0 1.5rem 0 !important;
  font-weight: 500 !important;
  display: block !important;
}

.modern-profile-card .profile-stats {
  padding: 0 1.5rem !important;
  margin-bottom: 1.5rem !important;
  display: block !important;
}

.modern-profile-card .stat-item {
  display: flex !important;
  align-items: center !important;
  padding: 0.875rem 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
  transition: background-color 0.2s ease !important;
}

.modern-profile-card .stat-item:last-child {
  border-bottom: none !important;
}

.modern-profile-card .stat-item:hover {
  background-color: #f8f9fa !important;
  margin: 0 -1rem !important;
  padding-right: 1rem !important;
  padding-left: 1rem !important;
  border-radius: 8px !important;
}

.modern-profile-card .stat-icon {
  width: 40px !important;
  height: 40px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 16px !important;
  margin-left: 1rem !important;
  flex-shrink: 0 !important;
}

.modern-profile-card .stat-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.modern-profile-card .stat-label {
  font-size: 0.8rem !important;
  color: #6c757d !important;
  font-weight: 500 !important;
  margin-bottom: 0.25rem !important;
  display: block !important;
}

.modern-profile-card .stat-value {
  font-size: 0.95rem !important;
  color: #2c3e50 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

.modern-profile-card .profile-actions {
  padding: 0 1.5rem 1.5rem 1.5rem !important;
  display: block !important;
}

.modern-profile-card .profile-actions .btn {
  border-radius: 10px !important;
  padding: 0.65rem 1rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.75rem !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

.modern-profile-card .profile-actions .btn:last-child {
  margin-bottom: 0 !important;
}

.modern-profile-card .profile-actions .btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.modern-profile-card .profile-actions .btn i {
  font-size: 0.9rem !important;
}

/* Mobile Styles - Compact Horizontal Layout */
@media (max-width: 991.98px) {
  .modern-profile-card {
    border-radius: 12px !important;
  }
  
  .modern-profile-card .profile-banner {
    height: 80px !important;
  }
  
  .modern-profile-card .profile-header {
    margin-top: -40px !important;
    padding: 0 1rem !important;
    display: flex !important;
    align-items: flex-start !important;
    text-align: right !important;
    gap: 1rem !important;
  }
  
  .modern-profile-card .profile-avatar-wrapper {
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
  }
  
  .modern-profile-card .profile-avatar-wrapper .profile-user-img {
    width: 70px !important;
    height: 70px !important;
    border-width: 3px !important;
  }
  
  .modern-profile-card .avatar-status-badge {
    width: 24px !important;
    height: 24px !important;
    font-size: 10px !important;
    border-width: 2px !important;
    bottom: 4px !important;
    right: 4px !important;
  }
  
  .modern-profile-card .profile-username {
    font-size: 1.1rem !important;
    margin-top: 0 !important;
    text-align: right !important;
    flex: 1 !important;
    min-width: 0 !important;
    color: #000000 !important;
    text-shadow: none !important;
  }
  
  .modern-profile-card .profile-subtitle {
    display: none !important;
  }
  
  .modern-profile-card .profile-stats {
    padding: 0 1rem !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .modern-profile-card .stat-item {
    flex-direction: row !important;
    align-items: center !important;
    text-align: right !important;
    padding: 0.6rem 0.75rem !important;
    border-bottom: none !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    margin: 0 !important;
    gap: 0.75rem !important;
  }
  
  .modern-profile-card .stat-item:hover {
    background-color: #e9ecef !important;
    margin: 0 !important;
    padding: 0.6rem 0.75rem !important;
  }
  
  .modern-profile-card .stat-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
  
  .modern-profile-card .stat-content {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
  }
  
  .modern-profile-card .stat-label {
    font-size: 0.75rem !important;
    margin-bottom: 0 !important;
    color: #6c757d !important;
    white-space: nowrap !important;
  }
  
  .modern-profile-card .stat-value {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    word-break: normal !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    text-align: left !important;
    flex-shrink: 0 !important;
  }
  
  .modern-profile-card .profile-actions {
    padding: 0 1rem 1rem 1rem !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }
  
  .modern-profile-card .profile-actions .btn {
    margin-bottom: 0 !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
  }
  
  .modern-profile-card .profile-actions .btn span {
    display: inline !important;
  }
  
  .modern-profile-card .profile-actions .btn i {
    margin-left: 0.4rem !important;
  }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
  .modern-profile-card .profile-banner {
    height: 60px !important;
  }
  
  .modern-profile-card .profile-header {
    margin-top: -30px !important;
    gap: 0.75rem !important;
  }
  
  .modern-profile-card .profile-avatar-wrapper .profile-user-img {
    width: 60px !important;
    height: 60px !important;
    border-width: 2px !important;
  }
  
  .modern-profile-card .avatar-status-badge {
    width: 20px !important;
    height: 20px !important;
    font-size: 8px !important;
    border-width: 2px !important;
    bottom: 2px !important;
    right: 2px !important;
  }
  
  .modern-profile-card .profile-username {
    font-size: 1rem !important;
    color: #000000 !important;
    text-shadow: none !important;
  }
  
  .modern-profile-card .profile-stats {
    padding: 0 0.75rem !important;
    gap: 0.4rem !important;
  }
  
  .modern-profile-card .stat-item {
    padding: 0.5rem 0.6rem !important;
    gap: 0.6rem !important;
  }
  
  .modern-profile-card .stat-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
  }
  
  .modern-profile-card .stat-content {
    gap: 0.4rem !important;
  }
  
  .modern-profile-card .stat-label {
    font-size: 0.7rem !important;
  }
  
  .modern-profile-card .stat-value {
    font-size: 0.75rem !important;
  }
  
  .modern-profile-card .profile-actions {
    grid-template-columns: 1fr !important;
    padding: 0 0.75rem 1rem 0.75rem !important;
  }
  
  .modern-profile-card .profile-actions .btn {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
  }
  
  .modern-profile-card .profile-actions .btn span {
    display: inline !important;
  }
  
  .modern-profile-card .profile-actions .btn i {
    margin-left: 0.35rem !important;
  }
}

/* Extra Small Mobile - Two Line Layout */
@media (max-width: 480px) {
  .modern-profile-card .profile-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
  }
  
  .modern-profile-card .stat-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 0.5rem 0.4rem !important;
    gap: 0.4rem !important;
  }
  
  .modern-profile-card .stat-icon {
    margin-bottom: 0.3rem !important;
  }
  
  .modern-profile-card .stat-content {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.2rem !important;
    width: 100% !important;
  }
  
  .modern-profile-card .stat-label {
    font-size: 0.65rem !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
  
  .modern-profile-card .stat-value {
    font-size: 0.75rem !important;
    text-align: center !important;
    white-space: normal !important;
  }
  
  .modern-profile-card .profile-actions .btn {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.75rem !important;
  }
  
  .modern-profile-card .profile-actions .btn span {
    display: inline !important;
    font-size: 0.75rem !important;
  }
  
  .modern-profile-card .profile-actions .btn i {
    margin-left: 0.3rem !important;
    font-size: 0.7rem !important;
  }
}

/* Payment Cards Styles */
#payments.tab-pane {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.payment-card {
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  background: #ffffff !important;
}

.payment-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.payment-card .card-body {
  padding: 1.25rem !important;
}

.payment-header {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.75rem;
}

.payment-header h6 {
  font-size: 0.85rem;
  font-weight: 600;
}

.payment-header .badge,
.payment-card .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  font-weight: 600;
  color: #000000 !important;
}

.payment-header .badge.bg-warning,
.payment-header .badge.bg-success,
.payment-header .badge.bg-danger,
.payment-card .badge.bg-warning,
.payment-card .badge.bg-success,
.payment-card .badge.bg-danger {
  color: #000000 !important;
}

.payment-details {
  padding-top: 0.5rem;
}

.payment-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

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

.payment-item i {
  font-size: 0.9rem;
  width: 18px;
  text-align: center;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.payment-item small {
  font-size: 0.75rem;
  font-weight: 500;
}

.payment-item .fw-bold {
  font-size: 0.95rem;
  color: #2c3e50;
}

.payment-item .text-dark {
  font-size: 0.85rem;
  word-break: break-word;
}

.payment-item .font-monospace {
  font-size: 0.8rem;
  direction: ltr;
  text-align: left;
  display: inline-block;
}

/* Responsive Payment Cards */
@media (max-width: 991.98px) {
  .payment-card .card-body {
    padding: 1rem !important;
  }
  
  .payment-header h6 {
    font-size: 0.8rem;
  }
  
  .payment-header .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
    color: #000000 !important;
  }
  
  .payment-item {
    padding: 0.4rem 0;
  }
  
  .payment-item i {
    font-size: 0.85rem;
  }
  
  .payment-item small {
    font-size: 0.7rem;
  }
  
  .payment-item .fw-bold {
    font-size: 0.9rem;
  }
  
  .payment-item .text-dark {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  #payments.tab-pane .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
  }
  
  #payments.tab-pane .col-12 {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  
  .payment-card {
    border-radius: 10px !important;
  }
  
  .payment-card .card-body {
    padding: 0.875rem !important;
  }
  
  .payment-header {
    padding-bottom: 0.6rem;
  }
  
  .payment-header h6 {
    font-size: 0.75rem;
  }
  
  .payment-header .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.45rem;
    color: #000000 !important;
  }
  
  .payment-item {
    padding: 0.35rem 0;
  }
  
  .payment-item i {
    font-size: 0.8rem;
    width: 16px;
  }
  
  .payment-item small {
    font-size: 0.65rem;
  }
  
  .payment-item .fw-bold {
    font-size: 0.85rem;
  }
  
  .payment-item .text-dark {
    font-size: 0.75rem;
  }
  
  .payment-item .font-monospace {
    font-size: 0.7rem;
  }
}

/* Course Name Padding */
.coursename {
  padding: 1.5rem 1rem !important;
  margin-bottom: 1rem !important;
}

@media (max-width: 767.98px) {
  .coursename {
    padding: 1.25rem 0.75rem !important;
    margin-bottom: 0.875rem !important;
  }
}

@media (max-width: 576px) {
  .coursename {
    padding: 1rem 0.5rem !important;
    margin-bottom: 0.75rem !important;
  }
}

/* Dashboard Navigation - Mobile Grid Layout */
.dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-nav-item {
  flex: 1 1 auto;
  margin: 0;
}

.dashboard-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem !important;
  text-align: center;
  border-radius: 0 !important;
  border: none !important;
  background: #ffffff !important;
  color: #6c757d !important;
  transition: all 0.3s ease !important;
  min-height: 80px;
  text-decoration: none !important;
}

.dashboard-nav-link i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #6c757d;
  transition: all 0.3s ease;
}

.dashboard-nav-link .dashboard-nav-text {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.dashboard-nav-link:hover {
  background: #f8f9fa !important;
  color: #495057 !important;
  transform: translateY(-2px);
}

.dashboard-nav-link:hover i {
  color: #495057;
}

.dashboard-nav-link.active {
  background: linear-gradient(135deg, rgba(69, 25, 141, 0.9) 0%, rgba(69, 25, 141, 1) 100%) !important;
  color: #ffffff !important;
  position: relative !important;
  overflow: hidden !important;
}

.dashboard-nav-link.active::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(255,255,255,0.1) 6px, rgba(255,255,255,0.1) 12px),
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(255,255,255,0.08) 6px, rgba(255,255,255,0.08) 12px) !important;
  opacity: 0.7 !important;
  z-index: 1 !important;
}

.dashboard-nav-link.active i,
.dashboard-nav-link.active .dashboard-nav-text {
  position: relative !important;
  z-index: 2 !important;
}

.dashboard-nav-link.active i {
  color: #ffffff !important;
}

.dashboard-nav-link.active .dashboard-nav-text {
  color: #ffffff !important;
}

/* Desktop - Horizontal Layout */
@media (min-width: 992px) {
  .dashboard-nav {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  
  .dashboard-nav-item {
    flex: 0 1 auto;
  }
  
  .dashboard-nav-link {
    flex-direction: row;
    padding: 0.5rem 1rem !important;
    min-height: auto;
    border-radius: 0.25rem !important;
    margin: 0 0.25rem;
  }
  
  .dashboard-nav-link i {
    font-size: 1rem;
    margin-bottom: 0;
    margin-left: 0.5rem;
  }
  
  .dashboard-nav-link .dashboard-nav-text {
    font-size: 0.875rem;
  }
  
  .dashboard-nav-link.active {
    background: linear-gradient(135deg, rgba(69, 25, 141, 0.9) 0%, rgba(69, 25, 141, 1) 100%) !important;
  }
}

/* Tablet - 2 Columns */
@media (min-width: 768px) and (max-width: 991.98px) {
  .dashboard-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .dashboard-nav-link {
    padding: 1rem 0.75rem !important;
    min-height: 90px;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .dashboard-nav-link i {
    font-size: 1.75rem;
  }
  
  .dashboard-nav-link .dashboard-nav-text {
    font-size: 0.8rem;
  }
}

/* Mobile - 3x2 Grid */
@media (max-width: 767.98px) {
  .card-header.p-2 {
    padding: 0.75rem !important;
  }
  
  .dashboard-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 0;
  }
  
  .dashboard-nav-item {
    margin: 0;
  }
  
  .dashboard-nav-link {
    padding: 1rem 0.5rem !important;
    min-height: 100px;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #ffffff !important;
  }
  
  .dashboard-nav-link i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .dashboard-nav-link .dashboard-nav-text {
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  .dashboard-nav-link.active {
    background: linear-gradient(135deg, rgba(69, 25, 141, 0.9) 0%, rgba(69, 25, 141, 1) 100%) !important;
    box-shadow: 0 4px 12px rgba(69, 25, 141, 0.4);
    transform: translateY(-2px);
  }
  
  .dashboard-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* Small Mobile */
@media (max-width: 576px) {
  .dashboard-nav {
    gap: 0.4rem;
  }
  
  .dashboard-nav-link {
    padding: 0.875rem 0.4rem !important;
    min-height: 90px;
    border-radius: 10px !important;
  }
  
  .dashboard-nav-link i {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
  }
  
  .dashboard-nav-link .dashboard-nav-text {
    font-size: 0.7rem;
  }
}

/* Page Title Styles - Purple Background with Pattern */
.page-title {
  background: linear-gradient(135deg, rgba(69, 25, 141, 0.9) 0%, rgba(69, 25, 141, 1) 100%) !important;
  color: #ffffff !important;
  padding: 1.25rem 1.5rem !important;
  margin-bottom: 1.5rem !important;
  border-radius: 12px !important;
  position: relative !important;
  overflow: hidden !important;
}

.page-title::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: 
    repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255,255,255,0.1) 8px, rgba(255,255,255,0.1) 16px),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(255,255,255,0.08) 8px, rgba(255,255,255,0.08) 16px) !important;
  opacity: 0.7 !important;
  z-index: 1 !important;
}

.page-title::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.15) 1px, transparent 0),
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0) !important;
  background-size: 40px 40px, 20px 20px !important;
  background-position: 0 0, 20px 20px !important;
  opacity: 0.6 !important;
  z-index: 1 !important;
}

.page-title h3,
.page-title .h2,
.page-title h1,
.page-title h2 {
  color: #ffffff !important;
  font-weight: 700 !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 2 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.page-title * {
  position: relative !important;
  z-index: 2 !important;
  color: #ffffff !important;
}

/* Orange Primary Button Styles */
.btn-primary {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: #ff5722 !important;
  border-color: #ff5722 !important;
  color: #ffffff !important;
}

.btn-primary:focus,
.btn-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.5) !important;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
  background-color: #ff5722 !important;
  border-color: #ff5722 !important;
  color: #ffffff !important;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.5) !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
  color: #ffffff !important;
  opacity: 0.65 !important;
}

/* Orange Success Button Styles */
.btn-success {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
  color: #ffffff !important;
}

.btn-success:hover {
  background-color: #ff5722 !important;
  border-color: #ff5722 !important;
  color: #ffffff !important;
}

.btn-success:focus,
.btn-success.focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.5) !important;
}

.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active,
.show > .btn-success.dropdown-toggle {
  background-color: #ff5722 !important;
  border-color: #ff5722 !important;
  color: #ffffff !important;
}

.btn-success:not(:disabled):not(.disabled):active:focus,
.btn-success:not(:disabled):not(.disabled).active:focus,
.show > .btn-success.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.5) !important;
}

.btn-success.disabled,
.btn-success:disabled {
  background-color: #ff6b35 !important;
  border-color: #ff6b35 !important;
  color: #ffffff !important;
  opacity: 0.65 !important;
}