/* Main Container */
.address-container {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 2rem auto;
  max-width: 1200px;
}

/* Sidebar Styling */
.profile-sidebar {
  background-color: #ffffff;
  border-right: 1px solid #e9ecef;
  padding: 2rem;
  height: 100%;
}

/* User Info Section */
.user-info {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f3f4;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 auto 1rem auto;
  text-transform: uppercase;
}

.user-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.user-email {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Navigation Menu */
.profile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #6c757d;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover {
  background-color: #f8f9fa;
  color: #495057;
  text-decoration: none;
}

.nav-link i {
  margin-right: 0.75rem;
  font-size: 1rem;
  width: 16px;
  text-align: center;
}

.nav-link.logout {
  color: #dc3545;
}

.nav-link.logout:hover {
  background-color: #f8d7da;
  color: #721c24;
}

/* Version Info */
.version-info {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f3f4;
  font-size: 0.75rem;
  color: #adb5bd;
  text-align: center;
}

/* Main Content Area */
.address-content {
  padding: 2rem;
  background-color: #ffffff;
}

/* Address Header */
.address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.address-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.add-address-btn {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-address-btn:hover {
  background-color: #0056b3;
}

/* Address Cards Grid */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Address Card */
.address-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.address-card:hover {
  border-color: #007bff;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

/* Address Type Badge */
.address-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.type-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-home {
  background-color: #d4edda;
  color: #155724;
}

.type-office {
  background-color: #cce7ff;
  color: #004085;
}

.type-default {
  background-color: #fff3cd;
  color: #856404;
}

/* Address Details */
.address-details {
  margin-bottom: 1.5rem;
}

.address-name {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.address-text {
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.address-phone {
  color: #6c757d;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Address Actions */
.address-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-link {
  color: #007bff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.action-link:hover {
  color: #0056b3;
  text-decoration: none;
  background-color: #f8f9fa;
}

.action-link.edit {
  color: #007bff;
}

.action-link.default {
  color: #28a745;
}

.action-link.delete {
  color: #dc3545;
}

.action-link.delete:hover {
  background-color: #fee;
}

/* Default Address Indicator */
.default-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #28a745;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* Mobile Sidebar Toggle */
.mobile-sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: none;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.profile-sidebar.mobile {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100%;
  z-index: 1050;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.profile-sidebar.mobile.show {
  left: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #dee2e6;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
  color: #495057;
}

.empty-state p {
  margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .address-container {
    margin: 1rem;
    border-radius: 8px;
  }

  .profile-sidebar {
    display: none;
  }

  .mobile-sidebar-toggle {
    display: flex;
  }

  .address-content {
    padding: 1.5rem;
  }

  .address-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .address-content {
    padding: 1rem;
  }

  .address-header {
    flex-direction: column;
    align-items: stretch;
  }

  .add-address-btn {
    width: 100%;
    justify-content: center;
  }

  .address-card {
    padding: 1rem;
  }

  .address-actions {
    gap: 0.75rem;
  }
}

@media (max-width: 576px) {
  .address-container {
    margin: 0.5rem;
    border-radius: 6px;
  }

  .address-content {
    padding: 0.75rem;
  }

  .user-avatar {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .address-title {
    font-size: 1.25rem;
  }

  .address-card {
    padding: 0.75rem;
  }

  .address-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .action-link {
    text-align: center;
    padding: 0.5rem;
  }
}
