:root {
    --primary-orange: #E87722;
    --dark-bg: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-light: #f5f5f5;
    --text-muted: #aaaaaa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-container .logo {
    height: 60px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.date-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.header-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
}

.btn-icon {
    background-color: #0077b5;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: #ff8c33;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 119, 34, 0.4);
}

.dashboard {
    flex: 1;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: start;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    border-top: 4px solid var(--primary-orange);
    box-shadow: 0 12px 32px rgba(232, 119, 34, 0.15);
}

.card-header h2 {
    color: var(--primary-orange);
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.card-header .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.4;
}

.dropdown-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Scroll handling for long dropdowns */
.card:hover .dropdown-content {
    max-height: 600px;
    opacity: 1;
    margin-top: 20px;
    overflow-y: auto;
    padding-right: 8px;
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}
.dropdown-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.dropdown-content::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

.dropdown-content a {
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: var(--primary-orange);
    color: var(--dark-bg);
    transform: translateX(5px);
}

.fade-in {
    opacity: 0;
    animation: fadeInSlideUp 0.6s ease forwards;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== NEW STYLES: Header, Footer, QR, Sub-dropdowns ====== */

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s;
}

.home-btn:hover {
    background: rgba(232, 119, 34, 0.2);
    transform: scale(1.05);
}

.home-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.dropdown-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px;
    margin: 4px 0;
    border-left: 3px solid var(--primary-orange);
}

.dropdown-group-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 8px 8px 8px;
    letter-spacing: 0.5px;
}

.dropdown-group a {
    background: transparent !important;
    padding: 8px 12px;
    font-size: 0.95rem;
}

.dropdown-group a:hover {
    background: rgba(232, 119, 34, 0.15) !important;
    color: var(--primary-orange) !important;
}

.qr-container {
    position: fixed;
    bottom: 80px;
    left: 40px;
    background: var(--card-bg);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255,255,255,0.1);
}

.qr-container p {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-container img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
}

.site-footer {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 40px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

/* ====== SOPS LAYOUT ====== */
.sops-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 20px 40px;
  gap: 40px;
}

.sops-sidebar {
  width: 250px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sops-sidebar h2 {
  color: var(--primary-orange);
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.sops-link {
  background: transparent;
  border: none;
  color: var(--text-light);
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.sops-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sops-link.active {
  background: var(--primary-orange);
  color: var(--dark-bg);
  font-weight: 700;
}

.sops-content {
  flex: 1;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.sops-content h1 {
  color: var(--primary-orange);
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.sops-content .subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sops-content .placeholder {
  line-height: 1.6;
  font-size: 1.05rem;
}

.sops-content ul, .sops-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.sops-content li {
  margin-bottom: 8px;
}

.sops-content a {
  color: #4da6ff;
  text-decoration: none;
}

.sops-content a:hover {
  text-decoration: underline;
}


/* ====== ABOUT ME FOOTER DROPDOWN ====== */
.footer-dropdown {
    position: relative;
    display: inline-block;
}

.footer-dropdown-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    padding: 10px 0;
}

.footer-dropdown:hover .footer-dropdown-title {
    color: var(--primary-orange);
}

.footer-dropdown-content {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: var(--card-bg);
    min-width: 180px;
    box-shadow: 0px -8px 24px 0px rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 8px 0;
    margin-bottom: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}

.footer-dropdown:hover .footer-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-dropdown-content a {
    color: var(--text-light) !important;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: background 0.2s, color 0.2s !important;
}

.footer-dropdown-content a:hover {
    background-color: rgba(232, 119, 34, 0.15);
    color: var(--primary-orange) !important;
}

/* Invisible bridge so the mouse doesn't lose hover */
.footer-dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 15px;
}

/* ====== COMMUNITY AGREEMENTS LANDING PAGE ====== */
.ca-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}
.ca-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: 100%;
}
.ca-item {
    flex: 1;
    max-width: 200px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.ca-item:hover {
    transform: scale(1.08);
    filter: brightness(1.15);
}
.ca-item img {
    width: 100%;
    height: auto;
    display: block;
}
.ca-title-wrapper {
    flex: 1;
    max-width: 260px; /* About half size */
    display: flex;
    justify-content: center;
    align-items: center;
}
.ca-title-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}
.ca-display-box {
    margin-top: 30px;
    padding: 24px 32px;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    border-left: 4px solid var(--primary-orange);
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    width: 100%;
    max-width: 800px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}
#ca-text-display {
    margin: 0;
    transition: opacity 0.2s ease;
}

