* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #f5f7fa;
  min-height: 100vh;
  color: #2c3e50;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Loading State */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #2c3e50;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e1e8ed;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error State */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
}

.error-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.error-container h1 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #2c3e50;
}

.error-container p {
  font-size: 18px;
  margin-bottom: 12px;
  color: #7f8c8d;
}

.error-detail {
  font-size: 16px;
  color: #95a5a6;
}

/* Header */
.header {
  background: #2c3e50;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 24px 0;
  margin-bottom: 30px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 24px;
  color: white;
  margin-bottom: 4px;
  font-weight: 600;
}

.subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.btn-settings {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-settings:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

/* Form */
.appointment-form {
  background: white;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border: 1px solid #e1e8ed;
}

.appointment-form h2 {
  font-size: 20px;
  margin-bottom: 24px;
  color: #2c3e50;
  font-weight: 600;
}

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #ecf0f1;
}

.section-header:first-child {
  margin-top: 0;
}

.section-icon {
  font-size: 18px;
}

.section-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Groups */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.form-row button {
  margin: 0;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dce4ec;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  font-family: inherit;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input:read-only {
  background: #f8f9fa;
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
}

/* Customer Search */
#customer-search {
  position: relative;
}

.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #dce4ec;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: -2px;
}

.suggestion-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f5;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: #f8f9fa;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.suggestion-contact {
  font-size: 12px;
  color: #7f8c8d;
}

/* Customer Card */
.customer-card {
  background: #f8f9fa;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.customer-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3498db;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
}

.customer-details {
  flex: 1;
}

.customer-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  font-size: 15px;
}

.customer-contact {
  font-size: 13px;
  color: #7f8c8d;
}

/* Input with Select */
.input-with-select {
  display: flex;
  gap: 8px;
}

.input-with-select input {
  flex: 1;
}

.input-with-select select {
  width: 100px;
  flex-shrink: 0;
}

/* Selected Services */
.selected-services {
  margin-bottom: 16px;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid #e1e8ed;
}

.service-item-info {
  flex: 1;
}

.service-item-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  font-size: 14px;
}

.service-item-price {
  color: #27ae60;
  font-weight: 600;
  font-size: 14px;
}

.service-item-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
  font-size: 16px;
  color: #7f8c8d;
}

.btn-icon:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #e74c3c;
}

.btn-add-service,
.btn-add-customer {
  width: 100%;
  padding: 12px;
  background: white;
  border: 2px dashed #bdc3c7;
  border-radius: 6px;
  color: #3498db;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.btn-add-service:hover,
.btn-add-customer:hover {
  background: #f8f9fa;
  border-color: #3498db;
}

/* Total Summary */
.total-summary {
  background: #ecf0f1;
  border-radius: 6px;
  padding: 20px;
  margin: 24px 0;
  border: 1px solid #d5dbdb;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #34495e;
  font-size: 14px;
}

.summary-row.total-row {
  border-top: 2px solid #bdc3c7;
  margin-top: 8px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-print {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: none;
  color: white;
}

.btn-primary {
  background: #3498db;
  width: 100%;
  margin-top: 10px;
}

.btn-primary:hover {
  background: #2980b9;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #95a5a6;
}

.btn-secondary:hover {
  background: #7f8c8d;
  box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3);
}

.btn-print {
  background: #27ae60;
}

.btn-print:hover {
  background: #229954;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 40px;
  max-width: 700px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.3s ease-out;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ecf0f1;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: #7f8c8d;
}

.close-btn:hover {
  background: #d5dbdb;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon {
  width: 70px;
  height: 70px;
  background: #27ae60;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #2c3e50;
  font-weight: 600;
}

.modal-content p {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 20px;
}

/* Appointment Details */
.appointment-details {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
  border: 1px solid #e1e8ed;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #3498db;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ecf0f1;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: #34495e;
  font-size: 13px;
}

.detail-value {
  color: #2c3e50;
  font-size: 13px;
  text-align: right;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ecf0f1;
}

.service-list-item:last-child {
  border-bottom: none;
}

.total-amount {
  font-size: 20px;
  font-weight: 700;
  color: #27ae60;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.btn-preview {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: none;
  color: white;
  background: #9b59b6;
}

.btn-preview:hover {
  background: #8e44ad;
  box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .appointment-form {
    padding: 20px;
  }

  .header h1 {
    font-size: 20px;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }

  .input-with-select select {
    width: 80px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  .header,
  .appointment-form,
  .btn-primary,
  .btn-secondary,
  .btn-print,
  .close-btn {
    display: none !important;
  }

  .modal {
    position: static;
    background: none;
    padding: 0;
  }

  .modal-content {
    box-shadow: none;
    padding: 20px;
    max-width: 100%;
  }

  .success-icon {
    display: none;
  }

  .modal-content h2,
  .modal-content p {
    display: none;
  }

  .appointment-details {
    border: 2px solid #000;
  }

  .detail-section-title {
    color: #000;
  }

  .modal-actions {
    display: none !important;
  }

  .print-hide-section {
    display: none !important;
  }
}

/* Service Picker */
.service-picker-list {
  max-height: 400px;
  overflow-y: auto;
}

.service-picker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #ecf0f1;
  cursor: pointer;
  transition: background 0.2s;
}

.service-picker-item:hover {
  background: #f8f9fa;
}

.service-picker-item:last-child {
  border-bottom: none;
}

/* Improved Service Picker */
.service-picker-modal {
  max-width: 650px !important;
}

.service-picker-modal h2 {
  margin-bottom: 16px;
  font-size: 22px;
}

.search-box {
  margin-bottom: 16px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dce4ec;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s;
}

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

.service-picker-list {
  max-height: 450px;
  overflow-y: auto;
  margin-bottom: 12px;
}

.service-picker-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #ecf0f1;
  cursor: pointer;
  transition: all 0.2s;
}

