/* ড্যাশবোর্ড ওয়াপার */
.user-dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f4f6f9;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* সাইডবার */
.dashboard-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #2c3e50 0%, #1e2b37 100%);
  color: #ecf0f1;
  position: relative;
  transition: all 0.3s ease;
}

.sidebar-header {
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
  margin-bottom: 15px;
}

.user-avatar img {
  border-radius: 50%;
  border: 3px solid #3498db;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.user-name {
  margin: 10px 0 5px;
  font-size: 18px;
  font-weight: 600;
  color: white;
}

.user-email {
  font-size: 13px;
  color: #bdc3c7;
  margin: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.sidebar-menu .menu-item {
  padding: 12px 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  position: relative;
}

.sidebar-menu .menu-item:hover {
  background: rgba(52, 152, 219, 0.2);
}

.sidebar-menu .menu-item.active {
  background: #3498db;
  border-left: 4px solid #f1c40f;
}

.menu-icon {
  font-size: 20px;
  min-width: 30px;
}

.menu-text {
  flex: 1;
  font-size: 14px;
}

.menu-badge {
  background: #e74c3c;
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

.logout-item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}

.logout-item a {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

/* সাইডবার টগল (মোবাইল) */
.sidebar-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 20px;
}

/* মূল কন্টেন্ট */
.dashboard-content {
  flex: 1;
  padding: 30px;
  overflow-x: auto;
}

.content-tab {
  display: none;
}

.content-tab.active {
  display: block;
}

/* ওয়েলকাম কার্ড */
.welcome-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-card h2 {
  margin: 0 0 10px;
  color: #2c3e50;
}

.welcome-card p {
  margin: 0;
  color: #ffffff;
  margin-top: 7px;
  margin-bottom: 5px;
}

/* স্ট্যাটস গ্রিড */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  font-size: 40px;
  background: #f8f9fa;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-details h4 {
  margin: 0 0 5px;
  color: #7f8c8d;
  font-size: 14px;
}

.stat-number {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

/* টেবিল */
.recent-orders,
.orders-table-wrapper {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recent-orders h3 {
  margin: 0 0 20px;
  color: #2c3e50;
}

.recent-orders-table,
.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.recent-orders-table th,
.orders-table th {
  text-align: left;
  padding: 12px;
  background: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.recent-orders-table td,
.orders-table td {
  padding: 12px;
  border-bottom: 1px solid #dee2e6;
}

/* স্ট্যাটাস ব্যাজ */
.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-success {
  background: #d4edda;
  color: #155724;
}

.status-warning {
  background: #fff3cd;
  color: #856404;
}

.status-info {
  background: #d1ecf1;
  color: #0c5460;
}

/* ভিউ বাটন */
.view-order-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  transition: background 0.3s;
}

.view-order-btn:hover {
  background: #2980b9;
}

.transaction-date {
  font-weight: 600;
  color: #2c3e50;
}

/* মডাল */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal-content {
  background: white;
  margin: 50px auto;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  color: #2c3e50;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #7f8c8d;
}

.modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.order-detail-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dee2e6;
}

.order-detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.order-detail-section h4 {
  margin: 0 0 15px;
  color: #3498db;
}

.order-detail-section p {
  margin: 10px 0;
  line-height: 1.6;
}

.project-details {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 13px;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #dee2e6;
  text-align: right;
}

.modal-close-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 5px;
  cursor: pointer;
}

/* নো ডাটা */
.no-data {
  background: white;
  border-radius: 10px;
  padding: 50px;
  text-align: center;
  color: #7f8c8d;
}

/* অ্যাকাউন্ট সেটিংস ফর্ম */
.account-settings-form {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #7f8c8d;
  font-size: 12px;
}

.current-avatar {
  margin-bottom: 15px;
  text-align: center;
}

.current-avatar img {
  border-radius: 50%;
  border: 3px solid #3498db;
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.submit-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #2980b9;
}

.message-success {
  background: #d4edda;
  color: #155724;
  padding: 12px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #28a745;
}

.message-error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 4px solid #dc3545;
}

