/**
 * Furnostyles Complete Dashboard CSS
 * Based on Amazon, Alibaba, Jumia, Kilimall, Jiji patterns
 */

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

#fldCartBtn {
  position: relative;
}

/* Dashboard Wrapper */
.fns-dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - 80px);
  background: #f5f5f5;
}

/* Sidebar */
.fns-dashboard-sidebar {
  width: 280px;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow-y: auto;
  flex-shrink: 0;
}

.fns-sidebar-user {
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fns-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b3b46, #c9a227);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.fns-user-info {
  flex: 1;
}

.fns-user-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a2540;
  margin-bottom: 4px;
}

.fns-user-email {
  font-size: 13px;
  color: #8090a0;
}

/* Sidebar Navigation */
.fns-sidebar-nav {
  padding: 16px 0;
}

.fns-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #1a2540;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.fns-nav-item:hover {
  background: #f5f5f5;
}

.fns-nav-item.active {
  background: #0b3b46;
  color: #fff;
}

.fns-nav-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.fns-nav-badge {
  margin-left: auto;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.fns-nav-item.active .fns-nav-badge {
  background: #c9a227;
}

/* Sidebar Footer */
.fns-sidebar-footer {
  padding: 16px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fns-sell-btn,
.fns-dropship-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.fns-sell-btn {
  background: #c9a227;
  color: #fff;
}

.fns-sell-btn:hover {
  background: #b89120;
}

.fns-dropship-btn {
  background: #0b3b46;
  color: #fff;
}

.fns-dropship-btn:hover {
  background: #0a2e35;
}

/* Main Content */
.fns-dashboard-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

/* Tab Content */
.fns-tab-content {
  display: none;
}

.fns-tab-content.active {
  display: block;
}

.fns-tab-header {
  margin-bottom: 32px;
}

.fns-tab-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a2540;
  margin: 0 0 8px;
}

.fns-tab-header p {
  font-size: 14px;
  color: #8090a0;
  margin: 0;
}

/* Stats Grid */
.fns-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.fns-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.fns-stat-card:hover {
  transform: translateY(-2px);
}

.fns-stat-icon {
  font-size: 40px;
}

.fns-stat-info {
  flex: 1;
}

.fns-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #0b3b46;
  margin-bottom: 4px;
}

.fns-stat-label {
  font-size: 13px;
  color: #8090a0;
}

/* Content Grid */
.fns-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .fns-content-grid {
    grid-template-columns: 1fr;
  }
}

.fns-content-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fns-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.fns-section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2540;
  margin: 0;
}

.fns-view-all {
  color: #0b3b46;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.fns-view-all:hover {
  text-decoration: underline;
}

/* Quick Actions */
.fns-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fns-quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #1a2540;
  font-weight: 600;
  transition: all 0.2s;
}

.fns-quick-action:hover {
  background: #0b3b46;
  color: #fff;
}

/* Orders Filters */
.fns-orders-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.fns-filter-btn {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #1a2540;
  transition: all 0.2s;
}

.fns-filter-btn:hover {
  border-color: #0b3b46;
}

.fns-filter-btn.active {
  background: #0b3b46;
  color: #fff;
  border-color: #0b3b46;
}

/* Orders List */
.fns-orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fns-order-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
}

.fns-order-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.fns-order-details {
  flex: 1;
}

.fns-order-id {
  font-size: 12px;
  color: #8090a0;
  margin-bottom: 4px;
}

.fns-order-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a2540;
  margin-bottom: 8px;
}

.fns-order-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #8090a0;
}

.fns-order-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.fns-order-status.pending {
  background: #fff3e0;
  color: #e65100;
}

.fns-order-status.processing {
  background: #e3f2fd;
  color: #1976d2;
}

.fns-order-status.shipped {
  background: #e8f5e9;
  color: #2e7d32;
}

.fns-order-status.delivered {
  background: #f3e5f5;
  color: #7b1fa2;
}

.fns-order-status.cancelled {
  background: #ffebee;
  color: #c62828;
}

.fns-order-price {
  font-size: 18px;
  font-weight: 700;
  color: #0b3b46;
}

/* Wishlist Grid */
.fns-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.fns-wishlist-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.fns-wishlist-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

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

.fns-wishlist-details {
  padding: 16px;
}

.fns-wishlist-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2540;
  margin-bottom: 8px;
}

.fns-wishlist-price {
  font-size: 18px;
  font-weight: 700;
  color: #0b3b46;
  margin-bottom: 12px;
}

.fns-wishlist-actions {
  display: flex;
  gap: 8px;
}

.fns-wishlist-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}

.fns-wishlist-btn.primary {
  background: #0b3b46;
  color: #fff;
}

.fns-wishlist-btn.primary:hover {
  background: #0a2e35;
}

.fns-wishlist-btn.secondary {
  background: #f8f9fa;
  color: #1a2540;
}

.fns-wishlist-btn.secondary:hover {
  background: #e0e0e0;
}

/* Addresses List */
.fns-addresses-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.fns-address-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.fns-address-card.default {
  border-color: #0b3b46;
  background: #f8f9fa;
}

