﻿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%;
}

body {
  margin-bottom: 60px;
}

#passwordModal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    #passwordModal.flex {
        display: flex;
    }

    #passwordModal > div {
        margin: auto;
        transform: translateY(0);
    }

tr.inactive-user {
    color: #6c757d !important; /* muted grey */
    text-decoration: line-through;
    opacity: 0.6;
}

.dropdown-menu {
    border-radius: 0.5rem;
    min-width: 12rem;
}

.dropdown-item.active {
    background-color: var(--bs-primary);
    color: #7a0019 !important;
}
/* Fix for white-on-white dropdown active state */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}
.dropdown-menu .dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1); /* soft blue hover */
    color: var(--bs-primary);
}

/* Ensure active dropdown items are clearly visible */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: #0d6efd !important; /* Bootstrap primary blue */
    color: #fff !important;
}

/* Compact dropdown spacing */
.dropdown-menu {
    padding: 0.25rem 0;
    border-radius: 0.4rem;
}

#usersTable th:last-child,
#usersTable td:last-child {
    text-align: center;
    width: 110px;
}

th.table-sort-asc::after {
    content: " ▲";
    font-size: 0.8em;
}

th.table-sort-desc::after {
    content: " ▼";
    font-size: 0.8em;
}

a.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
    transition: 0.2s ease;
}


.entry-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.entry-row:hover {
    background-color: #f0f0f0 !important; /* Normal hover for all rows */
}

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 16px;
    display: none; /* hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .back-to-top-btn.show {
        display: block;
        opacity: 1;
    }

    .back-to-top-btn:hover {
        background-color: #0a58ca; /* Darken Bootstrap primary */
    }

/* Force modal & backdrop to escape all stacking contexts caused by Tabler layout */
.modal,
.modal-backdrop {
    position: fixed !important;
}
/* --- FIX: Bootstrap Modal blocked by Tabler / dashboard layout --- */

/* Remove unwanted stacking contexts */
.dashboard-sidebar,
.dashboard-content {
    position: static !important;
    z-index: auto !important;
}

/* Force modal OUTSIDE stacking contexts */
.modal,
.modal-backdrop {
    position: fixed !important;
}

/* Put Bootstrap on top */
.modal-backdrop {
    z-index: 2000 !important;
}

.modal {
    z-index: 3000 !important;
}

/* ✅ Quill size class mappings (if your HTML contains ql-size-*) */
.announcement-card .ql-size-small {
    font-size: 0.85em;
}

.announcement-card .ql-size-large {
    font-size: 1.5em;
}

.announcement-card .ql-size-huge {
    font-size: 2.25em;
}

/* Optional: headings inside announcements */
.announcement-card h1 {
    font-size: 2rem;
}

.announcement-card h2 {
    font-size: 1.6rem;
}

.announcement-card h3 {
    font-size: 1.3rem;
}

/* Optional: reduce “novel spacing” */
.announcement-card p:last-child {
    margin-bottom: 0;
}
