/**************************************************
 * ACCOUNT SECTION BASE STYLING
 **************************************************/
.account-section {
  position: relative;
  padding-bottom: 0;
}

/* Section Title */
.account-section .sec-title h2 {
  font-size: 36px;
  line-height: 42px;
}

/* Inner Container */
.account-section .inner-container {
  display: block;
  border: 1px dashed #D8D8D8;
  padding-left: 510px;
  min-height: 600px;
  border-radius: 10px;
  overflow: hidden;
}

/**************************************************
 * TABS BUTTONS (LEFT PANEL)
 **************************************************/
.account-section .inner-container .tab-btns li {
  position: relative;
  display: block;
  font-size: 18px;
  line-height: 28px;
  font-family: var(--title-font);
  color: var(--title-color);
  font-weight: 600;
  cursor: pointer;
  padding: 13.5px 40px;
  transition: all 500ms ease;
}

.account-section .inner-container .tab-btns li:last-child {
  display: block !important;
  margin-bottom: 0;
}

.account-section .inner-container .tab-btns li.active-btn {
  background: #fff;
}

/**************************************************
 * ACCOUNT INFO (LEFT PANEL)
 **************************************************/
.account-section .inner-container .account-info {
  position: absolute;
  left: 0;
  top: 0;
  width: 420px;
  height: 100%;
  border: 1px dashed #D8D8D8;
  background: #FDF7F9;
  padding: 50px 0;
}

/* Profile Image */
.account-section .inner-container .account-info .image-box.profile-image-box {
  width: 150px;
  height: 150px;
  margin: 0 auto 23px;
  border-radius: 50%;
  overflow: hidden;
}

.profile-image-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-radius: 8px;
}

.profile-image-box figure.image,
.profile-image-box .image {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  max-width: 100% !important;
}

.profile-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 500ms ease;
}

.profile-image-box:hover img,
.account-section .inner-container .account-info .image-box.profile-image-box:hover img {
  transform: scale(1.05);
}

.account-section .inner-container .account-info .image-box.profile-image-box figure.image,
.account-section .inner-container .account-info .image-box.profile-image-box .image {
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.account-section .inner-container .account-info .image-box.profile-image-box a {
  text-decoration: none;
  border-bottom: none;
}

.account-section .inner-container .account-info .image-box.profile-image-box a:hover {
  text-decoration: none;
}

/* Name & Links */
.account-section .inner-container .account-info h4 {
  display: block;
  font-size: 20px;
  line-height: 28px;
  margin-bottom: 1px;
}

.account-section .inner-container .account-info a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  line-height: 26px;
  color: var(--text-color);
}

/**************************************************
 * TABS CONTENT (RIGHT PANEL)
 **************************************************/
.account-section .tabs-content {
  padding: 50px 80px 50px 0;
}

.account-section .tabs-content h3 {
  display: block;
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 20px;
}

/**************************************************
 * PERSONAL INFO SECTION
 **************************************************/
.account-section .account-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.account-section .account-profile-header h3 {
  margin-bottom: 0;
}

.account-section .personal-info h3 {
  margin-bottom: 8px;
}

.account-section .personal-info p {
  margin-bottom: 22px;
}

/* Legacy Single Item (keep for backward compatibility) */
.account-section .personal-info .single-item {
  position: relative;
  display: block;
  background: #FDF7F9;
  border-radius: 10px;
  border: 1px dashed #D8D8D8;
  padding: 13px 20px;
  margin-bottom: 30px;
}

.account-section .personal-info .single-item h6 {
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  margin-bottom: 1px;
}

.account-section .personal-info .single-item span {
  position: relative;
  display: block;
  font-size: 14px;
  line-height: 24px;
}

.account-section .personal-info .single-item button {
  position: absolute;
  top: 13px;
  right: 20px;
  font-size: 14px;
  line-height: 24px;
  color: rgba(106, 106, 106, 1);
}

.account-section .personal-info .single-item span a {
  display: inline-block;
  color: var(--text-color);
}

/**************************************************
 * ACCOUNT PROFILE CARD (New Design)
 **************************************************/
.account-section .account-profile-card {
  background: #f9f0f5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 20px;
  margin-bottom: 15px;
}

.account-section .account-profile-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px 20px;
  border-radius: 10px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.account-section .account-profile-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.account-section .account-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.account-section .account-profile-row h6 {
  font-weight: 600;
  margin-bottom: 0;
}

.account-section .account-profile-row span {
  font-weight: 500;
}

/* Edit Button */
.account-section .account-profile-edit-btn {
  background: #A8DF8E;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.account-section .account-profile-edit-btn:hover {
  background: #FEAAB9;
}

/**************************************************
 * HISTORY / ORDERS SECTION
 **************************************************/
.account-section .history-box .single-history {
  background: #fff0f3;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 20px;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-section .history-box .single-history:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.account-section .history-box .single-history .product-box {
  margin-bottom: 10px;
  background: #ffffffcc;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
}

.account-section .history-box .single-history .product-box .image-box {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(229, 229, 229, 1);
  margin-right: 30px;
}

.account-section .history-box .single-history .product-box .image-box img {
  width: 100%;
}

.account-section .history-box .single-history .product-box .product-info h6 {
  font-weight: 600;
}

.account-section .history-box .single-history .product-box .product-info h4 {
  color: #e92530;
}

.account-section .history-box .single-history .product-box .product-info span {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 2px;
}

/**************************************************
 * SCROLLABLE TABLES - Transactions, Orders, Assignments, Appointments
 **************************************************/