/* ====== BACKGROUND WATERMARK ====== */
.bg-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background-image: url('../assets/nest_logo_dark_background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

/* ====== FLOATING HELP CARD ====== */
.help-card {
    position: fixed;
    bottom: 100px;
    right: 40px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    width: 240px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(232, 119, 34, 0.15);
    border-color: rgba(232, 119, 34, 0.5);
}

.help-card .card-header h2 {
    color: var(--primary-orange);
    font-size: 1.3rem;
    margin-bottom: 4px;
    font-weight: 800;
    text-transform: uppercase;
}

.help-card .subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.help-card .dropdown-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.help-card:hover .dropdown-content {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
}

.help-card .dropdown-content a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.help-card .dropdown-content a:hover {
    background: var(--primary-orange);
    color: var(--dark-bg);
}

/* ====== NESTED DROPDOWN (Vertical Accordion) ====== */
.nested-dropdown {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin: 4px 0;
    border-left: 3px solid var(--primary-orange);
    overflow: hidden;
}

.nested-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: default;
    transition: background 0.2s, color 0.2s;
}

.nested-dropdown:hover .nested-dropdown-toggle {
    background: rgba(232, 119, 34, 0.15);
    color: var(--primary-orange);
}

.nested-dropdown-content {
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 12px;
    padding-right: 8px;
}

.nested-dropdown:hover .nested-dropdown-content {
    max-height: 600px;
    opacity: 1;
    padding-bottom: 8px;
    margin-top: 4px;
}

.nested-dropdown-content a {
    background: transparent !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
}

.nested-dropdown-content a:hover {
    background: rgba(232, 119, 34, 0.15) !important;
    color: var(--primary-orange) !important;
    transform: translateX(5px);
}

.caret {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nested-dropdown:hover .caret {
    transform: rotate(90deg);
}

/* Also ensure the parent dropdown-content can expand enough */
.card:hover .dropdown-content {
    max-height: 800px; /* Increased to accommodate the nested dropdown */
}

/* ====== SOAR MATRIX LANDING PAGE ====== */
.soar-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.soar-landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.soar-letters {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.soar-letter {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-light);
    background: rgba(255,255,255,0.05);
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.soar-letter:hover {
    transform: translateY(-15px) scale(1.05);
    background: var(--primary-orange);
    color: var(--dark-bg);
    border-color: var(--primary-orange);
    box-shadow: 0 15px 35px rgba(232, 119, 34, 0.4);
}

.soar-display-box {
    width: 100%;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    min-height: 450px;
    border-top: 4px solid var(--primary-orange);
}

.soar-table {
    width: 100%;
    border-collapse: collapse;
}

.soar-table th {
    text-align: right;
    width: 220px;
    padding: 20px 24px;
    color: var(--primary-orange);
    font-size: 1.15rem;
    font-weight: 700;
    border-right: 2px solid rgba(255,255,255,0.1);
    vertical-align: top;
    line-height: 1.4;
}

.soar-table td {
    padding: 20px 24px;
    color: var(--text-light);
    line-height: 1.6;
    vertical-align: top;
    font-size: 1.05rem;
}

.soar-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.soar-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.soar-table tr:last-child {
    border-bottom: none;
}

/* ====== SOAR SPLIT LAYOUT ====== */
.soar-split-layout {
    flex: 1;
    display: flex;
    flex-direction: row;
    padding: 40px;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    gap: 50px;
    align-items: flex-start;
}

.soar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 140px;
    flex-shrink: 0;
}

.soar-letter.active {
    background: var(--primary-orange);
    color: var(--dark-bg);
    border-color: var(--primary-orange);
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(232, 119, 34, 0.3);
}

.soar-content-area {
    flex: 1;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border-top: 4px solid var(--primary-orange);
    min-height: 600px;
    
    /* Internal scrolling if content is too tall */
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

/* Custom scrollbar for the content area */
.soar-content-area::-webkit-scrollbar {
    width: 8px;
}
.soar-content-area::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}
.soar-content-area::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

/* ====== MODAL STYLES ====== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}



.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--primary-orange);
    color: var(--dark-bg);
    transform: scale(1.1);
}



.db-link {
    color: #4da6ff;
    text-decoration: none;
    font-weight: 800;
    padding: 2px 6px;
    background: rgba(77, 166, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.db-link:hover {
    background: #4da6ff;
    color: var(--dark-bg);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-orange);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-loading {
    position: absolute;
    color: var(--dark-bg);
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    z-index: 2;
    position: relative;
    background: #ffffff;
}

/* ====== BELL SCHEDULE LIVE PAGE ====== */
.bell-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 180px);
    transition: background-color 0.5s ease;
    background-color: #ffffff; /* Default, will be overwritten by JS */
    color: #000000; /* Force black text for the schedule to match the slide */
}

.bell-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    padding: 40px;
}

.bell-columns {
    display: flex;
    flex-direction: row;
    gap: 60px;
    flex: 1;
}

.bell-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bell-col.today h2 {
    font-family: 'Impact', 'Montserrat', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bell-col.upcoming h2 {
    font-family: 'Impact', 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 40px; /* Offset to match the slide layout */
}

.bell-table {
    width: 100%;
    border-collapse: collapse;
}

.bell-table td {
    padding: 8px 16px;
    font-size: 1.8rem;
    font-weight: 600;
    vertical-align: middle;
}

.bell-table td:first-child {
    text-align: right;
    width: 50%;
}

.bell-table td:last-child {
    text-align: left;
    width: 50%;
}

.bell-col.upcoming .bell-table td {
    font-size: 1.2rem; /* Slightly smaller for upcoming */
}

.bell-ticker-container {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
}

#bell-ticker {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#bell-ticker strong {
    font-weight: 900;
}

