@import url('https://fonts.googleapis.com/css2?family=poppins:wght@300;400;500;600;700&display=swap');

body {
  background-color: black;
  color: white;
  font-family: 'poppins', sans-serif;
  line-height: 1.6;
}

.accp-conferences-container {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  margin: 30px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.accp-conference-block {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 15px 20px;
  background-color: #1a1a1a;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 10px 0;
  box-sizing: border-box;
}

.accp-conference-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  background-color: #222;
}

.accp-item-date {
  font-size: 1.2em;
  font-weight: 600;
  color: #dc3545;
  text-align: center;
  min-width: 70px;
}

.accp-item-content {}

.accp-item-content h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: 600;
  height: auto;
  overflow: visible;
}

.accp-item-content h3 a {
  color: white;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: 'poppins', sans-serif;
  font-size: 20px;
}

.accp-item-content h3 a:hover {
  color: #dc3545;
}

.accp-organizers {
  margin: 5px 0 0;
  font-size: 0.9em;
  color: #bbb;
  font-style: italic;
  padding-bottom: 20px;
}

.accp-location {
  margin: 0;
  font-size: 0.9em;
  color: #888;
  align-self: flex-start;
}

.accp-short-description {
  font-size: 0.9em;
  color: #ccc;
  margin-top: 5px;
  transition: opacity 0.3s ease;
}

.accp-conference-block.active .accp-short-description {
  opacity: 0;
}

.accp-item-type {
  text-align: right;
  min-width: 90px;
}

.accp-conference-type-bubble {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 15px;
  background-color: #dc3545;
  color: white;
  font-size: 0.8em;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}

.accp-item-link {
  text-align: right;
  min-width: 120px;
}

.accp-event-link-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  background-color: #dc3545;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: default !important;
}

.accp-event-link-button:hover {
  background-color: #a71d2a !important;
  transform: none !important;
}

.accp-event-link-button i {
  font-size: 0.8em;
}

.accp-conference-details i {
  color: #dc3545;
  margin-right: 5px;
}

.accp-conference-search-input[type="date"] {
  background: none !important;
  padding: 8px !important;
  border: 1px solid grey !important;
  text-transform: uppercase !important;
  border-radius: 8px !important;
  flex: 1 1 200px;
}

.accp-conference-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 5px 5px 15px rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  margin: 0 auto 20px auto;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

.accp-conference-search-input,
.accp-conference-search-select {
  flex: 1 1 180px;
  padding: 8px;
  margin: 5px;
  border-radius: 8px;
  border: 1px solid grey;
  font-family: 'poppins', sans-serif;
  font-size: 13px;
  color: grey;
  background-color: transparent;
  text-transform: uppercase;
}

.accp-conference-search-select {
  background-color: transparent;
  color: white;
  appearance: none;
  padding-right: 30px;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #888 #333;
}

.accp-conference-search-select::-ms-expand {
  display: none;
}

.accp-conference-search-select option {
  background-color: black;
  color: grey;
}

.accp-conference-search-select::-webkit-scrollbar {
  width: 12px;
}

.accp-conference-search-select::-webkit-scrollbar-track {
  background: #333;
}

.accp-conference-search-select::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 20px;
  border: 3px solid #333;
}

.accp-conference-search-select:after {
  content: '▼';
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: white;
}

.accp-conference-search-button,
.accp-conference-clear-button {
  background-color: transparent;
  color: grey;
  border: 1px solid grey !important;
  padding: 8px;
  border-radius: 8px;
  font-family: 'poppins', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 5px;
  flex: 1 1 auto;
  border: none;
}

.accp-conference-search-button:hover,
.accp-conference-clear-button:hover {
  background-color: #ccc;
}

.accp-pagination {
  text-align: center;
  margin-top: 20px;
  font-family: 'poppins', sans-serif;
}

