/* Appointment Requests Card Component (Student/Coach Dashboard)
--------------------------------------------------------------
This component provides a clean, modern card style for displaying appointment requests in dashboards.
Use this for both student and coach dashboards with role-specific tweaks if needed.
*/

/* === Oluşturulma Tarihi (küçük, gri) === */
.appointment-created-date {
  font-size: 0.78rem;
  color: #b0b7c3;
  margin-top: 2px;
  margin-bottom: 0;
  margin-left: 1px;
  font-weight: 400;
  letter-spacing: 0.01em;
}


.appointment-request-card {
  background: #F3E8FD;
  border-radius: 16px;
  box-shadow: 0 1px 5px 0 rgba(32,101,209,0.04);
  transition: box-shadow 0.18s, transform 0.18s;
  padding: 22px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid transparent;
  position: relative;
}
.appointment-request-card:hover {
  box-shadow: 0 6px 18px 0 rgba(32,101,209,0.13);
}

.appointment-request-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.appointment-request-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 2px solid #e3f2fd;
  background: #f6fafd;
}
.appointment-request-info {
  flex: 1;
}
.appointment-request-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2065d1;
}
.appointment-request-title {
  font-size: 0.95rem;
  color: #637381;
  margin-top: 2px;
}
.appointment-request-status {
  margin-left: auto;
  padding: 0.4em 0.9em;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #e3f2fd;
  color: #2065d1;
  display: flex;
  align-items: center;
}
.appointment-request-status.status-pending {
  background: #fff7e6;
  color: #ffab00;
}
.appointment-request-status.status-confirmed {
  background: #e3fbe3;
  color: #00a76f;
}
.appointment-request-status.status-completed {
  background: #e3f2fd;
  color: #2065d1;
}
.appointment-request-status.status-cancelled {
  background: #fdeaea;
  color: #b71d18;
}
.appointment-request-meta {
  font-size: 0.97rem;
  color: #637381;
  margin-bottom: 0.6rem;
  display: flex;
  gap: 1.5rem;
}
.appointment-request-note {
  background: #f6fafd;
  border-radius: 8px;
  padding: 0.7em 1em 0.7em 1em;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0.7rem;
  margin-top: 0.2rem;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.appointment-note-icon svg {
  vertical-align: middle;
  margin-right: 0.5em;
  margin-top: 2px;
}
.appointment-request-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 7px;
  justify-content: center;
  width: 100%;
  z-index: 2;
  pointer-events: auto;
}
.appointment-request-btn {
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  font-size: 0.97rem;
  font-weight: 500;
  cursor: pointer;
  background: #2065d1;
  color: #fff;
  transition: background 0.18s;
}
.appointment-request-btn.danger {
  background: #ff4842;
}
.appointment-request-btn.success {
  background: #00a76f;
}
.appointment-request-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .appointment-request-card {
    padding: 12px 6px 36px 6px;
    gap: 8px;
  }
  .appointment-request-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 8px;
  }
  .appointment-request-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  .appointment-request-actions {
    gap: 6px;
    bottom: 0;
    padding: 0 4px;
  }
  .appointment-request-btn {
    font-size: 0.96rem;
    padding: 5px 8px;
  }
}
@media (max-width: 400px) {
  .appointment-request-card {
    padding: 6px 2px 28px 2px;
    border-radius: 10px;
    gap: 6px;
  }
  .appointment-request-header {
    gap: 6px;
  }
  .appointment-request-meta {
    gap: 0.5rem;
  }
  .appointment-request-actions {
    gap: 4px;
    padding: 0 2px;
  }
  .appointment-request-btn {
    font-size: 0.93rem;
    padding: 5px 4px;
  }
}

.appointment-request-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.appointment-request-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 2px solid #e3f2fd;
  background: #f6fafd;
}
.appointment-request-info {
  flex: 1;
}
.appointment-request-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2065d1;
}
.appointment-request-title {
  font-size: 0.95rem;
  color: #637381;
  margin-top: 2px;
}
.appointment-request-status {
  margin-left: auto;
  padding: 0.4em 0.9em;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #e3f2fd;
  color: #2065d1;
  display: flex;
  align-items: center;
}
.appointment-request-status.status-pending {
  background: #fff7e6;
  color: #ffab00;
}
.appointment-request-status.status-confirmed {
  background: #e3fbe3;
  color: #00a76f;
}
.appointment-request-status.status-completed {
  background: #e3f2fd;
  color: #2065d1;
}
.appointment-request-status.status-cancelled {
  background: #fdeaea;
  color: #b71d18;
}
.appointment-request-meta {
  font-size: 0.97rem;
  color: #637381;
  margin-bottom: 0.6rem;
  display: flex;
  gap: 1.5rem;
}
.appointment-request-note {
  background: #f6fafd;
  border-radius: 8px;
  padding: 0.7em 1em 0.7em 1em;
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 0.7rem;
  margin-top: 0.2rem;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.appointment-note-icon svg {
  vertical-align: middle;
  margin-right: 0.5em;
  margin-top: 2px;
}
.appointment-request-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.appointment-request-btn {
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  font-size: 0.97rem;
  font-weight: 500;
  cursor: pointer;
  background: #2065d1;
  color: #fff;
  transition: background 0.18s;
}
.appointment-request-btn.danger {
  background: #ff4842;
}
.appointment-request-btn.success {
  background: #00a76f;
}
.appointment-request-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .appointment-request-card {
    padding: 1rem;
  }
  .appointment-request-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .appointment-request-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
