﻿/* Chat Panels Styles */

/* Patient Info Panel */
.patient-info-panel,
.schedule-panel,
.send-options-panel {
  background: #1e293b;
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.2s ease;
  max-height: 300px;
  overflow-y: auto;
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 300px; }
}

.patient-info-header,
.schedule-panel-header,
.send-options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(37, 211, 102, 0.1);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.patient-info-header strong,
.schedule-panel-header strong,
.send-options-header strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #25d366;
  font-size: 14px;
}

.close-panel-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.close-panel-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* Patient Quick Info */
.patient-quick-info {
  padding: 16px;
}

.patient-quick-info .info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.patient-quick-info .info-row i {
  width: 20px;
  color: #25d366;
  text-align: center;
  flex-shrink: 0;
}

.patient-quick-info .info-section {
  margin-top: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.patient-quick-info .info-section strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.quick-send-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.quick-send-btn {
  flex: 1;
  padding: 10px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 8px;
  color: #25d366;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.quick-send-btn:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: #25d366;
}

/* Schedule Form Panel */
.schedule-form {
  padding: 16px;
}

.schedule-form .field {
  margin-bottom: 12px;
}

.schedule-form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.schedule-form select,
.schedule-form input[type="text"],
.schedule-form input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  background: #0b1224;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  box-sizing: border-box;
}

.schedule-form select:focus,
.schedule-form input:focus {
  outline: none;
  border-color: #25d366;
}

.schedule-actions {
  margin-top: 16px;
}

.schedule-actions .primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.schedule-actions .primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.schedule-actions .primary:active {
  transform: translateY(0);
}

/* Send Options Panel */
.send-options-list {
  padding: 8px;
}

.send-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.send-option:hover {
  background: rgba(37, 211, 102, 0.1);
}

.send-option i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 211, 102, 0.15);
  border-radius: 50%;
  color: #25d366;
  font-size: 16px;
  flex-shrink: 0;
}

.send-option div {
  flex: 1;
  min-width: 0;
}

.send-option strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.send-option small {
  color: var(--muted);
  font-size: 12px;
  display: block;
}

/* Professional item styling */
.professional-item .patient-avatar {
  border: 2px solid currentColor;
}

/* Next appointment indicator */
.next-apt {
  display: block;
  font-size: 11px;
  color: #25d366;
  margin-top: 2px;
}

/* Responsive improvements */
@media (max-width: 900px) {
  .chat-sidebar {
    width: 360px;
    min-width: 320px;
  }
  
  .chat-tab {
    padding: 10px 8px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .chat-sidebar {
    width: 100%;
    min-width: auto;
  }
  
  .chat-input-row textarea {
    min-height: 44px;
  }
}
