/**
 * Dashboard and Trip Detail Styles for WenWay Travel Plugin
 */

/* Dashboard Wrapper */
.awin-dashboard-wrapper {
  min-height: 100vh;
  background: #f5f5f5;
}

/* Sidebar Styles */
.awin-dashboard-sidebar {
  background: #fff;
  min-height: 100vh;
  padding: 0;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.awin-dashboard-sidebar .sidebar-header {
  padding: 20px;
  background: #2271b1;
  color: #fff;
  border-bottom: 1px solid #1e5d8f;
}

.awin-dashboard-sidebar .sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.awin-dashboard-sidebar .sidebar-nav {
  padding: 20px 0;
}

.awin-dashboard-sidebar .nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.awin-dashboard-sidebar .nav-link {
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s;
}

.awin-dashboard-sidebar .nav-link:hover {
  background: #f8f9fa;
  color: #2271b1;
}

.awin-dashboard-sidebar .nav-link.active {
  background: #e7f3ff;
  color: #2271b1;
  border-left: 3px solid #2271b1;
}

.awin-dashboard-sidebar .nav-link i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  font-size: 18px;
}

/* Bootstrap Icons sizing */
.awin-dashboard-sidebar .nav-link .bi {
  font-size: 18px;
}

/* Dashboard Content */
.awin-dashboard-content {
  padding: 30px;
}

.awin-dashboard-header {
  margin-bottom: 30px;
}

.awin-dashboard-header h1 {
  font-size: 28px;
  margin: 0 0 10px 0;
}

.awin-dashboard-header .user-info {
  color: #666;
  font-size: 14px;
}

.awin-dashboard-main {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Timeline Styles (for Trip Detail Page) */
.timeline-container {
  margin-top: 20px;
}

.timeline-day-group {
  margin-bottom: 40px;
}

.timeline-day-header {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #2271b1;
}

.timeline-day-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #2271b1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.timeline-day-label {
  background: #2271b1;
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

.timeline-day-date {
  color: #666;
  font-weight: 400;
}

.timeline-day-items {
  padding-left: 40px;
  position: relative;
}

.timeline-day-items::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e0e0e0;
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.timeline-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-item-icon i,
.timeline-item-icon .bi {
  font-size: 18px;
}

.timeline-item-content-wrapper {
  flex: 1;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.timeline-item-content-wrapper:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-item-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
  gap: 15px;
}

.timeline-item-title-section {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-item-type {
  display: inline-block;
  padding: 3px 8px;
  color: #fff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.timeline-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.timeline-item-time {
  font-weight: 500;
  color: #666;
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.timeline-item-time i,
.timeline-item-time .bi {
  font-size: 14px;
  color: #999;
}

.timeline-item-duration {
  color: #999;
  font-weight: 400;
  margin-left: 5px;
}

.timeline-item-timezone {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
}

.timeline-item-timezone i {
  font-size: 12px;
  margin-right: 3px;
}

/* Autocomplete suggestions */
#location_suggestions,
#start_timezone_suggestions,
#end_timezone_suggestions {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 2px;
  position: absolute;
  z-index: 1050;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
}

#location_suggestions .list-group-item,
#start_timezone_suggestions .list-group-item,
#end_timezone_suggestions .list-group-item {
  cursor: pointer;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 15px;
}

#location_suggestions .list-group-item:hover,
#start_timezone_suggestions .list-group-item:hover,
#end_timezone_suggestions .list-group-item:hover {
  background-color: #f8f9fa;
}

#location_suggestions .list-group-item:last-child,
#start_timezone_suggestions .list-group-item:last-child,
#end_timezone_suggestions .list-group-item:last-child {
  border-bottom: none;
}

.timeline-item-content {
  margin-top: 10px;
}

.timeline-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}

.timeline-item-meta i,
.timeline-item-meta .bi {
  font-size: 16px;
  color: #999;
}

.timeline-item-description {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 8px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .awin-dashboard-sidebar {
    min-height: auto;
  }

  .awin-dashboard-content {
    padding: 20px;
  }
}
