html {
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #ffffff;
    position: relative;
    z-index: 0;
}


.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #000000, #a3a3a3);
    background-repeat: no-repeat;
    background-size: cover;
}


#content, .container {
    min-height: 75vh;
}
a {
    color: #77c7ff;
}

a:hover {
    color: #aadfff;
}

.btn-primary {
    background-color: #2280cc;
    border-color: #1b6fb8;
}

.btn-primary:hover {
    background-color: #1b6fb8;
    border-color: #155a9e;
}

.card {
    background-color: rgba(30, 30, 30, 0.9);
    color: #ffffff;
}

.form-control,
.form-select {
    background-color: #2b2b2b;
    color: #ffffff;
    border-color: #555;
}

footer {
    color: #888;
}

/* Dark Mode Overrides */
/* Add this to your main stylesheet (e.g., assets/style.css) */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}
.dark-mode .card {
    background-color: #1e1e1e;
    border-color: #333;
}
.dark-mode .form-control, .dark-mode .btn, .dark-mode .table {
    background-color: #2c2c2c;
    color: #ffffff;
    border-color: #444;
}
.post-meta {
    color: #ffffff !important;
}
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5); /* optional: semi-transparent dark background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.spinner-overlay {
    transition: opacity 0.3s ease;
}
button.like-btn,
button.dislike-btn {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline;
}
button.like-btn:hover,
button.dislike-btn:hover {
    text-decoration: underline;
}
.scroll-box {
    max-height: 300px;
    overflow-y: auto;
    border: none;
    padding: 10px;
    margin-bottom: 15px;
}

.equal-btn {
    min-width: 120px;
    text-align: center;
}
.badge.bg-warning {
    background-color: #28a745 !important; /* Bootstrap green */
    color: white;
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}
.badge.bg-success {
    background-color: pink !important; /* Bootstrap green */
    color: black;
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
}
table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(30, 30, 30, 0.9);
    color: #ffffff;
    margin-bottom: 1rem;
    border: 1px solid #444;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #444;
}

thead {
    background-color: #1e1e1e;
    color: #ffffff;
}

tbody tr:nth-child(even) {
    background-color: rgba(45, 45, 45, 0.9);
}

tbody tr:hover {
    background-color: rgba(60, 60, 60, 0.9);
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
table.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(30, 30, 30, 0.95);
    color: #ffffff;
    margin-top: 1rem;
    border: 1px solid #444;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
}

table.admin-table th,
table.admin-table td {
    padding: 0.75rem 1rem;
    border: 1px solid #444;
    text-align: left;
}

table.admin-table thead {
    background-color: #111;
    color: #fff;
}

table.admin-table tbody tr:nth-child(even) {
    background-color: rgba(45, 45, 45, 0.95);
}

table.admin-table tbody tr:hover {
    background-color: rgba(70, 70, 70, 0.95);
}


#lightboxImage {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 15px #00aaff;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 1;
}

.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.slide-in {
    transform: translateX(0%);
    opacity: 1;
}
.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}
.swipe-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 170, 255, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10000;
    white-space: nowrap;
    display: none; /* default hidden */
}

/* Show only on mobile (under 768px) when lightbox is active */
@media (max-width: 768px) {
    .lightbox-open #swipeHint {
        display: block;
        animation: fadeout 4s ease-in-out forwards;
    }
}

@keyframes fadeout {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes slideInFromRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.slide-in-left {
  animation: slideInFromLeft 0.4s ease forwards;
}

.slide-in-right {
  animation: slideInFromRight 0.4s ease forwards;
}

.scroll-hidden {
  height: 450px;
  overflow: auto;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* Internet Explorer 10+ */
}

.scroll-hidden::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Opera */
}

/* Prevent body scroll when lightbox is open */
body.no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

        .event {
            background: #fff
            padding: 15px;
            margin: 15px 0;
            border-radius: 10px;
        }
        .event img {
            border-radius: 5%;
        }
        .event .username {
            font-weight: bold;
        }
        form input, form textarea, form select {
            width: 100%;
            margin-bottom: 10px;
            padding: 8px;
            border-radius: 5px;
            border: none;
            background: #2a3553;
            color: #fff;
        }
        .btn:hover {
            background: #009acc;
        }
        .attendees {
            font-size: 12px;
            color: #ccc;
        }
        .flag {
            cursor: pointer;
            color: #ff3b3b;
            float: right;
        }
        .styled-quote {
  font-style: italic;
  font-size: 1.1em;
  color: #ddd;
  border-left: 4px solid #00bfff;
  padding-left: 16px;
  margin: 20px 0;
  quotes: "“" "”" "‘" "’";
}
.styled-quote::before {
  content: open-quote;
}
.styled-quote::after {
  content: close-quote;
}
.video-thumbnail {
  width: 150px;
  height: 150px;
  object-fit: cover;
    border-radius: 4px;
}