body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

.navbar-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.navbar-actions {
    min-width: 0;
    max-width: 100%;
}

.navbar .nav-link,
.navbar .navbar-text,
.navbar .navbar-brand {
    color: #fff !important;
    text-decoration: none !important;
}

.navbar-actions .navbar-text {
    max-width: 5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 576px) {
    .navbar-actions .navbar-text {
        max-width: none;
    }
}

.event-content {
    white-space: pre-wrap;
    word-break: break-word;
}

.event-actions {
    padding-top: 0.25rem;
}

.event-actions form {
    display: inline-block;
}

.event-image-wrap {
    max-width: 100%;
}

.event-image-thumb {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 0.75rem;
    object-fit: cover;
}

.channel-filter .btn {
    border-radius: 2rem;
}

.timeline-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.timeline-date-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.timeline-date-today {
    color: #0d6efd;
}

.timeline-date-count {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.timeline-date-events {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
}

.admin-permissions-table .form-check-input {
    float: none;
    margin: 0;
}

.login-card {
    max-width: 100%;
}

@media (min-width: 576px) {
    .login-card {
        max-width: 420px;
        margin: 0 auto;
    }
}
