/* ============================================
   SUPPORT PAGE STYLES
   ============================================ */

.support-content {
  width: 100%;
}

.support-section {
  min-height: 400px;
}

/* Create Ticket Button */
.create-ticket-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid #E91E63;
  border-radius: 20px;
  color: #E91E63;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.create-ticket-btn:hover {
  background: #E91E63;
  color: white;
}

/* Empty State */
.support-section:has(.support-empty-state) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.support-empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.support-empty-state p {
  font-size: 14px;
  color: #666;
}

/* Ticket Form */
.ticket-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.ticket-form-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border: 2px solid #E91E63;
  border-radius: 20px;
  color: #E91E63;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #E91E63;
  color: white;
}

.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  color: #666;
}

.select-trigger:hover {
  border-color: #E91E63;
}

.custom-select.open .select-trigger {
  border-color: #E91E63;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select.open .select-trigger i {
  transform: rotate(180deg);
  color: #E91E63;
}

.select-trigger i {
  font-size: 12px;
  color: #999;
  transition: all 0.2s ease;
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #E91E63;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-select.open .select-options {
  max-height: 300px;
  overflow-y: auto;
}

.select-option {
  padding: 12px 16px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-option:hover {
  background: rgba(233, 30, 99, 0.06);
  color: #E91E63;
}

.select-option:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Textarea */
.form-group textarea {
  padding: 12px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  transition: all 0.2s ease;
}

.form-group textarea:focus {
  outline: none;
  border-color: #E91E63;
}

.form-group textarea::placeholder {
  color: #999;
}

/* Submit Button */
.submit-ticket-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-ticket-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
}

/* Ticket List */
.tickets-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.ticket-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
}

.ticket-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
}

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

.ticket-card-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.ticket-card-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.ticket-card-actions {
  display: flex;
  gap: 12px;
}

.ticket-action-btn {
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.customer-reply-btn {
  background: #FFA726;
  color: white;
  border: 2px solid #FFA726;
}

.customer-reply-btn:hover {
  background: #FB8C00;
  border-color: #FB8C00;
}

.mark-read-btn {
  background: white;
  color: #E91E63;
  border: 2px solid white;
}

.mark-read-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

/* Ticket Detail */
.ticket-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e9ed;
}

.ticket-detail-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.back-btn-outline {
  padding: 8px 20px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn-outline:hover {
  border-color: #E91E63;
  color: #E91E63;
}

/* Chat Messages */
.ticket-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  min-height: 200px;
}

.chat-message {
  max-width: 70%;
  padding: 16px 20px;
  border-radius: 16px;
  background: #f8f9fa;
}

.admin-message {
  align-self: flex-end;
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.customer-message {
  align-self: flex-start;
  background: #f8f9fa;
  color: #333;
  border-bottom-left-radius: 4px;
}

.message-content strong {
  display: block;
  font-size: 11px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.message-content p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* Reply Form */
.ticket-reply-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #e8e9ed;
}

.ticket-reply-form textarea {
  padding: 12px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  transition: all 0.2s ease;
}

.ticket-reply-form textarea:focus {
  outline: none;
  border-color: #E91E63;
}

.ticket-reply-form textarea::placeholder {
  color: #999;
}

.reply-btn {
  align-self: flex-start;
  padding: 10px 32px;
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  border: none;
  border-radius: 20px;
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
  .ticket-card {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .ticket-card-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .ticket-action-btn {
    flex: 1;
  }

  .ticket-form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .ticket-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .chat-message {
    max-width: 85%;
  }
}