.service-picker-item:hover {
  background: #f8f9fa;
  transform: translateX(4px);
}

.service-picker-item:last-child {
  border-bottom: none;
}

.service-info {
  flex: 1;
  margin-right: 16px;
}

.service-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  font-size: 15px;
}

.service-description {
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.4;
}

.service-price {
  font-weight: 700;
  color: #27ae60;
  font-size: 18px;
  white-space: nowrap;
}

.loading-more {
  text-align: center;
  padding: 12px;
  color: #7f8c8d;
  font-size: 13px;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #7f8c8d;
  font-size: 15px;
}

/* Customer Stats */
.customer-stats {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e1e8ed;
  display: flex;
  gap: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-value {
  font-size: 14px;
  color: #2c3e50;
  font-weight: 600;
}

/* Smooth animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.suggestion-item,
.service-picker-item {
  animation: fadeIn 0.2s ease-out;
}

/* Improved Customer Suggestions */
.customer-suggestion-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f5;
  transition: all 0.2s;
  gap: 12px;
}

.customer-suggestion-item:hover {
  background: #f8f9fa;
  transform: translateX(4px);
}

.customer-suggestion-item:last-child {
  border-bottom: none;
}

.customer-suggestion-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.customer-suggestion-info {
  flex: 1;
}

.customer-suggestion-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  font-size: 14px;
}

.customer-suggestion-contact {
  font-size: 12px;
  color: #7f8c8d;
  display: flex;
  align-items: center;
  gap: 6px;
}

.customer-suggestion-contact .dot {
  color: #bdc3c7;
}

.customer-suggestion-arrow {
  color: #bdc3c7;
  font-size: 18px;
  transition: transform 0.2s;
}

.customer-suggestion-item:hover .customer-suggestion-arrow {
  transform: translateX(4px);
  color: #3498db;
}

.customer-suggestion-empty {
  padding: 20px;
  text-align: center;
  color: #7f8c8d;
  font-size: 13px;
}

/* Customer History */
.customer-history {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid #ecf0f1;
}

.history-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
  font-size: 13px;
}

.history-icon {
  font-size: 16px;
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.history-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-stat-label {
  font-size: 10px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.history-stat-value {
  font-size: 13px;
  color: #2c3e50;
  font-weight: 600;
}

.history-appointments {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-appointment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 12px;
}

.history-apt-date {
  font-weight: 600;
  color: #3498db;
  min-width: 50px;
}

.history-apt-services {
  flex: 1;
  color: #2c3e50;
}

.history-apt-total {
  font-weight: 600;
  color: #27ae60;
}

/* Service Dropdown with Checkboxes */
.services-selector {
  position: relative;
  margin-bottom: 16px;
}

.services-selector input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #dce4ec;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.services-selector input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.service-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #dce4ec;
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 350px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
}

.service-dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f5;
  transition: all 0.2s;
  gap: 12px;
}