/* রেস্পন্সিভ */
@media (max-width: 768px) {
  .user-dashboard-wrapper {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    position: relative;
    transform: translateX(-100%);
    position: fixed;
    z-index: 1000;
    height: 100vh;
  }

  .dashboard-sidebar.active {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .dashboard-content {
    padding: 20px;
    margin-top: 60px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .recent-orders-table,
  .orders-table {
    display: block;
    overflow-x: auto;
  }

  .transaction-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stat-card {
    flex-direction: column;
    text-align: center;
  }

  .modal-content {
    width: 95%;
    margin: 20px auto;
  }
}
/* ওয়েলকাম কার্ড স্টাইল */
.welcome-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  color: white;
}

.welcome-card h2 {
  margin: 0 0 10px;
  color: white;
  font-size: 24px;
}

.welcome-text {
  margin: 0 0 25px;
  opacity: 0.9;
  font-size: 15px;
  line-height: 1.5;
  color: white;
}

/* প্রগ্রেস বার স্টাইল */
.welcome-progress {
  background: rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
}

.progress-title {
  font-weight: 500;
  opacity: 0.9;
  color: white;
}

.progress-value {
  font-weight: 600;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
}

.progress {
  height: 30px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, #ffd700, #ffa500);
  color: #2c3e50;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  transition: width 0.6s ease;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.progress-order-info {
  text-align: right;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 5px;
}

.progress-order-info small {
  color: rgba(255, 255, 255, 0.9);
}

/* রেস্পন্সিভ */
@media (max-width: 768px) {
  .welcome-card {
    padding: 20px;
  }

  .welcome-card h2 {
    font-size: 20px;
  }

  .welcome-text {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .progress {
    height: 25px;
  }

  .progress-bar {
    font-size: 13px;
    line-height: 25px;
  }

  .progress-order-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .welcome-card {
    padding: 15px;
  }

  .welcome-card h2 {
    font-size: 18px;
  }

  .welcome-text {
    font-size: 13px;
    margin-bottom: 15px;
  }

  .welcome-progress {
    padding: 15px;
  }

  .progress {
    height: 22px;
  }

  .progress-bar {
    font-size: 12px;
    line-height: 22px;
  }
}

/* বাকি CSS আগের মতোই থাকবে */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* ... বাকি সব স্টাইল আগের মতোই ... */

/* টেবিল কন্টেইনার - ওভারফ্লো হ্যান্ডেল করার জন্য */
.orders-table-wrapper {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-x: auto; /* অনুভূমিক স্ক্রল করার জন্য */
  -webkit-overflow-scrolling: touch; /* মোবাইলে মসৃণ স্ক্রলের জন্য */
  margin: 20px 0;
  width: 100%;
}

/* টেবিল বেস স্টাইল */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px; /* টেবিলের মিনিমাম width (11 কলামের জন্য) */
  table-layout: auto;
  background: white;
}

/* হেডার স্টাইল */
.orders-table thead tr {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.orders-table th {
  color: rgb(0, 0, 0);
  font-weight: 600;
  padding: 15px 12px;
  font-size: 14px;
  white-space: nowrap; /* টেক্সট যাতে না ভাঙে */
  text-align: left;
  border: none;
  position: relative;
}

/* কলামের width নির্ধারণ */
.orders-table th:nth-child(1) {
  min-width: 120px;
} /* অর্ডার # */
.orders-table th:nth-child(2) {
  min-width: 100px;
} /* তারিখ */
.orders-table th:nth-child(3) {
  min-width: 150px;
} /* পরিষেবা */
.orders-table th:nth-child(4) {
  min-width: 90px;
} /* মোট মূল্য */
.orders-table th:nth-child(5) {
  min-width: 80px;
} /* ডিসকাউন্ট */
.orders-table th:nth-child(6) {
  min-width: 80px;
} /* ডোমেইন */
.orders-table th:nth-child(7) {
  min-width: 80px;
} /* হোস্টিং */
.orders-table th:nth-child(8) {
  min-width: 80px;
} /* পেড */
.orders-table th:nth-child(9) {
  min-width: 80px;
} /* বাকি */
.orders-table th:nth-child(10) {
  min-width: 100px;
} /* স্ট্যাটাস */
.orders-table th:nth-child(11) {
  min-width: 200px;
} /* অ্যাকশন */

/* টেবিল সেল স্টাইল */
.orders-table td {
  padding: 15px 12px;
  border-bottom: 1px solid #e0e0e0;
  /* font-size: 14px; */
  vertical-align: middle;
  color: #2c3e50;
}

/* জোড়-বিজোড় রঙ */
.orders-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.orders-table tbody tr:hover {
  background-color: #f0f7ff;
  transition: background-color 0.3s ease;
}

/* অর্ডার নাম্বার বোল্ড */
.orders-table td:first-child {
  font-weight: 600;
  color: #2c3e50;
}

/* টাকার পরিমাণ ডান দিকে alignment */
.orders-table td:nth-child(4),
.orders-table td:nth-child(5),
.orders-table td:nth-child(6),
.orders-table td:nth-child(7),
.orders-table td:nth-child(8),
.orders-table td:nth-child(9) {
  text-align: right;
  font-family: "Courier New", monospace;
  font-weight: 500;
}

/* অ্যাকশন কলাম */
.orders-table td:last-child {
  white-space: nowrap;
  text-align: left;
}

/* অ্যাকশন বাটন গ্রুপ */
.action-buttons {
  display: flex;
  /* gap: 8px; */
  flex-wrap: wrap;
}

/* ভিউ বাটন */
.view-order-btn {
  background: #3498db;
  color: white;
  border: none;
  /* padding: 8px 15px; */
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.view-order-btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* পেমেন্ট বাটন */
.pay-now-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.pay-now-btn:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* বাটন আইকন */
.btn-icon {
  font-size: 16px;
}

/* স্ট্যাটাস ব্যাজ */
.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  min-width: 90px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #a3cfb1;
}

.status-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  color: #856404;
  border: 1px solid #ffe08a;
}

.status-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border: 1px solid #abd5e3;
}

.transaction-history-wrapper h4 {
  margin: 0 0 15px;
  color: #2c3e50;
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef2f6;
}

.transaction-table tbody tr:hover {
  background-color: #f8fafc;
}

.transaction-table tfoot td {
  padding: 15px;
  border-top: 2px solid #e0e0e0;
}

/* মোবাইল রেস্পন্সিভ */
@media (max-width: 768px) {
  .orders-table-wrapper {
    margin: 10px 0;
    padding: 10px;
    border-radius: 8px;
  }

  .orders-table {
    min-width: 1000px; /* মোবাইলে টেবিলের সাইজ কমান */
  }

  .orders-table th {
    padding: 12px 8px;
    font-size: 12px;
  }

  .orders-table td {
    padding: 12px 8px;
    font-size: 12px;
  }

  .view-order-btn,
  .pay-now-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .btn-icon {
    font-size: 14px;
  }

  .transaction-table {
    font-size: 12px;
  }

  .transaction-table th,
  .transaction-table td {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .orders-table-wrapper {
    padding: 5px;
  }

  .orders-table th,
  .orders-table td {
    padding: 10px 5px;
    font-size: 11px;
  }

  .status-badge {
    min-width: 70px;
    padding: 4px 8px;
    font-size: 10px;
  }
}
