/* Frontend User Styles */

/* General Styles */
.ticket-user-dashboard,
.ticket-user-events,
.ticket-user-orders,
.ticket-my-tickets,
.ticket-event-details,
.ticket-order-history {
  padding: 30px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Dashboard Styles */
.dashboard-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.dashboard-header h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 36px;
}

.dashboard-header p {
  color: #666;
  font-size: 18px;
}

/* Stat Cards */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #2271b1, #135e96);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.stat-info h3 {
  margin: 0 0 5px 0;
  font-size: 32px;
  color: #333;
}

.stat-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Dashboard Sections */
.dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.dashboard-section {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.section-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.view-all {
  color: #2271b1;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.view-all:hover {
  text-decoration: underline;
}

/* Upcoming Events List */
.upcoming-events-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: border-color 0.3s;
}

.event-item:hover {
  border-color: #2271b1;
}

.event-date {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #2271b1;
}

.date-day {
  font-size: 24px;
  font-weight: bold;
  color: #2271b1;
  line-height: 1;
}

.date-month {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-top: 2px;
}

.event-details {
  flex: 1;
}

.event-details h4 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 16px;
}

.event-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #666;
}

.view-event {
  flex-shrink: 0;
  color: #2271b1;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.view-event:hover {
  text-decoration: underline;
}

/* Recent Orders List */
.recent-orders-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.order-item {
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.order-code {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.order-code strong {
  color: #2271b1;
  font-size: 16px;
}

.order-date {
  color: #666;
  font-size: 13px;
}

.order-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-name {
  margin: 0 0 5px 0;
  color: #333;
  font-weight: 600;
}

.order-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #666;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* Dashboard Actions */
.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.action-button {
  background: white;
  border: 2px solid #2271b1;
  border-radius: 10px;
  padding: 25px;
  text-decoration: none;
  color: #2271b1;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.action-button:hover {
  background: #2271b1;
  color: white;
  transform: translateY(-3px);
}

.action-button .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
}

.action-button span {
  font-size: 16px;
  font-weight: 600;
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.event-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.event-image {
  height: 200px;
  background: linear-gradient(45deg, #2271b1, #135e96);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
}

.event-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.event-status.inactive {
  background: #ffc107;
  color: #856404;
}

.event-status.cancelled {
  background: #dc3545;
  color: white;
}

.event-content {
  padding: 25px;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.event-title {
  margin: 0;
  color: #333;
  font-size: 20px;
  flex: 1;
}

.event-price {
  font-size: 24px;
  font-weight: bold;
  color: #2271b1;
  margin-left: 15px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

.meta-item .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  color: #2271b1;
}

.event-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.event-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.stat-value {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.stat-value.available {
  color: #28a745;
}

.stat-value.sold-out {
  color: #dc3545;
}

.event-actions {
  display: flex;
  gap: 10px;
}

.event-actions .button {
  flex: 1;
  padding: 12px;
  text-align: center;
}

.button-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: white;
}

.button-primary:hover {
  background: #135e96;
  border-color: #135e96;
  color: white;
}

.button-secondary {
  background: #f8f9fa;
  border-color: #ddd;
  color: #333;
}

.button-secondary:hover {
  background: #e9ecef;
  border-color: #ccc;
}

.button-disabled {
  background: #e9ecef;
  border-color: #dee2e6;
  color: #6c757d;
  cursor: not-allowed;
}

/* Event Details Page */
.event-breadcrumb {
  margin-bottom: 30px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.event-breadcrumb a {
  color: #2271b1;
  text-decoration: none;
}

.event-breadcrumb a:hover {
  text-decoration: underline;
}

.event-breadcrumb span {
  color: #666;
}

.event-main {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.event-header h1 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 36px;
}

.event-header-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-label {
  font-weight: 600;
  color: #333;
  min-width: 60px;
}

.meta-value {
  color: #666;
}

.event-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .event-content-wrapper {
    grid-template-columns: 1fr;
  }
}

.event-content .section {
  margin-bottom: 40px;
}

.event-content h2 {
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.event-description {
  line-height: 1.8;
  color: #555;
}

/* FAQ Styles */
.event-faqs {
  margin-top: 20px;
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  margin: 0;
  padding: 20px;
  background: #f8f9fa;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:after {
  content: "+";
  font-size: 24px;
  color: #2271b1;
}

.faq-question.active:after {
  content: "-";
}

.faq-answer {
  padding: 20px;
  display: none;
  background: white;
}

.faq-answer.show {
  display: block;
}

/* Ticket Box */
.ticket-box {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 20px;
}

.ticket-price {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.price-label {
  display: block;
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.price-amount {
  font-size: 48px;
  font-weight: bold;
  color: #2271b1;
}

.participate-form {
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: #f8f9fa;
}

.quantity-selector input {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
}

.available-tickets {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.total-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 20px;
  font-weight: bold;
}

.total-amount span:first-child {
  color: #666;
}

.total-amount span:last-child {
  color: #2271b1;
  font-size: 24px;
}

.button-large {
  width: 100%;
  padding: 16px;
  font-size: 18px;
}

.login-required {
  text-align: center;
  padding: 30px;
}

.login-required p {
  margin-bottom: 15px;
  color: #666;
}

.register-link {
  margin-top: 15px;
  font-size: 14px;
}

.register-link a {
  color: #2271b1;
}

.sold-out {
  text-align: center;
  padding: 40px 20px;
}

.sold-out-message {
  font-size: 24px;
  color: #dc3545;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Event Organizer & Share */
.event-organizer,
.event-share {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.event-organizer h3,
.event-share h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.organizer-info {
  color: #666;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.share-btn.facebook {
  background: #3b5998;
}

.share-btn.twitter {
  background: #1da1f2;
}

.share-btn.linkedin {
  background: #0077b5;
}

.share-btn.email {
  background: #666;
}

/* Orders Table */
.orders-table-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin: 30px 0;
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #2271b1;
}

.orders-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.orders-table tr:hover {
  background: #f9f9f9;
}

.orders-table .loading {
  text-align: center;
  padding: 40px;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2271b1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.no-orders {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Order Details Modal */
.order-details-view {
  max-width: 600px;
}

.order-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.summary-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.summary-item .label {
  font-weight: 600;
  color: #333;
}

.summary-item .value {
  color: #666;
}

.order-sections {
  margin-bottom: 30px;
}

.order-sections .section {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.order-sections .section:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.order-sections h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.section-content {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item .label {
  font-weight: 600;
  color: #333;
  min-width: 120px;
}

.info-item .value {
  color: #666;
  text-align: right;
  flex: 1;
}

.order-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-stats,
  .dashboard-content,
  .dashboard-actions,
  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-header-meta {
    grid-template-columns: 1fr;
  }

  .orders-table {
    font-size: 14px;
  }

  .orders-table th,
  .orders-table td {
    padding: 10px 5px;
  }
}
