/* Custom styles for Gencon Event Tracker */

/* Theme-specific styles */

.container {

}

body.dark {
  .fc-event.fc-list-event .fc-event-title i {
    color: #FFFFFF;
  }
}

body.light {
  .fc-event.fc-list-event .fc-event-title i {
    color: #727272;
  }
}

.gencon-header {
  background: linear-gradient(90deg, #1a237e 60%, #3949ab 100%);
  padding: 24px 32px 20px 32px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 4px 18px 0 rgba(30, 30, 60, 0.18);
  position: relative;
}

.event-type-toggle .toggle-btn {
    cursor: pointer;
    padding: 0.5em 1.5em;
    font-size: 1.2em;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: #232946;
    transition: background 0.2s, color 0.2s;
    margin: 0 1em;
    border-bottom: 3px solid transparent;
}

body.dark .event-type-toggle .toggle-btn {
    color: #f3f6fd;
}

.event-type-toggle .toggle-btn.active,
.event-type-toggle label.active {
    background: #fff;
    color: #1a237e;
    border-bottom: 3px solid #ffc107;
    font-weight: bold;
    z-index: 2;
}

body.dark .event-type-toggle .toggle-btn.active,
body.dark .event-type-toggle label.active {
    background: #232946 !important;
    color: #ffc107 !important;
    border-bottom: 3px solid #ffc107;
    font-weight: bold;
}
body.light .event-type-toggle .toggle-btn.active,
body.light .event-type-toggle label.active {
    background: #fff !important;
    color: #1a237e !important;
    border-bottom: 3px solid #ffc107;
    font-weight: bold;
}

.gencon-header .nav-tabs .nav-link {
  color: #fff;
  background: transparent;
  border: none;
}

.gencon-header .nav-tabs .nav-link.active {
  background: #ffb300 !important;
  color: #232946 !important;
  border-radius: 6px 6px 6px 6px;
  font-weight: bold;
  box-shadow: 0 2px 8px 0 rgba(255,179,0,0.12);
}

.gencon-header .nav-tabs {
  background: transparent;
  border-bottom: none;
}

body.light {
  min-height: 100vh;
  background: linear-gradient(135deg, #6f7b9a 0%, #c5def8 100%);
  color: #232946;
  background-attachment: fixed;
}

/* Feature info boxes default to hidden */
#events-features-info {
    display: none;
}

/* Calendar Theming */
body.dark #calendar {
  background-color: #232946;
}
body.light .calendar-container {
    background: #fff;
    color: #232946;
    border: 1px solid #c5def8;
}
body.light .calendar-header {
    background: #e3e9fa;
    color: #1a237e;
}
body.light .calendar-day {
    background: #f7faff;
    color: #232946;
}
body.light .calendar-event {
    background: #ffb300;
    color: #232946;
}

body.dark .calendar-container {
    background: #232946;
    color: #f3f6fd;
    border: 1px solid #394867;
}
body.dark .calendar-header {
    background: #181c2a;
    color: #ffc107;
}
/* Calendar day/group header (e.g., Thursday) */
body.dark .calendar-day-header,
body.dark .fc-col-header-cell,
body.dark .calendar-list-header {
    background: #232946 !important;
    color: #ffc107 !important;
    border-bottom: 1px solid #394867 !important;
}
/* Calendar event row/card */
body.dark .calendar-day,
body.dark .calendar-event,
body.dark .fc-list-event,
body.dark .fc-daygrid-event {
    background: #232946 !important;
    color: #f3f6fd !important;
    border-color: #394867 !important;
}
/* Calendar time/text */
body.dark .calendar-time,
body.dark .fc-list-event-time {
    color: #bfc8e2 !important;
}
/* Calendar navigation buttons */
body.dark .calendar-nav-btn,
body.dark .fc-button {
    background: #394867 !important;
    color: #ffc107 !important;
    border: none !important;
}
body.dark .calendar-nav-btn.active,
body.dark .fc-button-active {
    background: #ffc107 !important;
    color: #232946 !important;
}
/* Optional: rounded corners for cards */
body.dark .calendar-day,
body.dark .calendar-event,
body.dark .fc-list-event,
body.dark .fc-daygrid-event {
    border-radius: 8px !important;
}

}