/* ====== BELL SCHEDULE PAGE ====== */
#bell-body {
    transition: background-color 0.8s ease;
    background-color: var(--dark-bg); /* Fallback */
}

.bell-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    z-index: 10;
    position: relative;
}

.bell-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
}

.bell-card {
    flex: 1;
    max-width: 550px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.bell-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 12px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.bell-table {
    width: 100%;
    border-collapse: collapse;
}

.bell-table td {
    padding: 8px 0;
    font-size: 1.25rem;
    color: var(--text-light);
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.period-name {
    text-align: right;
    padding-right: 20px !important;
    font-weight: 400;
    width: 50%;
}

.period-time {
    text-align: left;
    padding-left: 20px !important;
    width: 50%;
    font-weight: 600;
}

.lunch-row td {
    font-weight: 800;
    color: #ffffff;
}

.bell-ticker {
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* Fix for the massive white background box */
main.bell-layout {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#bell-content {
    background: transparent !important;
    background-color: transparent !important;
}

/* ====== HEADER DROPDOWN & QR ====== */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease;
}

.dropdown-btn:hover {
    background-color: #555;
}

.header-dropdown .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background-color: var(--dark-bg);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 9999 !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.header-dropdown:hover .dropdown-content {
    display: block;
}

.header-dropdown .dropdown-content a {
    color: var(--text-light);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-dropdown .dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1);
}

.header-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.header-qr img {
    height: 40px;
    width: 40px;
    border-radius: 4px;
    transition: transform 0.3s ease;
    background: white;
    padding: 2px;
}

.header-qr:hover img {
    transform: scale(2.5);
    z-index: 200;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* ====== FOOTER DROPDOWNS ====== */
.footer-links {
    display: flex;
    gap: 20px;
}

.footer-dropdown {
    position: relative;
    display: inline-block;
}

.footer-dropdown-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
}

.footer-dropdown-title:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.footer-dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background-color: var(--dark-bg);
    min-width: 180px;
    box-shadow: 0px -8px 16px 0px rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 9999 !important;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-dropdown:hover .footer-dropdown-content {
    display: block;
}

.footer-dropdown-content a {
    color: var(--text-light);
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .header-right {
        gap: 10px;
    }
    .date-display {
        display: none; /* Hide date on small mobile to save space */
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        width: 100%;
    }
}

/* Mobile Dropdown Support */
.header-dropdown .dropdown-content.show {
    display: block;
}
.footer-dropdown-content.show {
    display: block;
}

.header-dropdown:hover .dropdown-content {
    display: block !important;
}

.footer-dropdown:hover .footer-dropdown-content {
    display: block !important;
}

/* Force containers to allow overflow so dropdowns can escape */
header, .site-footer, .footer-content, .header-right {
    overflow: visible !important;
}

/* Make sure the dropdown content itself is absolutely positioned correctly */
.header-dropdown .dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background-color: var(--dark-bg);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 999999 !important;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background-color: var(--dark-bg);
    min-width: 180px;
    box-shadow: 0px -8px 16px 0px rgba(0,0,0,0.5);
    border-radius: 8px;
    z-index: 999999 !important;
    border: 1px solid rgba(255,255,255,0.1);
}


/* =========================================
   AGGRESSIVE DROPDOWN OVERRIDES
   ========================================= */
.header-dropdown:hover > .dropdown-content,
.header-dropdown:focus-within > .dropdown-content,
.header-dropdown .dropdown-content.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.footer-dropdown:hover > .footer-dropdown-content,
.footer-dropdown:focus-within > .footer-dropdown-content,
.footer-dropdown .footer-dropdown-content.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure the containers themselves allow the dropdowns to spill out */
header, .header-right, .site-footer, .footer-content, .footer-links {
    overflow: visible !important;
    contain: none !important;
}

/* Ensure the absolute positioning isn't getting swallowed */
.header-dropdown, .footer-dropdown {
    position: relative !important;
    overflow: visible !important;
}

.header-dropdown .dropdown-content {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    z-index: 9999999 !important;
}

.footer-dropdown .footer-dropdown-content {
    position: absolute !important;
    bottom: 100% !important;
    right: 0 !important;
    z-index: 9999999 !important;
}

/* =========================================
   FIX FOR .dropdown-content CLASS CONFLICT
   ========================================= */
