.targeted-clients-page {
  padding: 20px;
  direction: rtl;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Cairo', sans-serif;
}

/* Header Styles */
.page-header {
  display: flex;
  justify-content: end;
  margin-bottom: 30px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}



.header-title {
  display: flex;
  flex-direction: column;
}

.page-header h2 {
  margin: 0;
  font-size: 26px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.page-header h2 i {
  color: #3498db;
  font-size: 28px;
}

.clients-count {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  background-color: #f0f7ff;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

.add-client-btn {
  padding: 10px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  border-radius: 6px;
  background-color: #3498db;
  color: white;
  border: none;
  box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
}

.add-client-btn:hover {
  t;
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
  background-color: #2980b9;
}

/* Search Styles */
.search-container {
  position: relative;
  margin-bottom: 30px;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0;  }
  to { opacity: 1; transform: translateY(0); }
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 12px;
}

.search-input {
  width: 100%;
  padding: 14px 45px 14px 45px;
  border: 2px solid #eaeaea;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  background-color: white;
  color: #333;
}

.search-input:focus {
  border-color: #3498db;
  box-shadow: 0 3px 8px rgba(52, 152, 219, 0.15);
  outline: none;
  t;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #3498db;
  font-size: 18px;
}

.clear-search {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clear-search:hover {
  background-color: #f0f0f0;
  color: #e74c3c;
  transform: translateY(-50%) scale(1.05);
}

.search-results-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  background-color: #f8f9fa;
  padding: 8px 15px;
  border-radius: 8px;
  display: inline-block;
  border-right: 3px solid #3498db;
}

.search-results-info strong {
  color: #333;
  font-weight: 600;
}

/* Error Container */
.error-container {
  background-color: #fff3f3;
  border: 1px solid #ffcccb;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.error-container i {
  color: #e74c3c;
  font-size: 24px;
}

.error-container p {
  margin: 0;
  color: #e74c3c;
  flex-grow: 1;
}

.error-container button {
  white-space: nowrap;
}

/* Clients List Styles */
.clients-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeInUp 0.5s ease-out;
}

.client-list-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 15px;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  border-right: 4px solid #3498db;
}

.client-info-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.client-info-popup.show {
  opacity: 1;
  visibility: visible;
}

.client-info-content {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: popupFadeIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  border: 1px solid rgba(52, 152, 219, 0.2);
  transform: translateY(0);
}

@keyframes popupFadeIn {
  from { opacity: 0; scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.client-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(to right, #f8f9fa, #e9f7fe);
  border-radius: 16px 16px 0 0;
  position: relative;
}

.client-info-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #3498db, transparent);
}

.client-info-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 20px;
  font-weight: 600;
}

.close-popup {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f0f0f0;
}

.close-popup:hover {
  color: #e74c3c;
  transform: rotate(90deg);
  background-color: #fee;
}

.client-info-body {
  padding: 25px;
}

.client-detail-row {
  display: flex;
  margin-bottom: 18px;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 15px;
  transition: all 0.3s ease;
}

.client-detail-row:hover {
  background-color: #f9fcff;
  border-radius: 8px;
  padding-left: 10px;
  border-bottom-color: #e1f0fa;
}

