/* ============================================
   CUSTOMER DASHBOARD MODERN STYLES
   Professional Orange-to-Coral Gradient Theme
   ============================================ */

:root {
  --customer-primary-start: #ff6b35;
  --customer-primary-end: #f7931e;
  --customer-accent-start: #ff9a56;
  --customer-accent-end: #ff6b6b;
  --customer-success: #28a745;
  --customer-danger: #dc3545;
  --customer-warning: #ffc107;
  --customer-info: #17a2b8;
}

/* ============================================
   GLOBAL CUSTOMER DASHBOARD OVERRIDES
   ============================================ */

.customer-dashboard.user-dashbord {
  padding: 80px 0 !important;
}

/* ============================================
   CUSTOMER SIDEBAR
   ============================================ */

.customer-dashboard .user-sidebar {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: none !important;
}

.customer-dashboard .user-sidebar .links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.customer-dashboard .user-sidebar .links li {
  border-bottom: 1px solid #f0f0f0;
}

.customer-dashboard .user-sidebar .links li:last-child {
  border-bottom: none;
}

.customer-dashboard .user-sidebar .links li a {
  display: block !important;
  padding: 18px 25px !important;
  color: #495057 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
  border-left: 4px solid transparent;
}

.customer-dashboard .user-sidebar .links li a:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%) !important;
  color: var(--customer-primary-start) !important;
  border-left-color: var(--customer-primary-start) !important;
  padding-left: 28px !important;
}

.customer-dashboard .user-sidebar .links li a.active {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%) !important;
  color: var(--customer-primary-start) !important;
  border-left-color: var(--customer-primary-start) !important;
  font-weight: 700 !important;
}

.user-sidebar .links li a.active::before {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--customer-primary-start);
  border-radius: 50%;
}

/* ============================================
   DASHBOARD CARDS & ACCOUNT INFO
   ============================================ */

.customer-dashboard .user-profile-details,
.customer-dashboard .account-info {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: none !important;
}

.customer-dashboard .account-info .title {
  background: linear-gradient(135deg, var(--customer-primary-start) 0%, var(--customer-primary-end) 100%) !important;
  padding: 20px 30px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border-bottom: none !important;
}

.customer-dashboard .account-info .title h4 {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 20px;
  margin: 0;
}

.customer-dashboard .account-info .main-info {
  padding: 30px !important;
}


.customer-dashboard .account-info .main-info h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--customer-primary-start);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 107, 53, 0.2);
}

.customer-dashboard .account-info .main-info ul.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.customer-dashboard .account-info .main-info ul.list li {
  padding: 10px 0;
  font-size: 15px;
  color: #495057;
  line-height: 1.8;
}

.customer-dashboard .account-info .main-info ul.list li b {
  color: #212529;
  font-weight: 600;
}

/* ============================================
   EDIT PROFILE FORM
   ============================================ */


.customer-dashboard .edit-info-area {
  padding: 30px;
}

.customer-dashboard .edit-info-area form {
  display: block;
}

.customer-dashboard .edit-info-area .form-group {
  margin-bottom: 20px;
}

.customer-dashboard .edit-info-area label {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.customer-dashboard .edit-info-area .form-control {
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.customer-dashboard .edit-info-area .form-control:focus {
  border-color: var(--customer-primary-start);
  box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.15);
  background: #ffffff;
}

.customer-dashboard .edit-info-area .form-control:hover {
  border-color: var(--customer-primary-end);
}

.customer-dashboard .edit-info-area select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff6b35' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
  padding-right: 45px;
  cursor: pointer;
}

/* File Upload Profile Photo */
.file-upload-area {
  text-align: center;
  margin-bottom: 30px;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(247, 147, 30, 0.03) 100%);
  border-radius: 12px;
}

.file-preview {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box,
              linear-gradient(135deg, var(--customer-primary-start) 0%, var(--customer-primary-end) 100%) border-box;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.2);
  transition: all 0.3s ease;
}

.file-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.3);
}

.file-preview #imagePreview {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

.file-edit {
  margin-top: 15px;
}

.file-edit input[type="file"] {
  display: none;
}