body.dark {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e375a 0%, #4b5a90 100%);
  color: #f3f6fd;
  background-attachment: fixed;
}

/* Override Bootstrap's default background for dark theme */
body.dark .bg-light {
  background-color: #232946 !important;
}

body.dark .bg-white {
  background-color: #232946 !important;
}

body.dark .text-dark {
  color: #f3f6fd !important;
}

body.dark .card,
body.dark .jumbotron,
body.dark .modal-content {
  background: #232946 !important;
  color: #f3f6fd !important;
  border-color: #394867 !important;
}

/* Fix card styling in dark mode */
body.dark .card-body {
  background-color: #232946 !important;
  color: #f3f6fd !important;
}

body.dark .card-header {
  background-color: #465178 !important;
  color: #f3f6fd !important;
  border-bottom: 1px solid #394867 !important;
}

/* Fix Quick Start and About cards in dark mode */
body.dark .row .card {
  background-color: #232946 !important;
  border-color: #394867 !important;
}

body.dark .row .card-header {
  background-color: #465178 !important;
  color: #ffb300 !important;
}

body.dark .row .card-body {
  background-color: #232946 !important;
  color: #f3f6fd !important;
}

/* Fix jumbotron in dark mode */
body.dark .jumbotron {
  background-color: #232946 !important;
  border: 1px solid #394867 !important;
}

body.dark hr {
  border-color: #8c95a5 !important;
  opacity: 0.5;
}
body.dark .card-header,
body.dark .navbar,
body.dark .dropdown-menu {
  background: #465178 !important;
  color: #f3f6fd !important;
  border-color: #394867 !important;
}

body.light .dropdown-menu {
  background: #fff !important;
  color: #232946 !important;
  border: 1px solid #c5def8 !important;
  box-shadow: 0 2px 12px 0 rgba(30,30,60,0.10);
}
body.light .dropdown-menu .dropdown-item {
  color: #ffffff !important;
  background: transparent !important;
}
body.light .dropdown-menu .dropdown-item:hover,
body.light .dropdown-menu .dropdown-item:focus {
  background: #e3e9fa !important;
  color: #1a237e !important;
}

body.dark .table,
body.dark .table-striped > tbody > tr:nth-of-type(odd),
body.dark .table-hover > tbody > tr:hover {
  background-color: #232946 !important;
  color: #f3f6fd !important;
}
body.dark .table thead,
body.dark .table th {
  background: #181c2a !important;
  color: #e3e9fa !important;
}

body.dark .list-unstyled li {
  color: #e5e9f0 !important;
}

body.dark .list-unstyled b {
  color: #88c0d0 !important;
}

body.dark .lead {
  color: #e5e9f0 !important;
}

body.dark .form-control,
body.dark .form-select {
  
  color: #f3f6fd !important;
  border: 1.5px solid #394867 !important;
}
body.dark .form-control:focus,
body.dark .form-select:focus {
  background: #000 !important;
  color: #f3f6fd !important;
  border-color: #ffb300 !important;
}
body.dark .alert {
  background: #232946 !important;
  color: #ffb300 !important;
  border-color: #ffb300 !important;
}
body.dark .text-muted {
  color: #b0b8c9 !important;
}
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5 {
  color: #ffb300 !important;
}

body.light h1, body.light h2, body.light h3, body.light h4, body.light h5 {
  color: #1a237e !important;
}

body.light .card-header h4,
body.light .card-header h5,
body.light .card-header h6 {
  color: #ffffff !important;
}

