#tradedayradar-calendar {
  max-width: 100%;
  font-family: Arial, sans-serif;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.calendar-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.calendar-tabs::-webkit-scrollbar {
  display: none;
}

.tab-button {
  padding: 12px 16px;
  border: none;
  background-color: #f1f1f1;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s;
  white-space: nowrap;
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 2px;
}

.tab-button.active {
  background-color: #007bff;
  color: white;
}

.calendar-filters {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  flex: 1;
  min-width: 120px;
}

.filter-button {
  padding: 8px 16px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.refresh-button {
  padding: 8px 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.events-summary {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.summary-item {
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.calendar-content {
  flex: 1;
  overflow: auto;
  margin-bottom: 20px;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.calendar-table th, 
.calendar-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.calendar-table th {
  background-color: #f8f9fa;
  font-weight: bold;
}

.calendar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 900px;
  border-radius: 5px;
  max-height: 80vh;
  overflow: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.modal-close {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 15px;
}

.notify-btn.active {
  color: #28a745;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #6c757d;
}

.error {
  color: #dc3545;
  text-align: center;
}

.no-data {
  padding: 20px;
  text-align: center;
  color: #666;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  #tradedayradar-calendar {
    padding: 10px;
    height: auto;
  }

  .calendar-tabs {
    flex-direction: row;
    flex-wrap: nowrap;
    padding-bottom: 5px;
  }
  
  .tab-button {
    min-width: 120px;
    margin-bottom: 0;
    margin-right: 5px;
  }
  
  .filter-group {
    flex-direction: column;
    width: 100%;
  }
  
  .filter-input, .filter-button {
    width: 100%;
  }
  
  .events-summary {
    flex-direction: column;
    gap: 8px;
  }
  
  .summary-item {
    width: 100%;
  }
  
  /* Mobile cards styles */
  .calendar-table {
    display: none;
  }
  
  .calendar-table-mobile {
    display: block;
  }
  
  .table-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }
  
  .card-label {
    font-weight: bold;
    color: #555;
    width: 100%;
    margin-bottom: 2px;
    font-size: 0.9em;
  }
  
  .card-value {
    width: 100%;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px auto;
  }
}