.service-dropdown-item:hover {
  background: #f8f9fa;
}

.service-dropdown-item.selected {
  background: #e8f5e9;
}

.service-dropdown-item:last-child {
  border-bottom: none;
}

.service-dropdown-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.service-dropdown-info {
  flex: 1;
}

.service-dropdown-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
  font-size: 14px;
}

.service-dropdown-desc {
  font-size: 12px;
  color: #7f8c8d;
  line-height: 1.3;
}

.service-dropdown-price {
  font-weight: 600;
  color: #27ae60;
  font-size: 15px;
  white-space: nowrap;
}

.dropdown-empty {
  padding: 20px;
  text-align: center;
  color: #7f8c8d;
  font-size: 13px;
}

/* Selected Services */
.selected-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #e8f5e9;
  border-radius: 8px;
  border: 1px solid #c8e6c9;
}

.service-item-info {
  flex: 1;
}

.service-item-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
  font-size: 14px;
}

.service-item-price {
  color: #27ae60;
  font-weight: 600;
  font-size: 13px;
}

.service-item .btn-icon {
  color: #e74c3c;
  font-size: 16px;
  font-weight: bold;
}

/* Scrollbar styling */
.service-dropdown::-webkit-scrollbar,
.suggestions-dropdown::-webkit-scrollbar {
  width: 8px;
}

.service-dropdown::-webkit-scrollbar-track,
.suggestions-dropdown::-webkit-scrollbar-track {
  background: #f1f3f5;
}

.service-dropdown::-webkit-scrollbar-thumb,
.suggestions-dropdown::-webkit-scrollbar-thumb {
  background: #bdc3c7;
  border-radius: 4px;
}

.service-dropdown::-webkit-scrollbar-thumb:hover,
.suggestions-dropdown::-webkit-scrollbar-thumb:hover {
  background: #95a5a6;
}

/* Improved Customer History Design */
.history-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
}

.badge-icon {
  font-size: 18px;
}

.history-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.history-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e8ed;
}

.stat-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 10px;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 14px;
  color: #2c3e50;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.last-appointment {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e1e8ed;
}

.last-apt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 13px;
}

.btn-see-all {
  background: #3498db;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-see-all:hover {
  background: #2980b9;
}

.last-apt-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.last-apt-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  display: inline-block;
  padding: 4px 10px;
  background: white;
  border: 1px solid #dce4ec;
  border-radius: 12px;
  font-size: 12px;
  color: #2c3e50;
  font-weight: 500;
}

.last-apt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #e1e8ed;
}

.last-apt-staff {
  font-size: 12px;
  color: #7f8c8d;
}

.last-apt-total {
  font-size: 15px;
  font-weight: 700;
  color: #27ae60;
}

/* Appointment History Modal */
.appointments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
}

.appointment-history-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e1e8ed;
}

.apt-history-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  border: 2px solid #3498db;
}

.apt-date-day {
  font-size: 24px;
  font-weight: 700;
  color: #3498db;
  line-height: 1;
}

.apt-date-month {
  font-size: 11px;
  color: #7f8c8d;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.apt-date-year {
  font-size: 10px;
  color: #95a5a6;
  margin-top: 2px;
}

.apt-history-details {
  flex: 1;
  min-width: 0;
}

.apt-history-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.apt-history-staff {
  font-size: 12px;
  color: #7f8c8d;
}

.apt-history-total {
  font-size: 18px;
  font-weight: 700;
  color: #27ae60;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .history-stats-grid {
    grid-template-columns: 1fr;
  }

  .appointment-history-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .apt-history-total {
    align-self: flex-end;
  }
}

/* Password Authentication Screen */
.password-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.password-card {
  background: white;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUp 0.4s ease-out;
}

.password-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.password-card h1 {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 8px;
  font-weight: 700;
}

.password-subtitle {
  font-size: 15px;
  color: #7f8c8d;
  margin-bottom: 32px;
}

.password-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.password-input-group input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid #dce4ec;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 600;
}

.password-input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-password {
  padding: 14px 28px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-password:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-password:active {
  transform: translateY(0);
}

.password-error {
  background: #fee;
  color: #e74c3c;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #fcc;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

@media (max-width: 480px) {
  .password-card {
    padding: 36px 24px;
  }

  .password-card h1 {
    font-size: 24px;
  }

  .password-input-group {
    flex-direction: column;
  }

  .btn-password {
    width: 100%;
  }
}