.client-detail-row:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label {
  width: 150px;
  font-weight: 600;
  color: #555;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-label i {
  color: #3498db;
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.detail-value {
  flex-grow: 1;
  color: #333;
  padding: 5px 0;
}

.detail-value a {
  color: #3498db;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
}

.detail-value a:hover {
  color: #2980b9;
  background-color: rgba(52, 152, 219, 0.1);
  t;
}

.client-list-item {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 15px;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.client-list-item:hover {
  t;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0;
  background-color: #f9fcff;
}

.client-list-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, #3498db, #2980b9);
  opacity: 0;
  transition: all 0.3s ease;
}

.client-list-item:hover::before {
  opacity: 1;
}

.client-cell {
  padding: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-name-container {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing */
  cursor: pointer;
}

.client-avatar {
  width: 45px;
  height: 45px;
  background-color: #e8f4fd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  flex-shrink: 0;
}

.client-avatar i {
  color: #3498db;
  font-size: 20px;
}

.client-info-preview {
  min-width: 0; /* Enables text truncation */
}

.client-name {
  margin: 0 0 5px 0;
  font-size: 18px;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-phone {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.client-phone i {
  color: #4CAF50;
  font-size: 12px;
}

/* Action Buttons */
.client-actions {
  display: flex;
  gap: 12px;
  margin-right: 10px;
  position: relative;
  align-items: center;
}

.call-button,
.view-details-button,
.info-button {
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  width: 38px;
  height: 38px;
  margin-left: 5px;
  color: white;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.call-button {
  background-color: #4CAF50;
}

.view-details-button {
  background-color: #3498db;
}

.info-button {
  background-color: #9b59b6;
}

.call-button i,
.view-details-button i,
.info-button i {
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.call-button::before,
.view-details-button::before,
.info-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0);
  opacity: 0;
  transition: all 0.4s ease;
}

.call-button:hover::before,
.view-details-button:hover::before,
.info-button:hover::before {
  transform: scale(2);
  opacity: 1;
}

.call-button:hover {
  background-color: #45a049;
  t scale(1.05);
  box-shadow: 0 5px 12px rgba(76, 175, 80, 0.3);
}

.view-details-button:hover {
  background-color: #2980b9;
  t scale(1.05);
  box-shadow: 0 5px 12px rgba(52, 152, 219, 0.3);
}

.info-button:hover {
  background-color: #8e44ad;
  t scale(1.05);
  box-shadow: 0 5px 12px rgba(155, 89, 182, 0.3);
}

.call-button:hover i,
.view-details-button:hover i,
.info-button:hover i {
  transform: scale(1.2);
}

.call-button:disabled,
.view-details-button:disabled,
.info-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

/* Action Dropdown Menu */
.action-dropdown {
  position: relative;
}

.action-menu-button {
  background: #f8f9fa;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #555;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.action-menu-button:hover {
  background-color: #e9ecef;
  t rotate(90deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  color: #3498db;
}

.action-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  width: 180px;
  z-index: 10;
  overflow: hidden;
  display: none;
  margin-top: 8px;
  border: 1px solid #f0f0f0;
  transform-origin: top left;
}

.action-menu.show {
  display: block;
  animation: menuFadeIn 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes fadeIn {
  from { opacity: 0;  }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: scale(0.8) translateY(-5px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.action-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 18px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: right;
  transition: all 0.3s ease;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
  overflow: hidden;
}

.action-menu button:hover {
  background-color: #f8f9fa;
  color: #2980b9;
  padding-right: 22px;
}

.action-menu button::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.action-menu button:hover::before {
  background-color: #3498db;
}

.action-menu button i {
  margin-left: 12px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  transition: all 0.3s ease;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 8px;
}

.action-menu button:nth-child(1) i {
  color: #3498db; /* View icon */
}

.action-menu button:nth-child(2) i {
  color: #f39c12; /* Edit icon */
}

.action-menu button:nth-child(3) i {
  color: #e74c3c; /* Delete icon */
}

.action-menu button:last-child {
  border-bottom: none;
}

.action-menu button:hover i {
  transform: translateX(-5px);
  background-color: rgba(52, 152, 219, 0.1);
}

.client-info {
  margin-bottom: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  color: #555;
}

.info-item i {
  width: 20px;
  margin-left: 10px;
  color: #666;
}

.delete-button {
  color: #f44336;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.delete-button:hover {
  background-color: rgba(244, 67, 54, 0.1);
  t;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Loading State */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: #666;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  margin: 20px 0;
  animation: fadeIn 0.5s ease-out;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  border-right: 4px solid transparent;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Empty State Styles */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: #666;
  background-color: white;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
}

.empty-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #3498db, #2980b9);
}

.empty-icon {
  font-size: 60px;
  margin-bottom: 20px;
  color: #3498db;
  opacity: 0.7;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 0.9; }
  100% { transform: scale(1); opacity: 0.7; }
}

.empty-state p {
  margin-bottom: 25px;
  font-size: 18px;
  color: #555;
}

.empty-state .btn {
  margin-top: 15px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.empty-state .btn:hover {
  t;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .clients-list {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .add-client-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .client-list-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .client-name-container {
    margin-bottom: 15px;
    width: 100%;
  }
  
  .client-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* تنسيقات نافذة تفاصيل العميل */
.client-details-modal {
  padding: 0;
  max-width: 650px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0;  }
  to { opacity: 1; transform: translateY(0); }
}

/* رأس التفاصيل */
.client-details-header {
  display: flex;
  align-items: center;
  padding: 25px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border-radius: 12px 12px 0 0;
  position: relative;
  overflow: hidden;
}

.client-details-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.6;
  z-index: 0;
}

.client-avatar-large {
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.client-avatar-large i {
  font-size: 32px;
  color: white;
}

.client-header-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.client-header-info h2 {
  margin: 0 0 8px 0;
  font-size: 1.7rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.client-date {
  font-size: 0.9rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-flex;
}

.client-date i {
  margin-left: 8px;
}

/* محتوى التفاصيل */
.client-details-content {
  padding: 25px;
  background-color: #fff;
}

.client-info-section {
  margin-bottom: 30px;
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.client-info-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  t;
}

.client-info-section h3 {
  font-size: 1.2rem;
  color: #3498db;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
  display: flex;
  align-items: center;
  position: relative;
}

.client-info-section h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: #3498db;
}

.client-info-section h3 i {
  margin-left: 10px;
  color: #3498db;
  font-size: 1.1rem;
}

.client-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.info-item {
  margin-bottom: 15px;
  transition: all 0.2s ease;
  padding: 10px;
  border-radius: 8px;
}

.info-item:hover {
  background-color: #f0f7ff;
}

.info-label {
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.info-label i {
  margin-left: 8px;
  color: #3498db;
  font-size: 1rem;
}

.info-value {
  color: #333;
  padding: 5px 0;
  font-size: 15px;
}

.not-available {
  color: #999;
  font-style: italic;
  padding: 3px 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  display: inline-block;
}

.phone-link, .email-link, .website-link {
  color: #3498db;
  text-decoration: none;
  transition: all 0.2s;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.phone-link:hover, .email-link:hover, .website-link:hover {
  color: #2980b9;
  background-color: #e8f4fd;
  text-decoration: none;
  t;
}

/* قسم الملاحظات */
.client-notes {
  background-color: #f9f9f9;
  padding: 18px;
  border-radius: 8px;
  border-right: 4px solid #3498db;
  line-height: 1.7;
  white-space: pre-line;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 15px;
}

/* أزرار الإجراءات */
.client-details-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 20px;
  background-color: #f5f5f5;
  border-top: 1px solid #eee;
}

/* قائمة الإجراءات في نافذة التفاصيل */
.client-details-modal .action-dropdown {
  position: relative;
}

.client-details-modal .action-menu-button {
  background: #f0f0f0;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #555;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
}

.client-details-modal .action-menu-button:hover {
  background-color: #e0e0e0;
  t;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.client-details-modal .action-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  width: 160px;
  z-index: 10;
  overflow: hidden;
  display: none;
  margin-top: 8px;
  border: 1px solid #eee;
}

.client-details-modal .action-menu.show {
  display: block;
  animation: scaleIn 0.2s ease-in-out;
}

.client-details-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.client-details-actions button:hover {
  t;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.client-details-actions button i {
  margin-left: 8px;
  font-size: 16px;
}

.client-details-actions .btn-primary {
  background-color: #3498db;
  color: white;
}

.client-details-actions .btn-primary:hover {
  background-color: #2980b9;
}

.client-details-actions .btn-warning {
  background-color: #f39c12;
  color: white;
}

.client-details-actions .btn-warning:hover {
  background-color: #e67e22;
}

.client-details-actions .btn-danger {
  background-color: #e74c3c;
  color: white;
}

.client-details-actions .btn-danger:hover {
  background-color: #c0392b;
}

.client-details-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* تعديلات للشاشات الصغيرة */
@media (max-width: 576px) {
  .client-info-grid {
    grid-template-columns: 1fr;
  }
  
  .client-details-actions {
    flex-direction: column;
  }
  
  .client-details-actions button {
    width: 100%;
    margin-bottom: 10px;
    justify-content: center;
  }
  
  .client-avatar-large {
    width: 60px;
    height: 60px;
  }
  
  .client-header-info h2 {
    font-size: 1.4rem;
  }
  
  .client-details-content {
    padding: 15px;
  }
  
  .client-info-section {
    padding: 15px;
  }
  
  .action-menu {
    width: 180px;
    right: 0;
    left: auto;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .clients-list {
    grid-template-columns: 1fr;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
  }
  
  .add-client-btn {
    width: 100%;
    justify-content: center;
  }
  
  .search-input {
    padding: 12px 40px;
  }
  
  .client-list-item {
    padding: 15px;
  }
  
  .client-actions {
    position: static;
  }
  
  .action-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    z-index: 100;
  }
  
  .client-name {
    font-size: 16px;
  }
  
  .client-phone {
    font-size: 13px;
  }
  
  .client-avatar {
    width: 40px;
    height: 40px;
  }
  
  .empty-state {
    padding: 40px 15px;
  }
  
  .empty-icon {
    font-size: 50px;
  }
  
  .loading-container {
    padding: 40px 0;
  }
}