.header-dropdown .dropdown-content {
    /* Override the max-height animation from the main menu cards */
    max-height: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: block !important; /* Keep it in the DOM but hidden */
    overflow: visible !important;
    
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    z-index: 9999999 !important;
    
    background-color: var(--dark-bg) !important;
    min-width: 200px !important;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    margin-top: 10px !important;
    padding: 0 !important;
    
    /* Smooth fade in */
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

/* Override the anchor tags inside the header dropdown so they don't look like main menu buttons */
.header-dropdown .dropdown-content a {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    color: var(--text-light) !important;
}

.header-dropdown .dropdown-content a:hover {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
}

.header-dropdown:hover > .dropdown-content,
.header-dropdown:focus-within > .dropdown-content,
.header-dropdown .dropdown-content.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Same for footer */
.footer-dropdown .footer-dropdown-content {
    max-height: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: block !important;
    overflow: visible !important;
    
    position: absolute !important;
    bottom: 100% !important;
    right: 0 !important;
    z-index: 9999999 !important;
    
    background-color: var(--dark-bg) !important;
    min-width: 200px !important;
    box-shadow: 0px -8px 16px 0px rgba(0,0,0,0.5) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
}

.footer-dropdown:hover > .footer-dropdown-content,
.footer-dropdown:focus-within > .footer-dropdown-content,
.footer-dropdown .footer-dropdown-content.show {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =========================================
   FIX FOR SOPS AND SOAR PAGES
   ========================================= */
main.sops-content, main.soar-split-layout {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 80vh;
}

/* Ensure the main container doesn't get collapsed */
.dashboard, .sops-content, .soar-split-layout {
    position: relative;
    z-index: 10;
}

/* Ensure the sidebar menu in SOPs is clickable and visible */
.sops-sidebar {
    position: relative;
    z-index: 20;
}

/* Ensure the SOAR letters are clickable and visible */
.soar-sidebar {
    position: relative;
    z-index: 20;
}

/* =========================================
   RESTORE SOPS AND SOAR LAYOUTS
   ========================================= */
.sops-layout {
    display: flex !important;
    flex: 1 !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 20px 40px !important;
    gap: 40px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.soar-split-layout {
    display: flex !important;
    flex: 1 !important;
    flex-direction: row !important;
    padding: 40px !important;
    max-width: 1500px !important;
    margin: 0 auto !important;
    width: 100% !important;
    gap: 50px !important;
    align-items: flex-start !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sops-sidebar, .soar-sidebar {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.sops-content, .soar-content-area {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 1 !important;
}

#soar-text-display {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* =========================================
   FIX FOR SOPS TITLE AND SUBTITLE STACKING
   ========================================= */
main.sops-content {
    display: flex !important;
    flex-direction: column !important; /* Force vertical stacking */
    align-items: flex-start !important;
}

.sops-content h1 {
    display: block !important;
    width: 100% !important;
    color: var(--primary-orange) !important;
    font-size: 2.8rem !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
}

.sops-content .subtitle {
    display: block !important;
    width: 100% !important;
    color: var(--text-muted) !important;
    font-size: 1.3rem !important;
    margin-bottom: 32px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
}

.sops-content .placeholder {
    width: 100% !important;
}

/* =========================================
   FIX FOR COMMUNITY AGREEMENTS JOLTINESS
   ========================================= */
.ca-display-box {
    min-height: 180px !important; /* Increased to fit the longest text without expanding */
    height: 180px !important; /* Fixed height to prevent any joltiness */
    font-size: 1.2rem !important; /* Standardized font size */
    overflow: hidden !important; /* Prevent scrollbars if text is slightly too long */
}

#ca-text-display {
    font-size: 1.2rem !important;
}

/* =========================================
   FIX FOR BELL SCHEDULE FOOTER DROPDOWNS
   ========================================= */
.site-footer {
    position: relative;
    z-index: 999999 !important;
}

.footer-dropdown {
    position: relative;
    z-index: 999999 !important;
}

.footer-dropdown-content {
    z-index: 999999 !important;
}

/* Ensure the bell ticker doesn't block the footer */
.bell-ticker {
    position: relative;
    z-index: 10;
}

/* Ensure the bell layout doesn't overlap the footer */
.bell-layout {
    position: relative;
    z-index: 10;
    padding-bottom: 60px; /* Give the footer some breathing room */
}

/* =========================================
   FIX FOR MAIN MENU CARD DROPDOWN JOLTINESS
   ========================================= */
.card {
    position: relative !important; /* Make card the anchor for absolute positioning */
    overflow: visible !important; /* Allow the dropdown to break out of the card */
}

/* Redefine the dropdown content to float over the page */
.card .dropdown-content {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-color: var(--card-bg) !important;
    border-radius: 0 0 16px 16px !important; /* Rounded bottom corners */
    box-shadow: 0 12px 32px rgba(0,0,0,0.5) !important;
    z-index: 100 !important;
    
    /* Scroll handling inside the floating dropdown */
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow-y: auto !important;
    transition: all 0.3s ease !important;
    
    /* Add padding so it looks like part of the card when expanded */
    padding: 0 24px !important;
    margin-top: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
}

.card:hover .dropdown-content {
    max-height: 800px !important; /* Maximum height before scrolling */
    opacity: 1 !important;
    visibility: visible !important;
    padding-top: 16px !important;
    padding-bottom: 24px !important;
}

/* Ensure the dashboard grid rows don't stretch when dropdowns appear */
.dashboard {
    align-items: start !important;
}

/* ====== TRIP-O-METER LANDING PAGE ====== */
.trip-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.trip-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.trip-header h1 {
    color: var(--primary-orange);
    font-size: 3.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.trip-header .subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.master-link {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 2.2rem;
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.3s, transform 0.5s ease;
}

.master-link:hover {
    opacity: 1;
    transform: translateY(-50%) rotate(90deg);
}

.trip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.trip-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.trip-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-orange);
    box-shadow: 0 16px 40px rgba(232, 119, 34, 0.2);
    background-color: rgba(232, 119, 34, 0.05);
}

.trip-icon {
    font-size: 3rem;
    line-height: 1;
}

.trip-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.trip-card:hover h2 {
    color: var(--primary-orange);
}

/* ====== SPIN ANIMATION ====== */
@keyframes spinIn {
    0% { opacity: 0; transform: rotate(-90deg) scale(0.5); }
    100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

.spin-in {
    opacity: 0;
    animation: spinIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}


/* =========================
   INVENTORY LOOKUP PAGE
   ========================= */

/* Inventory page becomes scrollable content above a fixed footer */
body {
  min-height: 100vh;
}

.inventory-page {
  flex: 1;
  padding: 24px 34px 20px;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
  height: calc(100vh - 110px); /* header + footer breathing room */
  overflow: auto;
}

.inventory-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.inventory-title h1 {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: 0.5px;
}

.inventory-subtitle {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-weight: 500;
}

.inventory-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.inventory-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.inventory-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

.inventory-btn.secondary {
  border-color: rgba(232, 119, 34, 0.45);
  background: rgba(232, 119, 34, 0.10);
}

.inventory-btn.secondary:hover {
  background: rgba(232, 119, 34, 0.18);
}

.inventory-device-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 1500px) {
  .inventory-device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .inventory-device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .inventory-device-grid { grid-template-columns: 1fr; }
}

.inv-device-card {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card-bg);
  border-radius: 16px;
  padding: 12px 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(10px);
  animation: invCardIn 420ms ease forwards;
}

.inv-device-card:nth-child(1) { animation-delay: 60ms; }
.inv-device-card:nth-child(2) { animation-delay: 120ms; }
.inv-device-card:nth-child(3) { animation-delay: 180ms; }
.inv-device-card:nth-child(4) { animation-delay: 240ms; }
.inv-device-card:nth-child(5) { animation-delay: 300ms; }

@keyframes invCardIn {
  to { opacity: 1; transform: translateY(0); }
}

.inv-device-card:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(232, 119, 34, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.inv-device-emoji {
  font-size: 26px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(232, 119, 34, 0.12);
  border: 1px solid rgba(232, 119, 34, 0.25);
}

.inv-device-name {
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--text-light);
}

.inv-device-desc {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 3px;
  font-weight: 700;
  font-size: 0.92rem;
}

.inventory-panel {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 16px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-weight: 600;
}

.panel-body {
  padding-top: 14px;
}

.panel-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.panel-tools.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 980px) {
  .panel-tools.two-col { grid-template-columns: 1fr; }
}

.tool-label {
  font-weight: 800;
  margin-bottom: 8px;
}

.tool-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tool-help {
  margin-top: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.inv-input,
.inv-select {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-light);
  border-radius: 12px;
  padding: 11px 12px;
  min-width: 260px;
  outline: none;
}

.inv-input:focus,
.inv-select:focus {
  border-color: rgba(232, 119, 34, 0.65);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.18);
}