.fns-address-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #0b3b46;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.fns-address-name {
  font-size: 16px;
  font-weight: 700;
  color: #1a2540;
  margin-bottom: 8px;
}

.fns-address-text {
  font-size: 14px;
  color: #8090a0;
  margin-bottom: 12px;
  line-height: 1.5;
}

.fns-address-phone {
  font-size: 13px;
  color: #1a2540;
  margin-bottom: 16px;
}

.fns-address-actions {
  display: flex;
  gap: 8px;
}

.fns-address-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.fns-address-btn:hover {
  border-color: #0b3b46;
  color: #0b3b46;
}

/* Payments List */
.fns-payments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fns-payment-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fns-payment-icon {
  font-size: 32px;
}

.fns-payment-details {
  flex: 1;
}

.fns-payment-type {
  font-size: 16px;
  font-weight: 600;
  color: #1a2540;
  margin-bottom: 4px;
}

.fns-payment-number {
  font-size: 14px;
  color: #8090a0;
}

.fns-payment-default {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.fns-payment-actions {
  display: flex;
  gap: 8px;
}

/* Messages List */
.fns-messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fns-message-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.fns-message-item:hover {
  border-color: #0b3b46;
}

.fns-message-item.unread {
  background: #f8f9fa;
  border-left: 4px solid #0b3b46;
}

.fns-message-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.fns-message-details {
  flex: 1;
}

.fns-message-sender {
  font-size: 14px;
  font-weight: 600;
  color: #1a2540;
  margin-bottom: 4px;
}

.fns-message-subject {
  font-size: 13px;
  color: #8090a0;
  margin-bottom: 4px;
}

.fns-message-time {
  font-size: 12px;
  color: #a0aabb;
}

.fns-message-badge {
  background: #dc3545;
  color: #fff;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Reviews List */
.fns-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fns-review-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
}

.fns-review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fns-review-product {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1a2540;
}

.fns-review-rating {
  color: #ffc107;
  font-size: 18px;
}

.fns-review-date {
  font-size: 12px;
  color: #8090a0;
}

.fns-review-text {
  font-size: 14px;
  color: #1a2540;
  line-height: 1.6;
  margin-bottom: 12px;
}

.fns-review-actions {
  display: flex;
  gap: 8px;
}

/* Uploads List */
.fns-uploads-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.fns-upload-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.fns-upload-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.fns-upload-details {
  padding: 16px;
}

.fns-upload-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2540;
  margin-bottom: 8px;
}

.fns-upload-price {
  font-size: 18px;
  font-weight: 700;
  color: #0b3b46;
  margin-bottom: 8px;
}

.fns-upload-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.fns-upload-status.active {
  background: #e8f5e9;
  color: #2e7d32;
}

.fns-upload-status.pending {
  background: #fff3e0;
  color: #e65100;
}

.fns-upload-actions {
  display: flex;
  gap: 8px;
}

/* Settings Sections */
.fns-settings-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fns-settings-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
}

.fns-settings-section.danger {
  border-color: #dc3545;
}

.fns-settings-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a2540;
  margin: 0 0 20px;
}

.fns-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fns-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fns-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #1a2540;
}

.fns-form-group input {
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.fns-form-group input:focus {
  outline: none;
  border-color: #0b3b46;
}

.fns-save-btn {
  padding: 12px 24px;
  background: #0b3b46;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.fns-save-btn:hover {
  background: #0a2e35;
}

.fns-notification-settings,
.fns-privacy-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fns-toggle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.fns-toggle-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.fns-toggle-item span {
  font-size: 14px;
  color: #1a2540;
}

.fns-danger-btn {
  padding: 12px 24px;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.fns-danger-btn:hover {
  background: #c82333;
}

/* Support Tickets */
.fns-tickets-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fns-ticket-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.fns-ticket-id {
  font-size: 14px;
  font-weight: 600;
  color: #1a2540;
  margin-bottom: 4px;
}

.fns-ticket-subject {
  font-size: 13px;
  color: #8090a0;
  margin-bottom: 8px;
}

.fns-ticket-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.fns-ticket-status.open {
  background: #e8f5e9;
  color: #2e7d32;
}

.fns-ticket-status.pending {
  background: #fff3e0;
  color: #e65100;
}

.fns-ticket-status.closed {
  background: #f5f5f5;
  color: #8090a0;
}

/* Add Button */
.fns-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #0b3b46;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 24px;
}

.fns-add-btn:hover {
  background: #0a2e35;
}

/* Empty State */
.fns-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #8090a0;
}

.fns-empty-state::before {
  content: '📭';
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .fns-dashboard-wrapper {
    flex-direction: column;
  }

  .fns-dashboard-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
  }

  .fns-dashboard-main {
    padding: 16px;
  }

  .fns-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fns-content-grid {
    grid-template-columns: 1fr;
  }

  .fns-wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fns-addresses-list {
    grid-template-columns: 1fr;
  }

  .fns-uploads-list {
    grid-template-columns: 1fr;
  }
}