a.page-numbers {
  border-radius: 25px;
  border: 1px solid #fff;
  font-weight: 500;
  text-transform: uppercase;
  padding: 7px 20px;
  color: black;
  font-size: 0.9231rem;
  background-color: white;
  margin: 0 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a.page-numbers:hover {
  background-color: #ccc;
  color: black;
}

span.page-numbers.current {
  border-radius: 25px;
  border: 1px solid #fff;
  font-weight: 500;
  text-transform: uppercase;
  padding: 7px 20px;
  font-size: 0.9231rem;
  background-color: black;
  color: white;
}

.accp-import-export-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accp-buttons,
.accp-settings {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.accp-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 20px auto;
}

.accp-date-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.accp-date-filter {
  background-color: white;
  color: black;
  border: none;
  border-radius: 25px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'poppins', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.accp-date-filter:hover {
  background-color: #ccc;
}

.accp-date-filter.active {
  background-color: #dc3545;
  color: white;
}

.accp-archive-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accp-archive-button {
  background-color: transparent;
  color: grey;
  border: 2px solid grey;
  border-radius: 25px;
  padding: 8px 16px;
  font-family: 'poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.accp-archive-button:hover {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.accp-archive-button.active {
  background-color: #dc3545;
  color: white;
  border-color: #dc3545;
}

.single-conference .accp-single-conference-details {
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.single-conference .accp-single-conference-details p {
  margin: 10px 0;
  font-size: 1rem;
}

.single-conference .accp-single-conference-details a {
  color: #1e90ff;
  text-decoration: none;
}

.single-conference .accp-single-conference-details a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .accp-conference-block {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 15px;
  }

  .accp-item-date,
  .accp-item-content,
  .accp-item-type,
  .accp-item-link {
    grid-column: 1 / -1;
    text-align: left;
    min-width: auto;
  }

  .accp-item-type,
  .accp-item-link {
    display: flex;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .accp-item-date {
    font-size: 1em;
  }

  .accp-item-content h3 {
    font-size: 1.1em;
  }

  .accp-organizers,
  .accp-location {
    font-size: 0.85em;
  }

  .accp-event-link-button {
    padding: 6px 10px;
    font-size: 0.85em;
  }
}

.accp-item-description {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out,
    opacity 0.15s ease-out,
    visibility 0s 0.3s;
  opacity: 0;
  visibility: hidden;
}

.accp-item-description.active {
  max-height: 1000px;
  padding: 15px 20px;
  margin-top: 15px;
  border-top: 1px solid #333;
  opacity: 1;
  visibility: visible;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out,
    opacity 0.2s ease-in 0.1s;
}


/* Default bubble (fallback style) */
.accp-conference-type-bubble {
  background-color: #dc3545;
  color: white;
}

/* In Person: white background */
.accp-conference-type-bubble.in-person {
  background-color: white;
  color: black;
}

/* Virtual: dark blue background */
.accp-conference-type-bubble.virtual {
  background-color: #0069d9;
  color: white;
}

/* Hybrid: dark purple background */
.accp-conference-type-bubble.hybrid {
  background-color: #6f42c1;
  color: white;
}

/* Apply to all inputs */
input[type="text"],
input[type="hidden"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  font-family: 'poppins', sans-serif;
  font-size: 1rem;
  color: white;
  background-color: #2f2f2f;
  /* Slightly more grey/dark */
  border: 1.5px solid #dc3545;
  /* Red outline */
  border-radius: 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-sizing: border-box;
  outline-offset: 2px;
}

/* Specific styles for date input to handle default text color on iOS */
input[type="date"] {
  color: #999;
  /* Default color for "YY MM DD" */
}

input[type="date"]:valid {
  color: white;
  /* Color when a date is selected */
}

/* Targeting specific parts of the date input for better cross-browser compatibility */
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
  color: #999;
  /* Ensure default date parts are visible */
}

input[type="date"]:focus::-webkit-datetime-edit-text,
input[type="date"]:focus::-webkit-datetime-edit-month-field,
input[type="date"]:focus::-webkit-datetime-edit-day-field,
input[type="date"]:focus::-webkit-datetime-edit-year-field {
  color: white;
  /* Change to white on focus */
}

input[type="date"]::-webkit-input-placeholder {
  color: #999;
  /* For browsers that use this for date input placeholders */
}

input[type="date"]:valid::-webkit-datetime-edit-text,
input[type="date"]:valid::-webkit-datetime-edit-month-field,
input[type="date"]:valid::-webkit-datetime-edit-day-field,
input[type="date"]:valid::-webkit-datetime-edit-year-field {
  color: white;
  /* Ensure selected date parts are white */
}

/* Placeholder color for all inputs */
input::placeholder,
textarea::placeholder {
  color: #999;
  opacity: 1;
}

/* Focus state for all inputs */
input:focus,
textarea:focus,
select:focus {
  border-color: #ff4b5c;
  /* lighter red */
  box-shadow: 0 0 8px 2px rgba(220, 53, 69, 0.5);
  background-color: #3a3a3a;
  /* Slightly lighter grey on focus */
  color: white;
}

/* For hidden inputs, remove all visible styling */
input[type="hidden"] {
  all: unset;
  display: none;
}

/* Search button: bright red */
.accp-conference-search-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Search button hover */
.accp-conference-search-button:hover {
  background-color: #b32a2a;
  /* darker red */
}

/* Clear button: slightly darker red */
.accp-conference-clear-button {
  background-color: #a02727;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Clear button hover */
.accp-conference-clear-button:hover {
  background-color: #7c1c1c;
  /* even darker */
}

.accp-type-filter-button {
  border: none;
  border-radius: 25px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: 'poppins', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.accp-type-filter-button:hover {
  background-color: #777;
}

.accp-type-filter-button.active-filter-button {
  background-color: #dc3545;
  color: white;
}

.date-wrapper {
  position: relative;
}

.date-wrapper input[type="date"] {
  color: white;
  /* selected date color */
}

.date-wrapper input[type="date"]:before {
  content: "Select a date";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  pointer-events: none;
}

.date-wrapper input[type="date"]:valid:before {
  content: "";
  /* hide once a date is chosen */
}
