/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 */

/* FullCalendar Core CSS */
@import url('https://cdn.jsdelivr.net/npm/@fullcalendar/core@6.1.8/main.min.css');
@import url('https://cdn.jsdelivr.net/npm/@fullcalendar/daygrid@6.1.8/main.min.css');
@import url('https://cdn.jsdelivr.net/npm/@fullcalendar/bootstrap5@6.1.8/main.min.css');

/* Custom styles can go here */

/* Pokemon Theme Calendar Customizations */
.fc-theme-bootstrap5 .fc-scrollgrid {
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}

.fc-theme-bootstrap5 .fc-button-primary {
  background-color: #0084FF !important;
  border-color: #0084FF !important;
}

.fc-theme-bootstrap5 .fc-button-primary:hover {
  background-color: #0066CC !important;
  border-color: #0066CC !important;
}

.fc-theme-bootstrap5 .fc-button-primary:not(:disabled):active,
.fc-theme-bootstrap5 .fc-button-primary:not(:disabled).fc-button-active {
  background-color: #0056B3 !important;
  border-color: #0056B3 !important;
}

/* Custom event styling */
.fc-event-canceled {
  opacity: 0.7;
  text-decoration: line-through;
}

.fc-event-draft {
  opacity: 0.8;
  font-style: italic;
}

.fc-event-special {
  box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Today highlight */
.fc-day-today {
  background-color: rgba(0, 132, 255, 0.08) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .fc-toolbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .fc-toolbar-chunk {
    display: flex;
    justify-content: center;
  }

  .fc-button-group {
    margin: 0 !important;
  }
}

/* Pokemon Theme Colors */
:root {
  --pokemon-electric-blue: #0084FF;
  --pokemon-pikachu-yellow: #FFD700;
  --pokemon-light-blue: rgba(0, 132, 255, 0.1);
  --pokemon-light-yellow: rgba(255, 215, 0, 0.1);
}

/* Custom Pokemon-themed form styling */
.form-label.required::after {
  content: " *";
  color: #dc3545;
}

.text-warning {
  color: var(--pokemon-pikachu-yellow) !important;
}

.border-bottom {
  border-bottom: 2px solid !important;
}

/* Enhanced card styling */
.card {
  border: none;
  border-radius: 12px;
}

.card-header.bg-primary {
  background: linear-gradient(135deg, var(--pokemon-electric-blue) 0%, #0066CC 100%) !important;
  border-radius: 12px 12px 0 0 !important;
}

/* Form section headers */
.text-primary.border-bottom {
  color: var(--pokemon-electric-blue) !important;
  border-bottom-color: var(--pokemon-electric-blue) !important;
}

.text-warning.border-bottom {
  color: #FFA500 !important;
  border-bottom-color: #FFA500 !important;
}

/* Form controls enhancements */
.form-control:focus,
.form-select:focus {
  border-color: var(--pokemon-electric-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 132, 255, 0.25);
}

/* Button enhancements */
.btn-primary {
  background: linear-gradient(135deg, var(--pokemon-electric-blue) 0%, #0066CC 100%);
  border-color: var(--pokemon-electric-blue);
  font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #0066CC 0%, #0056B3 100%);
  border-color: #0066CC;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 132, 255, 0.3);
}

.btn-outline-primary {
  color: var(--pokemon-electric-blue);
  border-color: var(--pokemon-electric-blue);
}

.btn-outline-primary:hover {
  background-color: var(--pokemon-electric-blue);
  border-color: var(--pokemon-electric-blue);
}

/* Alert styling */
.alert-danger {
  background-color: #fff5f5;
  border-color: #fecaca;
  color: #991b1b;
}

/* Icon styling */
.fas {
  color: var(--pokemon-electric-blue);
}

.text-warning .fas {
  color: #FFA500;
}

/* Card styling - no hover effects */

/* Form validation styling */
.form-control.is-invalid {
  border-color: #dc3545;
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Small text enhancements */
.form-text.text-muted {
  color: #6c757d !important;
  font-size: 0.875rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  h5 {
    font-size: 1.1rem;
  }
}

/* Footer Styling */
.pokemon-footer {
  background: linear-gradient(135deg, #212529 0%, #343a40 100%) !important;
  border-top: 3px solid var(--pokemon-electric-blue);
}

.pokemon-footer h5,
.pokemon-footer h6 {
  color: var(--pokemon-pikachu-yellow) !important;
}

.pokemon-footer a:hover {
  color: var(--pokemon-pikachu-yellow) !important;
  transform: translateX(2px);
  transition: all 0.2s ease;
}

.pokemon-footer .fas {
  color: var(--pokemon-electric-blue);
}

.pokemon-footer .text-warning .fas {
  color: var(--pokemon-pikachu-yellow);
}

/* Sticky footer support */
.min-vh-100 {
  min-height: 100vh !important;
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
  .pokemon-footer .col-lg-4 {
    text-align: center;
  }

  .pokemon-footer h6 {
    font-size: 1rem;
  }

  .pokemon-footer .small {
    font-size: 0.8rem !important;
  }
}

/* FullCalendar Styling */
/* Remove link styling from day headers and day numbers */
.fc-col-header-cell a,
.fc-daygrid-day-number {
  color: #212529 !important;
  text-decoration: none !important;
  cursor: default !important;
}

.fc-col-header-cell a:hover,
.fc-daygrid-day-number:hover {
  color: #212529 !important;
  text-decoration: none !important;
}

/* Style day headers to look like regular text */
.fc-col-header-cell {
  font-weight: 600;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

/* Style day numbers to look like regular text */
.fc-daygrid-day-number {
  font-weight: 500;
  padding: 4px 8px;
}

/* Ensure day cells don't have hover effects */
.fc-daygrid-day-frame:hover {
  background-color: transparent;
}

/* Table header icon and text alignment */
.table th {
  white-space: nowrap;
}

.table th i {
  display: inline;
  vertical-align: baseline;
}