body.light .card,
body.light .jumbotron,
body.light .modal-content {
  background: #fff !important;
  color: #232946 !important;
  border-color: #e3e9fa !important;
}
body.light .card-header,
body.light .navbar,
body.light .dropdown-menu {
  background: #1a237e !important;
  color: #fff !important;
  border-color: #e3e9fa !important;
}
body.light .table,
body.light .table-striped > tbody > tr:nth-of-type(odd),
body.light .table-hover > tbody > tr:hover {
  background-color: #f3f6fd !important;
  color: #232946 !important;
}
body.light .table thead,
body.light .table th {
  background: #e3e9fa !important;
  color: #232946 !important;
}
body.light .btn,
body.light .btn-primary,
body.light .btn-secondary,
body.light .btn-info,
body.light .btn-success,
body.light .btn-warning {

  border-color: #1a237e !important;
}
body.light .btn-outline-primary,
body.light .btn-outline-secondary,
body.light .btn-outline-info,
body.light .btn-outline-success,
body.light .btn-outline-warning {
  border-color: #1a237e !important;
}

html, body {
  height: 100%;
}
.d-flex.min-vh-100 {
  min-height: 100vh !important;
}
.footer {
  margin-top: 20px !important;
  flex-shrink: 0;
}
body.light .form-control,
body.light .form-select {
  background: #fff !important;
  color: #232946 !important;
  border: 2px solid #b0b8c9 !important;
}
body.light .form-control:focus,
body.light .form-select:focus {
  background: #f3f6fd !important;
  color: #1a237e !important;
  border-color: #1a237e !important;
}
body.light .alert {
  background: #fff8e1 !important;
  color: #232946 !important;
  border-color: #ffb300 !important;
}
body.light .text-muted {
  color: #b0b8c9 !important;
}
body.light h1, body.light h2, body.light h3, body.light h4, body.light h5 {
  color: #1a237e !important;
}


.card, .navbar, .nav-tabs, .table {
  box-shadow: 0 2px 16px 0 rgba(30, 30, 60, 0.12);
}

/* These styles will be overridden by theme-specific styles */
.card-header {
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

/* Nav tabs - overridden by theme */

.nav-tabs .nav-link {
  color: #232946;
  font-weight: 600;
}

/* Table styles - overridden by theme */

/* Wishlist event styling */
body.light .wishlist-event {
  background-color: #fff8e1 !important;
}

body.light .wishlist-event:hover {
  background-color: #ffecb3 !important;
}
body.light .dropdown-divider {
  border-color: #ffffff !important;
}

body.dark .wishlist-event {
  background-color: #3d3524 !important;
}

body.dark .wishlist-event:hover {
  background-color: #4d4331 !important;
}

/* Button styles - overridden by theme */

h1, h2, h3, h4, h5 {
  font-weight: 800;
}

.jumbotron {
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(30,30,60,0.10);
}

.card {
  /* border-radius: 1.25rem; */
}

/* Card body - overridden by theme */

.form-control, .form-select {
  box-shadow: none;
  transition: border-color 0.2s;
}

/* Add styles for links in dark mode */
body.dark a:not(.btn):not(.nav-link) {
  color: #81a1c1;
}

body.dark a:not(.btn):not(.nav-link):hover {
  color: #88c0d0;
}

/* Fix alert colors for both themes */
body.dark .alert-info {
  background-color: #2e3440 !important;
  color: #88c0d0 !important;
  border-color: #81a1c1 !important;
}

body.dark .alert-success {
  background-color: #2e3440 !important;
  color: #a3be8c !important;
  border-color: #a3be8c !important;
}

body.dark .alert-warning {
  background-color: #2e3440 !important;
  color: #ebcb8b !important;
  border-color: #ebcb8b !important;
}

body.dark .alert-danger {
  background-color: #2e3440 !important;
  color: #bf616a !important;
  border-color: #bf616a !important;
}

/* Fix dropdown menu items in dark mode */
body.dark .dropdown-item {
  color: #e5e9f0 !important;
}

body.dark .dropdown-item:hover, body.dark .dropdown-item:focus {
  background-color: #3b4252 !important;
  color: #eceff4 !important;
}

body.dark .dropdown-divider {
  border-color: #8c95a5 !important;
}

/* Fix modal dialogs */
body.dark .modal-header, body.dark .modal-footer {
  border-color: #8c95a5 !important;
}

/* Fix badge colors */
body.dark .badge {
  filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.25));

}