.file-edit label {
  background: linear-gradient(135deg, var(--customer-primary-start) 0%, var(--customer-primary-end) 100%);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.file-edit label:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.file-edit label::before {
  content: '\f030';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */

.edit-info-area .btn,
.user-dashbord .btn {
  border-radius: 10px;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: none;
}

.edit-info-area .btn-primary,
.user-dashbord .btn-primary {
  background: linear-gradient(135deg, var(--customer-primary-start) 0%, var(--customer-primary-end) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.edit-info-area .btn-primary:hover,
.user-dashbord .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
  background: linear-gradient(135deg, var(--customer-primary-end) 0%, var(--customer-primary-start) 100%);
}

.edit-info-area .btn-success,
.user-dashbord .btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.edit-info-area .btn-success:hover,
.user-dashbord .btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.edit-info-area .btn-danger,
.user-dashbord .btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.edit-info-area .btn-danger:hover,
.user-dashbord .btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

/* ============================================
   TABLES (Bookings, Orders, Wishlist)
   ============================================ */

.user-dashbord table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}

.user-dashbord table thead th {
  background: linear-gradient(135deg, var(--customer-primary-start) 0%, var(--customer-primary-end) 100%);
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 15px 20px;
  border: none;
  white-space: nowrap;
}

.user-dashbord table thead th:first-child {
  border-top-left-radius: 12px;
}

.user-dashbord table thead th:last-child {
  border-top-right-radius: 12px;
}

.user-dashbord table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #e8e8e8;
}

.user-dashbord table tbody tr:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(247, 147, 30, 0.03) 100%);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-dashbord table tbody td {
  padding: 15px 20px;
  vertical-align: middle;
  font-size: 14px;
  color: #495057;
}

.user-dashbord table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.user-dashbord table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

/* ============================================
   BADGES & STATUS
   ============================================ */

.badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.badge-primary {
  background: linear-gradient(135deg, var(--customer-primary-start) 0%, var(--customer-primary-end) 100%);
  color: #ffffff;
}

.badge-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #ffffff;
}

.badge-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #ffffff;
}

.badge-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  color: #212529;
}

.badge-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: #ffffff;
}

.badge-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: #ffffff;
}

/* ============================================
   ALERTS
   ============================================ */

.user-dashbord .alert {
  border-radius: 12px;
  border: none;
  padding: 15px 20px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.user-dashbord .alert-success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
  border-left: 4px solid #28a745;
  color: #155724;
}

.user-dashbord .alert-danger {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(200, 35, 51, 0.1) 100%);
  border-left: 4px solid #dc3545;
  color: #721c24;
}

.user-dashbord .alert-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(224, 168, 0, 0.1) 100%);
  border-left: 4px solid #ffc107;
  color: #856404;
}

.user-dashbord .alert-info {
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.1) 0%, rgba(19, 132, 150, 0.1) 100%);
  border-left: 4px solid #17a2b8;
  color: #0c5460;
}

/* ============================================
   PAGINATION
   ============================================ */

.user-dashbord .pagination {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.user-dashbord .pagination .page-item {
  margin: 0 3px;
}

.user-dashbord .pagination .page-link {
  border: 2px solid #e8e8e8;
  color: var(--customer-primary-start);
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.user-dashbord .pagination .page-link:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
  border-color: var(--customer-primary-start);
  color: var(--customer-primary-start);
}

.user-dashbord .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--customer-primary-start) 0%, var(--customer-primary-end) 100%);
  border-color: var(--customer-primary-start);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* ============================================
   SUPPORT TICKETS
   ============================================ */

.ticket-list-item,
.message-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.ticket-list-item:hover,
.message-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-left-color: var(--customer-primary-start);
}

.ticket-list-item .ticket-header,
.message-item .message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8e8e8;
}

.ticket-list-item .ticket-subject,
.message-item .message-author {
  font-weight: 600;
  color: var(--customer-primary-start);
  font-size: 16px;
}

.ticket-list-item .ticket-date,
.message-item .message-date {
  color: #6c757d;
  font-size: 12px;
}

/* ============================================
   WISHLIST GRID
   ============================================ */

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.wishlist-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.wishlist-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.wishlist-item .item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.wishlist-item .item-content {
  padding: 15px;
}

.wishlist-item .item-title {
  font-weight: 700;
  color: #212529;
  font-size: 16px;
  margin-bottom: 8px;
}

.wishlist-item .item-price {
  color: var(--customer-primary-start);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .user-sidebar {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .user-sidebar .links li a {
    padding: 15px 20px;
    font-size: 14px;
  }

  .account-info .title {
    padding: 15px 20px;
  }

  .account-info .title h4 {
    font-size: 18px;
  }

  .account-info .main-info {
    padding: 20px;
  }

  .edit-info-area {
    padding: 20px;
  }

  .file-preview {
    width: 120px;
    height: 120px;
  }

  .user-dashbord table thead th {
    font-size: 11px;
    padding: 10px 12px;
  }

  .user-dashbord table tbody td {
    font-size: 13px;
    padding: 10px 12px;
  }

  .wishlist-grid {
    grid-template-columns: 1fr;
  }
}
