/*
 * Custom WooCommerce Account Dashboard Styles
 *
 * Modern, minimalist, responsive, and accessible.
 *
 * To modify: Edit this file for layout, colors, spacing, and icons.
 */

.bs-account-dashboard {
  display: flex;
  min-height: 600px;
  background: #f7f8fa;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  margin: 32px 0;
}

.bs-account-sidebar {
  width: 320px;
  background: #fff;
  padding: 40px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid #e5e7eb;
}

.bs-profile {
  width: 100%;
  text-align: left;
  margin-bottom: 40px;
}
.bs-profile-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
}
.bs-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
  background: #f3f4f6;
}
.bs-avatar-upload {
  position: absolute;
  right: 0;
  bottom: 0;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  cursor: pointer;
  font-size: 1.1em;
  transition: background 0.2s;
}
.bs-avatar-upload:hover, .bs-avatar-upload:focus {
  background: #1d4ed8;
}
.bs-profile-name {
  font-size: 1.2em;
  font-weight: 600;
  color: #22223b;
}
.bs-profile-email {
  font-size: 0.98em;
  color: #6b7280;
  margin-bottom: 8px;
}
.bs-logout-link {
  display: inline-block;
  color: #ef4444;
  font-weight: 500;
  margin-top: 4px;
  text-decoration: none;
  font-size: 0.98em;
}
.bs-logout-link:hover {
  text-decoration: underline;
}

.bs-account-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}
.bs-account-nav li {
  margin-bottom: 8px;
}
.bs-nav-link {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 10px;
  color: #374151;
  font-size: 1.05em;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  position: relative;
  cursor: pointer;
}
.bs-nav-link .fa {
  margin-right: 12px;
  font-size: 1.1em;
}
.bs-nav-link.active, .bs-nav-link:hover, .bs-nav-link:focus {
  background: #2563eb;
  color: #fff;
}
.bs-badge {
  background: #ef4444;
  color: #fff;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  padding: 2px 8px;
  margin-left: 10px;
  display: inline-block;
  min-width: 22px;
  text-align: center;
}
.bs-nav-expandable > .bs-nav-link {
  justify-content: space-between;
  background: none;
  border: none;
}
.bs-nav-expandable > .bs-nav-link:hover, .bs-nav-expandable > .bs-nav-link:focus {
  background: none;
  border: none;
  color: #2563eb;
}
.bs-nav-children {
  margin-top: 4px;
  margin-left: 18px;
  padding-left: 0;
  border-left: 2px solid #e5e7eb;
}
.bs-nav-children .bs-nav-link {
  font-size: 0.98em;
  padding: 10px 16px;
  background: #f3f4f6;
  color: #374151;
  border-radius: 8px;
  margin-bottom: 4px;
}
.bs-nav-children .bs-nav-link:hover, .bs-nav-children .bs-nav-link:focus {
  background: #2563eb;
  color: #fff;
}

.bs-account-main {
  flex: 1;
  padding: 48px 48px 32px 48px;
  display: flex;
  flex-direction: column;
  background: #f7f8fa;
}
.bs-dashboard-header h1 {
  font-size: 2em;
  font-weight: 700;
  color: #22223b;
  margin-bottom: 8px;
}
.bs-dashboard-welcome {
  font-size: 1.1em;
  color: #2563eb;
  margin-bottom: 4px;
}
.bs-dashboard-desc {
  color: #6b7280;
  font-size: 1em;
  margin-bottom: 32px;
}

.bs-dashboard-tiles {
  margin-bottom: 32px;
}
.bs-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px;
}
.bs-tile {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(37,99,235,0.06);
  padding: 32px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: #22223b;
  position: relative;
  transition: box-shadow 0.18s, transform 0.18s;
  min-height: 120px;
}
.bs-tile:hover, .bs-tile:focus {
  box-shadow: 0 6px 24px rgba(37,99,235,0.13);
  transform: translateY(-2px) scale(1.02);
  color: #2563eb;
}
.bs-tile-icon {
  font-size: 2.1em;
  margin-bottom: 12px;
  color: #2563eb;
}
.bs-tile-label {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 6px;
}
.bs-tile-points {
  display: block;
  font-size: 2.2em;
  font-weight: 700;
  color: #f59e42;
  margin-top: 8px;
}
.bs-tile .bs-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #ef4444;
  color: #fff;
  font-size: 0.92em;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.bs-dashboard-announcement {
  margin-top: auto;
  background: #f59e42;
  color: #fff;
  border-radius: 12px;
  padding: 22px 28px;
  font-size: 1.1em;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(245,158,66,0.13);
  display: flex;
  align-items: center;
  min-height: 60px;
}
.bs-announcement-content {
  width: 100%;
  text-align: center;
}

.woocommerce-Address-title .edit {
  display: inline-block;
  background: #2563eb;
  color: #fff !important;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 500;
  font-size: 1em;
  text-decoration: none;
  margin-left: 12px;
  transition: background 0.18s, color 0.18s;
}
.woocommerce-Address-title .edit:hover, .woocommerce-Address-title .edit:focus {
  background: #1d4ed8;
  color: #fff !important;
}
.woocommerce-Address address {
  margin-bottom: 30px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .bs-account-dashboard {
    flex-direction: column;
  }
  .bs-account-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: row;
    align-items: flex-start;
    padding: 24px 12px;
  }
  .bs-account-main {
    padding: 32px 12px 24px 12px;
  }
}
@media (max-width: 700px) {
  .bs-account-dashboard {
    border-radius: 0;
    margin: 0;
    min-height: unset;
  }
  .bs-account-sidebar {
    padding: 16px 4px;
  }
  .bs-account-main {
    padding: 16px 4px 12px 4px;
  }
  .bs-tiles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Accessibility: focus states */
.bs-nav-link:focus, .bs-tile:focus, .bs-avatar-upload:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
} 