/* Reports Component Styles */
.reports-section {
  padding: 0;
  max-width: 100%;
}

/* Date Picker */
.reports-date-picker {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e5e9;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.date-picker-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.date-picker-label {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
  margin: 0;
}

.date-picker-input {
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
  background: white;
  min-width: 160px;
}

.date-picker-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Summary Cards */
.reports-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.summary-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e5e9;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color, #007bff);
}

.summary-card.reserved::before {
  background: #28a745;
}

.summary-card.awaiting::before {
  background: #ffc107;
}

.summary-card.cancelled::before {
  background: #dc3545;
}

.summary-card.paid::before {
  background: #007bff;
}

.summary-card.guests::before {
  background: #28a745;
}

.summary-card.locked::before {
  background: #ff9800;
}

.summary-card.total::before {
  background: #6f42c1;
}

.summary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.summary-card-title {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.summary-card.reserved .summary-card-icon {
  background: #28a745;
}

.summary-card.awaiting .summary-card-icon {
  background: #ffc107;
}

.summary-card.cancelled .summary-card-icon {
  background: #dc3545;
}

.summary-card.paid .summary-card-icon {
  background: #007bff;
}

.summary-card.guests .summary-card-icon {
  background: #28a745;
}

.summary-card.locked .summary-card-icon {
  background: #ff9800;
}

.summary-card.total .summary-card-icon {
  background: #6f42c1;
}

.summary-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summary-card-count {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.summary-card-amount {
  text-align: right;
}

.summary-card-amount-label {
  font-size: 12px;
  color: #666;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-card-amount-value {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.total-label {
  font-size: 10px;
  font-weight: 300;
  color: #aaa;
  margin-left: 4px;
  opacity: 0.6;
  text-transform: lowercase;
}

.guest-type-text {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

/* Reports Table */
.reports-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e1e5e9;
  overflow: hidden;
}

.reports-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #e1e5e9;
  background: #f8f9fa;
}

.reports-table-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.download-actions {
  display: flex;
  gap: 12px;
}

.download-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-btn-excel {
  background: #10793f;
  color: white;
}

.download-btn-excel:hover {
  background: #0d5d30;
}

.download-btn-csv {
  background: #17a2b8;
  color: white;
}

.download-btn-csv:hover {
  background: #138496;
}

.reports-table-wrapper {
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.reports-table th {
  background: #f8f9fa;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #e1e5e9;
  position: sticky;
  top: 0;
  z-index: 10;
}

.reports-table td {
  padding: 12px;
  border-bottom: 1px solid #e1e5e9;
  vertical-align: top;
}

.reports-table tbody tr:hover {
  background: #f8f9fa;
}

.reports-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Reservation status badges */
.status-badge.reserved {
  background: #d4edda;
  color: #155724;
}

.status-badge.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.status-badge.locked {
  background: #fff3cd;
  color: #856404;
}

.status-badge.awaiting_payment {
  background: #fff3cd;
  color: #856404;
}

/* Payment status badges */
.status-badge.none {
  background: #e9ecef;
  color: #495057;
}

.status-badge.awaiting_payment {
  background: #fff3cd;
  color: #856404;
}

.status-badge.paid {
  background: #d1ecf1;
  color: #0c5460;
}

.status-badge.refunded {
  background: #f8d7da;
  color: #721c24;
}

/* Loading and empty states */
.reports-loading {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.reports-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.reports-empty svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.reports-error {
  background: #f8d7da;
  color: #721c24;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 1200px) {
  .reports-summary {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .reports-header {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .reports-filters {
    padding: 20px;
  }
  
  .date-filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-actions {
    margin-left: 0;
    margin-top: 15px;
  }
  
  .reports-summary {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .reports-table-header {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .download-actions {
    justify-content: center;
  }
  
  .reports-table th,
  .reports-table td {
    padding: 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .summary-card {
    padding: 20px;
  }
  
  .summary-card-count {
    font-size: 28px;
  }
  
  .summary-card-amount-value {
    font-size: 16px;
  }
}

/* Action Buttons */
.action-buttons {
  text-align: center;
  white-space: nowrap;
  padding: 8px;
}

/* Copy Payment Link Button */
.copy-payment-link-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}

.copy-payment-link-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,123,255,0.3);
}

.copy-payment-link-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,123,255,0.3);
}

/* Check-in Button */
.check-in-btn {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
  margin-left: 8px;
}

.check-in-btn:hover {
  background: #1e7e34;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(40,167,69,0.3);
}

.check-in-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(40,167,69,0.3);
}
