/* Custom styles for CampSimcha Events */

/* Event status badges */
.badge.bg-success {
    background-color: var(--bs-success) !important;
}

.badge.bg-danger {
    background-color: var(--bs-danger) !important;
}

.badge.bg-warning {
    background-color: var(--bs-warning) !important;
}

.badge.bg-info {
    background-color: var(--bs-info) !important;
}

/* Calendar styles */
.fc-event {
    border-radius: 3px;
    padding: 2px;
}

.fc-event-title {
    font-weight: 500;
}

.fc-event-time {
    font-size: 0.9em;
}

/* Custom hover effect for cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Custom breadcrumb styling */
.breadcrumb {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

/* Custom table styling */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* Make modal backdrops darker */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Navbar adjustments */
.navbar-brand {
    font-weight: 600;
}

/* Footer styling */
footer {
    margin-top: auto;
}

/* Better form focus styling */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Page header section */
.row.mb-4 h1 {
    font-weight: 600;
}

.row.mb-4 .lead {
    color: var(--bs-secondary);
}

/* Button custom hover states */
.btn:hover {
    transform: translateY(-1px);
}

/* Card headers */
.card-header {
    font-weight: 500;
}

/* Table responsive adjustments */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Custom alert styling */
.alert {
    border-left-width: 4px;
}

/* Status text colors */
.text-cancelled {
    color: var(--bs-danger);
    text-decoration: line-through;
}

/* Slots table highlight */
#slotsTable tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
    cursor: pointer;
}

/* Dashboard stats cards */
.display-4 {
    font-weight: 700;
    color: var(--bs-primary);
}

/* Improve modal appearance */
.modal-content {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

/* Event tabs */
.nav-tabs .nav-link {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    font-weight: 500;
}

/* Button group spacing */
.btn-group .btn:not(:last-child) {
    margin-right: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/* Custom minimal modal styles */
.custom-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.custom-modal[style*="display: block"], .custom-modal[style*="display:block"] {
  display: flex !important;
  pointer-events: auto;
}
.custom-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}
.custom-modal-content {
  background: #222;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.3);
  min-width: 320px;
  max-width: 95vw;
  min-height: 100px;
  z-index: 2;
  position: relative;
  padding: 0;
  animation: customModalFadeIn 0.2s;
}
@keyframes customModalFadeIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.custom-modal-header, .custom-modal-footer {
  padding: 1rem;
  border-bottom: 1px solid #444;
}
.custom-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #444;
}
.custom-modal-body {
  padding: 1rem;
}
.custom-modal-footer {
  border-top: 1px solid #444;
  border-bottom: none;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.custom-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.5rem;
}
.custom-modal-close:focus {
  outline: 2px solid #0d6efd;
}

body {
  overflow-y: scroll !important;
}

body.modal-open {
  padding-right: 0 !important;
}

html {
  overflow-y: scroll;
}

.btn {
  border: 1px solid transparent;
}