.inv-select {
  min-width: 220px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 119, 34, 0.55);
  background: rgba(232, 119, 34, 0.10);
}

.inv-table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(0, 0, 0, 0.22);
}

.inv-table thead th {
  text-align: left;
  padding: 12px 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(232, 119, 34, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 2;
}

.inv-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.inv-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.subview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.subview-title {
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
}

.inv-card {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  border-radius: 16px;
  padding: 14px;
}

.inv-card-title {
  font-weight: 900;
  margin-bottom: 10px;
}

.kv {
  display: grid;
  gap: 10px;
}

.kv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.10);
  padding-bottom: 10px;
}

.kv-row .k {
  color: var(--text-muted);
  font-weight: 800;
}

.kv-row .v {
  font-weight: 900;
  text-align: right;
}

.inv-muted {
  color: var(--text-muted);
  font-weight: 600;
}

.inv-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid rgba(232, 119, 34, 0.35);
  color: var(--text-light);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  max-width: 420px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.inv-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   INVENTORY NAV (CONSOLIDATED TOP BAR)
   ========================= */

.inv-nav {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 6px;
}

.inv-nav-item {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.94);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.2px;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  opacity: 0;
  transform: translateY(8px);
  animation: invNavIn 380ms ease forwards;
}

.inv-nav-item:nth-child(1) { animation-delay: 40ms; }
.inv-nav-item:nth-child(2) { animation-delay: 90ms; }
.inv-nav-item:nth-child(3) { animation-delay: 140ms; }
.inv-nav-item:nth-child(4) { animation-delay: 190ms; }
.inv-nav-item:nth-child(5) { animation-delay: 240ms; }

