/* Darkmode Transition */
html.theme-transitioning * {
    transition: 
        background-color 0.3s ease, 
        color 0.3s ease, 
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        fill 0.3s ease,
        stroke 0.3s ease !important;
}

html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: 
        background-color 0.3s ease, 
        color 0.3s ease, 
        border-color 0.3s ease,
        box-shadow 0.3s ease !important;
}
/* Dark Mode Transition*/

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-center {
    flex: 1;
    text-align: center;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.wrapper {
}

.content-wrapper {
    padding-top: 6rem;
    padding-bottom: 7.5rem;
}

.header {
    width: 100%;
    position: fixed;
}

.footer {
    width: 100%;
    padding: 0.5rem;
    bottom: 0;
    position: fixed;
}

.content {
    padding-left: 2rem;
    padding-right: 2rem;
}

.hidden {
    visibility: hidden;
    display: none;
}

.text-pom {
    color: #c0392b !important;
}

    .text-pom::after {
        content: "\a";
        white-space: pre;
    }

    .text-pom.hidden {
        height: 0px;
        visibility: hidden;
        display: none;
    }

/* Mobile: reduce content padding */
@media (max-width: 576px) {
    .content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mobile: reduce top padding (collapsed navbar is shorter) */
@media (max-width: 767px) {
    .content-wrapper {
        padding-top: 4.5rem;
        padding-bottom: 1rem;
    }
}

/* Mobile: footer becomes relative so it doesn't obscure content */
@media (max-width: 767px) {
    .footer {
        position: relative;
        bottom: auto;
    }
}

/* w-sm-auto utility for form buttons */
@media (min-width: 576px) {
    .w-sm-auto {
        width: auto !important;
    }
}

/* Validation feedback */
.validation-summary-valid { display: none; }

.field-validation-error {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--bs-form-invalid-color, #dc3545);
}

.field-validation-valid { display: none; }

/* ================================
   Page Entrance Fade-In
   ================================ */
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.content {
    animation: pageEnter 0.4s ease both;
}

/* ================================
   Page Heading Accent
   ================================ */
.content h1 {
    border-left: 4px solid var(--bs-primary);
    padding-left: 0.75rem;
}

/* ================================
   Table Visual Enhancements
   ================================ */

/* Subtle card-like shadow around the table area */
.table-responsive {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    border-radius: 0.4rem;
}

[data-bs-theme="dark"] .table-responsive {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Blue header bar with white text */
table.dataTable thead th,
table.dataTable thead td {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: opacity 0.15s ease;
}

table.dataTable thead th:hover {
    opacity: 0.87;
    cursor: pointer;
}

/* DataTables sort carets — keep them visible on the blue header */
table.dataTable thead .sorting::before,
table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
    color: rgba(255, 255, 255, 0.75) !important;
    opacity: 1 !important;
}

/* Row entrance animation — plays on initial load and every redraw */
@keyframes fadeInRow {
    from { opacity: 0; transform: translateX(-5px); }
    to   { opacity: 1; transform: translateX(0); }
}

table.dataTable tbody tr {
    animation: fadeInRow 0.2s ease both;
    transition: background-color 0.15s ease;
}

/* Row hover highlight */
table.dataTable tbody tr:hover td {
    background-color: rgba(var(--bs-primary-rgb), 0.07) !important;
}

/* Expand/collapse chevron cell */
td.details-control {
    cursor: pointer;
    text-align: center;
    transition: color 0.15s ease;
}

td.details-control:hover {
    color: var(--bs-primary);
}

/* Expanded child row fades in */
@keyframes fadeInChild {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

table.dataTable tbody tr.child {
    animation: fadeInChild 0.25s ease both;
}

/* ================================
   Button Micro-interactions
   ================================ */
.btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                background-color 0.15s ease, border-color 0.15s ease,
                color 0.15s ease !important;
}

.btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* ================================
   Navbar Link Hover Underline (desktop only)
   ================================ */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        position: relative;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 0.5rem;
        right: 0.5rem;
        height: 2px;
        background-color: var(--bs-primary);
        border-radius: 1px;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.22s ease;
    }

    .navbar-nav .nav-link:hover::after {
        transform: scaleX(1);
    }
}

/* ================================
   Notification Slide-In
   ================================ */
@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#notification-container .alert {
    animation: slideInDown 0.3s ease both;
}

/* ================================
   ADA-Compliant Notice Text
   ================================ */
/* Replaces text-danger on instructional/notice paragraphs.
   Meets WCAG 2.1 AA 4.5:1 contrast in both light and dark modes. */
.text-notice {
    color: #991b1b !important; /* ~8.3:1 on white */
}

[data-bs-theme="dark"] .text-notice {
    color: #fca5a5 !important; /* ~8.3:1 on #212529 */
}

/* ================================
   Unpublished Event Row
   ================================ */
.unpublished-row {
    opacity: 0.6;
}

.unpublished-row:hover {
    opacity: 0.85;
}

.badge-unpublished {
    font-size: 0.7em;
    vertical-align: middle;
    margin-left: 0.5em;
}