.account-section .table-responsive {
  max-height: 416px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #f0e5e8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Custom scrollbar for Webkit browsers */
.account-section .table-responsive::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.account-section .table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.account-section .table-responsive::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.account-section .table-responsive::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Table Base Styles */
.account-section .table {
  width: 100%;
  min-width: 100% !important;
  margin-bottom: 0;
  background-color: #fff;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
}

/* Sticky Header */
.account-section .table thead {
  position: sticky;
  top: 0;
  background: #fdf7f9;
  z-index: 10;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

.account-section .table thead th {
  background: #fdf7f9;
  position: relative;
}

/* Table Header Cells */
.account-section .table th {
  font-weight: 700;
  color: var(--title-color);
  font-family: var(--title-font);
  font-size: 16px;
  padding: 15px 20px;
  border-bottom: 2px dashed #D8D8D8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Table Body Cells */
.account-section .table td {
  padding: 15px 20px;
  vertical-align: middle;
  border-bottom: 1px dashed #f0e5e8;
  color: var(--text-color);
  font-size: 15px;
}

.account-section .table tbody tr:hover {
  background-color: #fff9fb;
}

.account-section .table tbody tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.account-section .badge {
  padding: 6px 12px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
  text-align: center;
  min-width: 90px;
}

.account-section .badge.bg-success {
  background-color: #28a745 !important;
  color: #fff;
}

.account-section .badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529;
}

.account-section .badge.bg-danger {
  background-color: #dc3545 !important;
  color: #fff;
}

.account-section .badge.bg-info {
  background-color: #17a2b8 !important;
  color: #fff;
}

.account-section .badge.bg-secondary {
  background-color: #6c757d !important;
  color: #fff;
}

/* Empty State Styling */
.account-section .table td.text-center {
  padding: 40px 20px;
  color: #999;
  font-style: italic;
  font-size: 16px;
}

/**************************************************
 * STATUS BADGES (Legacy)
 **************************************************/
.text-success,
.text-warning,
.text-danger,
.text-info {
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  font-weight: 600;
}

.text-success {
  background: #d4edda;
  color: #155724;
}

.text-warning {
  background: #fff3cd;
  color: #856404;
}

.text-danger {
  background: #f8d7da;
  color: #721c24;
}

.text-info {
  background: #d1ecf1;
  color: #0c5460;
}

/**************************************************
 * RTL ADJUSTMENTS
 **************************************************/
.rtl .account-section .history-box .single-history .product-box .image-box {
  margin-right: 0;
  margin-left: 15px;
}

.rtl .account-section .personal-info .single-item button {
  right: inherit;
  left: 20px;
}

.rtl .account-section .table th,
.rtl .account-section .table td {
  text-align: right;
}

.rtl .account-section .table thead {
  box-shadow: 0 -2px 2px -1px rgba(0, 0, 0, 0.1);
}

/**************************************************
 * RESPONSIVE STYLING
 **************************************************/
@media only screen and (max-width: 1200px) {
  .account-section .inner-container {
    padding-left: 370px;
  }
  .account-section .tabs-content {
    padding-right: 50px;
  }
  .account-section .inner-container .account-info {
    width: 340px;
  }
}

@media only screen and (max-width: 991px) {
  .account-section .table-responsive {
    overflow-x: auto;
  }
  
  .account-section .table {
    min-width: 800px;
  }
  
  .account-section .table th,
  .account-section .table td {
    white-space: nowrap;
  }
}

@media only screen and (max-width: 767px) {
  .account-section .inner-container {
    padding-left: 0px;
    min-height: auto;
  }
  
  .account-section .inner-container .account-info {
    position: relative;
    width: 100%;
  }
  
  .account-section .tabs-content {
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .account-section {
    padding-bottom: 70px;
  }
  
  .account-section .account-profile-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .account-section .account-profile-row span {
    width: 100%;
    word-break: break-word;
  }
  
  .account-section .account-profile-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .account-section .account-profile-content {
    padding: 15px;
  }
}

@media only screen and (max-width: 599px) {
  .account-section .history-box .single-history,
  .account-section .history-box .single-history .product-box {
    display: block;
  }

  .account-section .history-box .single-history .product-box .image-box {
    margin-right: 0px;
    margin-bottom: 15px;
  }

  .account-section .account-profile-content {
    display: block;
  }
  
  .account-section .account-profile-row button {
    margin-top: 10px;
  }
  
  .account-section .table th,
  .account-section .table td {
    padding: 12px 10px;
    font-size: 14px;
  }
  
  .account-section .badge {
    min-width: auto;
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .account-section .account-profile-row h6 {
    margin-bottom: 4px;
  }
}

.image-input {
  position: relative;
  display: inline-block;
  border-radius: 0.475rem;
  background-repeat: no-repeat;
  background-size: cover;
}
.image-input:not(.image-input-empty) {
  background-image: none !important;
}
.image-input .image-input-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 0.475rem;
  background-repeat: no-repeat;
  background-size: cover;
}
.image-input [data-kt-image-input-action] {
  cursor: pointer;
  position: absolute;
  transform: translate(-50%, -50%);
}
.image-input [data-kt-image-input-action="change"] {
  left: 100%;
  top: 0;
}
.image-input [data-kt-image-input-action="change"] input {
  width: 0 !important;
  height: 0 !important;
  overflow: hidden;
  opacity: 0;
}
.image-input.image-input-circle {
  border-radius: 50%;
}
.image-input.image-input-circle .image-input-wrapper {
  border-radius: 50%;
}
.image-input.image-input-circle [data-kt-image-input-action="change"] {
  left: 100%;
  top: 0;
  transform: translate(-100%, 0);
}
.image-input.image-input-outline .image-input-wrapper {
  border: 3px solid var(--bs-body-bg);
  box-shadow: var(--bs-box-shadow);
}