@keyframes invNavIn {
  to { opacity: 1; transform: translateY(0); }
}

.inv-nav-item:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 119, 34, 0.55);
  background: rgba(232, 119, 34, 0.10);
}

.inv-nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inv-nav-ico-img{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.inv-nav-ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(232, 119, 34, 0.12);
  border: 1px solid rgba(232, 119, 34, 0.25);
  font-size: 22px;
}

.inv-nav-label {
  font-size: 0.98rem;
}

.inv-nav-tip {
  position: absolute;
  left: 10px;
  top: calc(100% + 10px);
  width: max-content;
  max-width: min(520px, 90vw);
  background: rgba(0, 0, 0, 0.86);
  border: 1px solid rgba(232, 119, 34, 0.35);
  color: rgba(255, 255, 255, 0.92);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 6;
  white-space: normal;
}

.inv-nav-item:hover .inv-nav-tip {
  opacity: 1;
  transform: translateY(0);
}

.inv-nav-hint {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.inv-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-top: 14px;
}

.inv-top-gap { height: 6px; }

@media (max-width: 680px) {
  .inv-nav { gap: 8px; }
  .inv-nav-item { width: 100%; justify-content: flex-start; }
  .inv-nav-tip { left: 8px; }
}

/* Remove old card grid spacing if still present */
.inv-nav-spacer { display: none; }


/* Active state for inventory nav */
.inv-nav-item.active {
  border-color: rgba(232, 119, 34, 0.75);
  background: rgba(232, 119, 34, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Inventory Director gear link */
.inventory-gear {
  border: 1px solid rgba(232, 119, 34, 0.45);
  background: rgba(232, 119, 34, 0.10);
  color: var(--text-light);
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.inventory-gear:hover {
  transform: translateY(-1px);
  background: rgba(232, 119, 34, 0.18);
}

.inventory-gear span {
  font-size: 0.95rem;
}

.inventory-gear:active {
  transform: translateY(0);
}

/* Click animations */
.inv-nav-item:active {
  transform: translateY(0) scale(0.99);
}

.inventory-panel {
  transform-origin: top center;
}

.inventory-panel.panel-pop {
  animation: invPanelPop 260ms ease;
}

@keyframes invPanelPop {
  0% { transform: scale(0.992); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

.inv-table tbody tr {
  transition: background 120ms ease, transform 120ms ease;
}

.inv-table tbody tr:active {
  transform: scale(0.997);
}

/* =========================================
   FIX FOR MAIN MENU CARDS GETTING BLOCKED
   ========================================= */
/* 1. Pop the hovered card to the very front so dropdowns don't fall behind other cards */
.card:hover {
    z-index: 999;
}
/* 2. On mobile/smaller screens, make the dropdowns push content down (accordion style) 
      so they never get cut off off-screen */
@media (max-width: 768px) {
    .card .dropdown-content {
        position: relative !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        border-top: none !important;
        padding: 0 !important;
    }
    
    .card:hover .dropdown-content {
        padding-top: 15px !important;
        padding-bottom: 0 !important;
        max-height: 1200px !important; /* Allows plenty of room for nested dropdowns */
    }
}

/* =========================================================
   MOBILE FOOTER OVERLAP HARD FIX
   Why: iOS Safari bottom bars + high footer z-index can make
   the footer visually sit above in-flow content.
   Fix: give the page real scroll breathing room incl. safe-area,
   and prevent the footer from stacking above expanded cards.
   ========================================================= */
@media (hover: none) and (pointer: coarse) {
  :root {
    --mobile-footer-clearance: 280px; /* adjust if needed */
  }

  /* Ensure the scrollable document has room below content */
  body {
    padding-bottom: calc(var(--mobile-footer-clearance) + env(safe-area-inset-bottom, 0px));
  }

  /* Keep landing page content comfortably above footer / browser UI */
  .dashboard {
    padding-bottom: calc(var(--mobile-footer-clearance) + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* On phones, footer doesn't need to be in the top stacking context */
  .site-footer {
    z-index: 1 !important;
  }

  /* Ensure expanded card sits above normal content (but doesn't need to beat modals) */
  .card.open {
    z-index: 5;
  }
}

/* =====================================================================
   PATCH ADDED BY JUMA — 2026-03-23
   Purpose: Keep MAIN MENU CARD dropdowns contained inside their cards
   ===================================================================== */

/* This file is generated patch content only. 
   Mario: copy the CSS block below into your repo's css/styles.css near the existing dropdown/card rules.
   It intentionally overrides earlier conflicting rules using higher specificity + !important.
*/

/* =========================================================
   MAIN MENU CARD DROPDOWNS — KEEP CONTAINED INSIDE THE CARD
   Goal: dropdown expands the card (accordion) instead of floating over other cards,
   at ALL breakpoints (desktop multi-column + mobile single-column).
   This prevents overlap and footer collisions.
   ========================================================= */

/* Ensure the card is the containing block */
.card {
  position: relative;
}

/* Default: accordion behavior (contained) */
.card .dropdown-content {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;

  /* contained visual */
  background: transparent !important;
  box-shadow: none !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 0 0 16px 16px !important;

  /* collapsed state */
  max-height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
  margin-top: 0 !important;
  padding: 0 24px !important;

  transition: max-height 0.45s ease, opacity 0.25s ease, visibility 0.25s ease, padding 0.25s ease;
}

/* Expanded state (hover-based, as your UI currently works) */
.card:hover .dropdown-content,
.card:focus-within .dropdown-content {
  max-height: 1200px !important; /* generous to fit nested dropdowns */
  opacity: 1 !important;
  visibility: visible !important;
  overflow: visible !important;
  padding-top: 16px !important;
  padding-bottom: 20px !important;
}

/* Nested dropdowns should remain contained, too */
.card .nested-dropdown-content {
  overflow: hidden;
}

/* IMPORTANT: keep header dropdown and footer dropdown floating (they should not be affected) */
.header-dropdown .dropdown-content,
.footer-dropdown .footer-dropdown-content {
  position: absolute !important;
}

/* If any earlier rule forced floating dropdowns for cards, neutralize it */
.card .dropdown-content {
  transform: none !important;
}


/* Trip-o-Meter landing hero */
.tripometer-gif-center{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.tripometer-gif-center img,
img.tripometer-gif{
  display:block;
  max-width: 320px; /* half-size target */
  width: min(320px, 70vw);
  height: auto;
}

/* Trip-o-Meter surround layout */
.trip-surround{
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "top1 top2 center"
    "left center right"
    "robotics robotics robotics";
  gap: 18px;
  align-items: center;
}

/* Bulletproof: force children to participate in the grid (prevents stray floats/positioning) */
.trip-surround > *{
  position: relative;
  inset: auto;
  float: none;
}

/* Explicit grid areas (avoid nth-of-type fragility) */
.trip-area-top1{ grid-area: top1; }
.trip-area-top2{ grid-area: top2; }
.trip-area-left{ grid-area: left; }
.trip-area-center{ grid-area: center; }
.trip-area-right{ grid-area: right; }
.trip-area-robotics{ grid-area: robotics; max-width: 420px; margin: 0 auto; }

/* Prevent cards from stretching on ultrawide screens */
.trip-surround .trip-card--top,
.trip-surround .trip-card--side{
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

@media (max-width: 900px){
  .trip-surround{
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "top1 top2"
      "center center"
      "left right"
      "robotics robotics";
  }
  .trip-surround .trip-card--top,
  .trip-surround .trip-card--side{ max-width: 320px; }
}
@media (max-width: 520px){
  .trip-surround{
    grid-template-columns: 1fr;
    grid-template-areas:
      "top1"
      "top2"
      "center"
      "left"
      "right"
      "robotics";
  }
}



/* =========================================================
   TRIP-O-METER (STABLE STACKED LAYOUT)
   GIF on top, cards below (avoids grid/animation conflicts)
   ========================================================= */
.trip-stack{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.trip-grid--stack{
  margin-top: 18px;
}

.trip-grid--stack .trip-card--robotics{
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
}

/* Ensure stacked cards are always visible even if spin-in exists elsewhere */
.trip-grid--stack .trip-card{
  opacity: 1 !important;
  visibility: visible !important;
}

/* End Trip-o-Meter stacked layout */


/* ========== HARD RESTORE: Trip-o-Meter surround cards (legacy safety) ========== */
.trip-layout .trip-surround a.trip-card{
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  transform: none !important;
  animation: none !important;
  height: auto !important;
  max-height: none !important;
}

.trip-layout .trip-surround a.trip-card *{
  opacity: 1 !important;
  visibility: visible !important;
}

/* End legacy safety */


/* =========================================================
   DJs LANDING PAGE (modeled after Trip-o-Meter stacked layout)
   ========================================================= */
.dj-stack{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.dj-hero{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dj-hero-img{
  display: block;
  max-width: 320px;
  width: min(320px, 70vw);
  height: auto;
}

.dj-grid{
  margin-top: 18px;
}

.dj-grid .trip-card--robotics{
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
}

/* End DJs landing page */

/* ========================================================= */


/* =========================================================
   CONTROL CENTER LANDING PAGE (simple grid of tab links)
   ========================================================= */
.control-stack{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.control-grid{
  margin-top: 10px;
}

/* CTSO centered on its own row */
.control-grid .trip-card--robotics{
  grid-column: 1 / -1;
  max-width: 420px;
  margin: 0 auto;
}

/* End Control Center landing page */

/* =========================================================
   LEADERSHIP LOOKUP PAGE
   ========================================================= */
.leadership-page{
  flex: 1;
  padding: 20px 40px;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.leadership-hero{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 14px;
}

.leadership-hero h1{
  color: var(--primary-orange);
  font-size: 3rem;
  margin: 0 0 8px;
  text-transform: uppercase;
  font-weight: 800;
}

.leadership-hero .subtitle{
  margin: 0;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.leadership-hero-img{
  display:block;
  max-width: 320px;
  width: min(320px, 70vw);
  height: auto;
}

.leadership-controls{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 14px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 12px;
  align-items: end;
}

.leadership-label{
  display:block;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 6px;
}

.leadership-select,
.leadership-input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(17, 24, 39, 0.65);
  color: var(--text-light);
  outline: none;
}

.leadership-input::placeholder{ color: rgba(255,255,255,0.45); }

.leadership-clear{
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.10);
  background: rgba(232, 119, 34, 0.12);
  color: var(--text-light);
  font-weight: 800;
  cursor: pointer;
}
.leadership-clear:hover{
  background: rgba(232, 119, 34, 0.20);
  border-color: rgba(232,119,34,0.5);
}

.leadership-exec{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.55);
  border: 2px solid rgba(255,255,255,0.06);
}

.leadership-exec-title{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.leadership-exec-list{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.exec-pill{
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(0,0,0,0.22);
  border: 2px solid rgba(232,119,34,0.25);
}

.exec-role{
  font-weight: 900;
  color: var(--primary-orange);
  margin-bottom: 6px;
}
.exec-name{
  font-weight: 800;
  color: var(--text-light);
}
.exec-division{
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 2px;
}

.leadership-results{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 26px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.55);
  border: 2px solid rgba(255,255,255,0.06);
}

.leadership-results-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.results-title{
  font-weight: 900;
  color: var(--text-light);
}

.division-hiring{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 800;
}
.division-hiring:hover{
  border-color: rgba(232,119,34,0.55);
  background: rgba(232, 119, 34, 0.12);
}

.results-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.leader-row{
  display:grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 10px;
  align-items:center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.20);
  border: 2px solid rgba(255,255,255,0.06);
}

.leader-pos{
  font-weight: 900;
  color: var(--text-light);
}
.leader-name{
  font-weight: 900;
  color: #ffffff;
  text-align: right;
}
.leader-div{
  font-weight: 800;
  color: var(--text-muted);
  text-align: right;
}

.results-empty,
.exec-empty{
  color: var(--text-muted);
  font-weight: 700;
}

.missing-roles{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed rgba(255,255,255,0.12);
}

.missing-title{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.missing-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.missing-item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.20);
  border: 2px solid rgba(255,255,255,0.06);
}

.missing-pos{
  font-weight: 900;
  color: var(--text-light);
}

.missing-hiring-img{
  width: 120px;
  height: auto;
  display:block;
}

@media (max-width: 820px){
  .leadership-controls{ grid-template-columns: 1fr; }
  .leader-row{ grid-template-columns: 1fr; }
  .leader-name, .leader-div{ text-align: left; }
  .leadership-hero{ grid-template-columns: 1fr; }
  .leadership-hero-right{ justify-self: start; }
}

/* Menu inline icon (used in dropdown links) */
.menu-ico{
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: -4px;
  margin-right: 8px;
}

/* Manager tools panel (division-only) */
.manager-tools{
  margin: 10px 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(232, 119, 34, 0.10);
  border: 2px solid rgba(232,119,34,0.30);
}

.manager-tools-title{
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}

.manager-hiring-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  border: 2px solid rgba(255,255,255,0.10);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.manager-hiring-btn:hover{
  background: rgba(232, 119, 34, 0.18);
  border-color: rgba(232,119,34,0.65);
}

/* End Leadership lookup page */

/* ========================================================= */


/* =========================================================
   LEADERSHIP JOBS PAGE
   ========================================================= */
.jobs-panel{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.jobs-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.jobs-title{
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.jobs-apply-img{
  width: 128px;
  height: auto;
  display: block;
}

.jobs-note{
  color: var(--text-muted);
  margin-bottom: 18px;
}

.jobs-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.job-card{
  background: rgba(17, 24, 39, 0.65);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.job-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.job-card h2{
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-orange);
}

.job-card p{
  margin: 8px 0;
  color: var(--text-light);
  line-height: 1.35;
}

.job-card strong{
  color: #ffffff;
}

/* End Leadership Jobs page */

/* ========================================================= */


/* Today's live schedule beneath the home menu. */
.home-dashboard {
    align-content: start;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.home-schedule {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: 440px;
    min-width: 0;
    border-radius: 16px;
}

.home-schedule .bell-card {
    width: 100%;
    padding: 22px 24px;
}

.home-schedule .bell-title {
    font-size: 1.15rem;
    margin-bottom: 14px;
}

.home-schedule .bell-table td {
    font-size: 1rem;
    padding-top: 5px;
    padding-bottom: 5px;
}

.home-schedule .period-name {
    padding-right: 12px !important;
}

.home-schedule .period-time {
    padding-left: 12px !important;
}

.home-schedule-status {
    padding: 16px 0;
    text-align: center;
    line-height: 1.5;
}

.home-schedule-link {
    display: block;
    margin-top: 16px;
    color: var(--text-light);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-underline-offset: 3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.home-schedule-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

@media (max-width: 480px) {
    .home-dashboard {
        padding-left: 16px;
        padding-right: 16px;
    }
    .home-schedule .bell-card {
        padding: 20px 16px;
    }
}

