body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(90deg, #cc0000 0%, #cc0000 20%, #ffffff 20%, #ffffff 40%, #cc0000 40%, #cc0000 60%, #ffffff 60%, #ffffff 80%, #cc0000 80%, #cc0000 100%);
    background-size: 100% 100%;
    color: #cc0000;
    padding-bottom: 80px;
}

body.no-scroll {
    overflow: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: #cc0000;
    border-radius: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    border-radius: 10px;
}

html {
    scrollbar-color: #cc0000 #f0f0f0;
    scrollbar-width: thin;
}

.navbar {
    background-color: #cc0000;
    height: 80px;
    top: 0;
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.navbar img.logo {
    height: 100px;
    transform: translateY(10%);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar img.logo:hover {
    transform: translateY(5%) scale(1.05);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #cc0000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    z-index: 998;
}

.bottom-nav .nav-item {
    flex: 1;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: white;
    background-color: #cc0000;
}

.bottom-nav .nav-item img {
    width: 30px;
    height: 30px;
    margin-bottom: 4px;
}

.bottom-nav .nav-item.active {
    background-color: white;
    color: #cc0000;
}

.bottom-nav .center {
    position: relative;
    top: -10px;
    flex: 0 0 80px;
}

.bottom-nav .add-button {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.bottom-nav .add-button img {
    width: 30px;
    height: 30px;
}

.bottom-nav .add-button:active {
    transform: scale(0.9);
}

.feed {
    width: 100%;
    max-width: 600px;
}

.post {
    background-color: #ffffff;
    border: 2px solid #cc0000;
    margin-bottom: 5px;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post img.brand-logo {
    width: 100%;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
}

blockquote.instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

iframe {
    width: 100% !important;
}

.add-content-btn {
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    cursor: pointer;
}

.add-content-btn:hover {
    background-color: #a30000;
}

.return-to-top {
    position: fixed;
    bottom: calc(100px + 10px);
    right: 20px;
    background-color: #cc0000;
    border: white 1px;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    display: none;
    z-index: 998;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media screen and (min-width: 1024px) {
    .return-to-top {
        border: 1px solid white;
    }
}

.return-to-top img {
    width: 30px;
    height: 30px;
}

.return-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.return-to-top.show {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.return-to-top.hide {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.upload-box {
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.add-content-btn {
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-content-btn:hover {
    background-color: #a30000;
}

.upload-box a {
    color: #cc0000;
    font-weight: bold;
    text-decoration: none;
}

.upload-box a:hover {
    text-decoration: underline;
}

.toggle-box {
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    padding: 10px;
    margin: 20px auto;
    width: 95%;
    max-width: 600px;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    scrollbar-width: none;
}

.toggle-box::-webkit-scrollbar {
    height: 8px;
    opacity: 0;
}

.toggle-box:hover {
    scrollbar-width: thin;
}

.toggle-box:hover::-webkit-scrollbar {
    opacity: 1;
}

.toggle-box::-webkit-scrollbar-thumb {
    background-color: #a30000;
    border-radius: 4px;
}

.toggle-box::-webkit-scrollbar-track {
    background: #ffffff;
}

/* Button styling */
.toggle-box button, .toggle-box .profile-button {
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    font-size: 1rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.toggle-box button.active {
    background-color: #a30000;
}

.toggle-box button:hover {
    background-color: #a30000;
}

.logout-button {
    position: absolute;
    right: 20px;
    background-color: #cc0000;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #a30000;
}

.media-container--standard {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    position: relative;
}

.media-container--standard img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.media-container--standard video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.media-container--embed {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: red;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 1;
}

.play-overlay::before {
    content: '▶';
    color: white;
    font-size: 30px;
    margin-left: 3px;
    margin-bottom: 3px;
}

.media-container.playing .play-overlay {
    opacity: 0;
}

.modal-dialog {
    max-width: 90%;
    margin: auto;
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 500px;
    }
}

.post-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
    margin-top: -5px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cc0000;
    transition: transform 0.2s ease-in-out;
}

.location-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 25px;
    white-space: nowrap;
    flex-shrink: 0;
}

.location-icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.location-text {
    font-size: 14px;
    color: black;
    white-space: nowrap;
}

.see-more-btn {
    background: none;
    border: none;
    color: #cc0000;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 0;
    display: none;
}

.red-highlight {
    color: red;
    font-weight: bold;
}

.pink-highlight {
    color: #FF00BF;
    font-weight: bold;
}

.highlight-match {
    background-color: black;
    color: white;
    padding: 0 2px;
    border-radius: 3px;
}

#userSearchInput {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

#userSearchInput:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

#userSearchInput::placeholder {
    color: #999;
    font-style: italic;
}

a.hashtag-link {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

a.hashtag-link:hover {
    text-decoration: none;
    color: #cc0000;
}

.share-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-buttons a {
    display: inline-block;
    width: 30px;
    height: 30px;
}

.share-buttons img {
    width: 25px;
    height: 25px;
    transition: transform 0.2s ease-in-out, content 0.2s;
}

@media (max-width: 600px) {
    .share-buttons {
        gap: 5px;
    }

    .share-buttons a {
        width: 30px;
        height: 30px;
    }

    .share-buttons img {
        width: 25px;
        height: 25px;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.views-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 100%;
    max-width: 600px;
    text-align: center;
    height: auto;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    overflow: visible;
}

.views-popup-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

#closeViewsPopup {
    display: block;
    cursor: pointer;
    margin: 0 auto;
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#closeViewsPopup:hover {
    opacity: 1;
}

.like-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 100%;
    max-width: 600px;
    text-align: center;
    height: auto;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    overflow: visible;
}

.like-popup-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

#closePopup {
    display: block;
    cursor: pointer;
    margin: 0 auto;
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#closePopup:hover {
    opacity: 1;
}

#closeLikePopup {
    display: block;
    cursor: pointer;
    margin: 0 auto;
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#closeLikePopup:hover {
    opacity: 1;
}

#closeCommentPopup {
    display: none;
    cursor: pointer;
    top: 2.5%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#closeCommentPopup:hover {
    opacity: 1;
}

.like-list {
    flex-grow: 1;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: visible;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.like-list::-webkit-scrollbar {
    width: 8px;
}

.like-list::-webkit-scrollbar-thumb {
    background: #cc0000;
    border-radius: 4px;
}

.like-user {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #ddd;
    transition: background 0.2s;
}

.like-user:hover {
    background: #f7f7f7;
}

.like-user img {
    margin-right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #cc0000;
    object-fit: cover;
}

.search-user-result {
    display: flex;
    align-items: center;
    padding: 12px;
    transition: background 0.2s;
}

.search-user-result-profile-image {
    margin-right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #cc0000;
    object-fit: cover;
}

.vote-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.vote-option {
    color: black;
    padding: 14px 20px;
    background: #f1f1f1;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.vote-option:hover {
    background: #e0f0ff;
    border-color: #007BFF;
    box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.rules-wrapper {
    position: relative;
}

.rules-content {
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.rules-content.expanded {
    max-height: 3000px;
}

.like-count {
    position: relative;
    font-size: 17px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    color: #333;
}

body.popup-active .like-count {
    filter: blur(4px);
}

body.popup-active .like-popup,
body.popup-active .overlay {
    visibility: visible;
    opacity: 1;
}

.close-popup {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    background: #f7f7f7;
    border: none;
    cursor: pointer;
    z-index: 1001;
    visibility: hidden;
    opacity: 0;
    border-radius: 25%;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.comment-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 99%;
    max-width: 600px;
    text-align: center;
    height: auto;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    overflow: hidden;
}

.comment-popup-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 6px;
}

.comment-list {
    flex-grow: 1;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment-list::-webkit-scrollbar {
    display: none;
}

.comment-list::-webkit-scrollbar-thumb {
    background: #cc0000;
    border-radius: 4px;
}

.comment-item {
    display: flex;
    flex-direction: column;
    padding: 6px;
    transition: background 0.2s;
    width: auto;
    background: #f7f7f7;
    border: 1px solid #e6e6e6;
    margin-bottom: 2px;
    margin: 6px;
}

.comment-item:hover {
    background: white;
}

.comment-user-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cc0000;
}

.comment-text {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: left;
    margin-bottom: -20px;
    font-size: 14px;
    color: black;
}

.reply-icon:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.right-actions {
    display: flex;
    align-items: center;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: red;
    font-size: 16px;
    flex-grow: 1;
}

.comment-user:hover {
    text-decoration: none;
}

.comment-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.comment-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 5px;
}

.comment-text p {
    margin-top: 5px;
    margin-bottom: 25px;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 15px;
    color: black;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.comment-likes {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding-right: 5px;
}

.like-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    object-fit: contain;
    margin-right: 5px;
}

.comment-like-icon ,
.reply-icon {
    width: 20px;
    height: 23.76px;
    cursor: pointer;
    object-fit: contain;
}

.reply-button {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: black;
    font-size: 14px;
    text-decoration: none;
}

.settings-button {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: black;
    font-size: 14px;
    text-decoration: none;
}

.settings-icon {
    width: 15px;
    height: 15px;
    cursor: pointer;
    object-fit: contain;
}

.comment-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.comment-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.comment-likes-count {
    font-size: 14px;
    color: black;
}

.comment-input-container {
    width: 100%;
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
}

.comment-input-container textarea {
    width: 100%;
    height: 70px;
    resize: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background-color: #fff;
    outline: none;
    transition: border 0.3s;
}

.comment-input-container textarea:focus {
    border-color: #cc0000;
}

.profile-toggle-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 5px;
}

.profile-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    color: #cc0000;
    cursor: pointer;
    height: 48px;
    border: 1px solid #cc0000;
}

.profile-toggle-btn.profile-active {
    background-color: #cc0000;
    color: white;
    border: 1px solid white;
}

.profile-toggle-btn img.btn-icon {
    width: 20px;
    height: 20px;
}

.profile-toggle-btn.profile-active img.btn-icon {
    filter: brightness(0) invert(1);
}

.post-comment-btn {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #cc0000;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.post-comment-btn:hover {
    background-color: #a30000;
}

.comment-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  color: black;
}

.comment-username {
  font-weight: bold;
  text-decoration: none;
}

.comment-time {
  font-size: 12px;
  color: black;
  margin-left: 5px;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.comment-options {
    position: relative;
    display: inline-block;
}

.options-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    color: black;
    transition: 0.2s ease-in-out;
}

.options-btn:hover {
    color: #cc0000;
}

.options-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 25px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 120px;
    flex-direction: column;
}

.options-menu.show {
    display: flex;
}

.options-menu button {
    background: none;
    border: none;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    transition: background 0.2s ease-in-out;
}

.options-menu button:hover {
    background: #f5f5f5;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.left-buttons {
    display: flex;
    align-items: center;
    position: relative;
    gap: 8px;
}

.like-section {
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Right section (Comment + Share) */
.right-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-buttons img {
    transition: transform 0.2s;
    cursor: pointer;
}

.action-buttons img:hover {
    transform: scale(1.1);
}

.post-description-container {
    width: 100%;
    position: relative;
}

/* By default, show only the first 2 lines */
.post-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;  
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word; /* Ensures long words break */
    transition: max-height 0.3s ease-out;
    white-space: normal; /* Ensure normal word wrapping */
    color: black;
}

.post-description.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

/* Profile Picture & Username */
.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #cc0000;
    font-weight: bold;
}

/* Hover effect */
.user-link:hover .profile-pic {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .options-menu {
        right: 0;
        left: auto;
        transform: translateX(-10px);
        max-width: 120px;
        white-space: nowrap;
    }

    .comment-user {
        max-width: 80%;
        font-size: 14px;
    }

    .comment-user-pic {
        width: 35px;
        height: 35px;
    }

    .comment-text {
        font-size: 14px;
    }

    .options-btn {
        font-size: 16px;
    }
}

.user-info {
    display: inline-flex;
    align-items: center;
}

.status-icon {
    width: 25px;
    height: 25px;
    margin-left: 5px;
    vertical-align: middle;
    cursor: pointer;
}

.admin-menu {
    position: absolute;
}

.menu-button {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

.menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 120px;
    z-index: 100;
}

.menu-dropdown .dropdown-item {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.menu-dropdown .dropdown-item:hover {
    background: #f0f0f0;
}

.menu-dropdown .delete-btn {
    color: black;
}

.status-icon-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.status-tooltip {
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: normal;
    max-width: 220px;
    width: max-content;
    word-wrap: break-word;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    text-align: center;
}

.status-tooltip::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 52%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #333;
}

.status-icon-wrapper:hover .status-tooltip,
.status-icon-wrapper:focus-within .status-tooltip {
    opacity: 1;
    visibility: visible;
}

.profile-container {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin-bottom: 5px;
    border: 2px solid #cc0000;
    position: relative;
}

.profile-picture-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-picture-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profile-picture {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cc0000;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-info h3 {
    margin: 0;
    color: #cc0000;
    font-size: 1.2rem;
}

.profile-info p {
    margin: 5px 0 0;
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 768px) { 
    .profile-container {
        width: 100%;
        border: 2px solid #cc0000;
    }
}

@media (max-width: 480px) {
    .profile-container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        border: 2px solid #cc0000;
    }

    .profile-picture-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.status-container {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.status-text {
    font-size: 14px;
    font-weight: bold;
    color: #444;
    white-space: nowrap;
}

.share-buttons a.facebook:hover img {
    content: url("/static/facebook_red.png");
}

.share-buttons a.twitter:hover img {
    content: url("/static/twitter_red.png");
}

.share-buttons a.whatsapp:hover img {
    content: url("/static/whatsapp_red.png");
}

.match-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.match-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 5px;
    border: 2px solid #cc0000;
}

.match-card-small {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 5px;
}

.match-header {
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
}

.event-name {
    font-size: 14px;
    font-weight: bold;
    color: red;
}

.event-name-small {
    font-size: 12px;
    font-weight: bold;
    color: red;
}

.event-location {
    font-size: 14px;
    color: #666;
}

.match-time {
    font-size: 14px;
    font-weight: bold;
    color: #777;
}

.match-body {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.team img {
    width: 50px;
    height: 50px;
}

.team-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30%;
}

.team-small img {
    width: 30px;
    height: 30px;
}

.team-name {
    font-size: 16px;
    font-weight: bold;
    color: black;
    text-align: center;
}

.team-name-small {
    font-size: 10px;
    font-weight: bold;
    color: black;
    text-align: center;
}

.match-center {
    width: 40%;
    text-align: center;
}

.score {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.score-small {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.status {
    font-size: 16px;
    font-weight: bold;
    color: #777;
}

.status.live {
    position: absolute;
    top: 10px;
    left: 10px;
    color: red;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.live-dot {
    color: #cc0000;
    font-size: 16px;
    margin-right: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    100% {
        opacity: 0.5;
    }
}

.icons {
    display: flex;
    gap: 25px;
    margin-top: 5px;
}

.icons img {
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.icons img:hover {
    transform: scale(1.1);
}

.admin-menu-small {
    position: absolute;
    top: 10px;
    right: 10px;
}

.menu-button-small {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 120px;
    z-index: 100;
}

.menu-dropdown .dropdown-item {
    display: block;
    width: 100%;
    padding: 8px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    color: black;
}

.menu-dropdown .dropdown-item:hover {
    background: #f0f0f0;
}

.menu-dropdown .delete-btn {
    color: black;
}

.button-group {
    display: flex;
    gap: 10px;
}

.admin-only {
  visibility: hidden;
}

body.admin .admin-only {
  visibility: visible;
}

.logged-in-only {
  visibility: hidden;
}

body.login .logged-in-only {
  visibility: visible;
}

.logged-in-only-comments {
  display: none;
}

body.login .logged-in-only-comments {
  display: block;
}

@media (max-width: 768px) {
    .match-body {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: center;
    }

    .team {
        width: 30%;
    }

    .match-center {
        width: 40%;
        margin: 0;
    }

    .score {
        font-size: 20px;
    }

    .icons {
        margin-top: 5px;
    }

    .team-name {
        font-size: 14px;
    }
}

.chat-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid #cc0000;
}

.chat-list-view,
#messagesThread {
    padding-bottom: 90px;
}

.chat-list-view {
    height: auto;
    max-height: 65vh;
    overflow-y: auto;
    padding: 15px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #cc0000 #f0f0f0;
}

.chat-thread-view {
    height: auto;
    max-height: 65vh;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.chat-list-view::-webkit-scrollbar,
#messagesThread::-webkit-scrollbar {
    width: 8px;
}

.chat-list-view::-webkit-scrollbar-thumb,
#messagesThread::-webkit-scrollbar-thumb {
    background-color: #cc0000;
    border-radius: 10px;
}

.chat-list-view::-webkit-scrollbar-track,
#messagesThread::-webkit-scrollbar-track {
    background-color: #f0f0f0;
    border-radius: 10px;
}

.messages-title {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    color: #cc0000;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-item:hover {
    background-color: #f9f9f9;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #cc0000;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: bold;
    font-size: 16px;
    color: #cc0000;
}

.chat-preview {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
    font-size: 20px;
    color: #cc0000;
    background-color: white;
    z-index: 2;
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

#messagesThread {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
}

#messagesThread::-webkit-scrollbar {
    width: 8px;
}

#messagesThread::-webkit-scrollbar-thumb {
    background-color: #cc0000;
    border-radius: 10px;
}

#messagesThread::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

.messages-thread {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 10px 15px;
}

.message {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.sent {
    align-self: flex-end;
    background-color: #cc0000;
    color: white;
}

.message.received {
    align-self: flex-start;
    background-color: #f1f1f1;
    color: #333;
}

.reply-form {
    flex-shrink: 0;
    padding: 10px 15px;
    background-color: white;
    border-top: 1px solid #eee;
    z-index: 2;
}

#replyText {
    resize: none;
}

.message-time {
    font-size: 11px;
    color: black;
    margin-top: 4px;
    text-align: right;
}

.back-arrow {
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    text-decoration: none;
    color: red;
}

.icon {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0 10px;
    vertical-align: middle;
    transition: transform 0.2s ease-in-out, filter 0.2s ease-in-out;
}

.icon:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
}

.custom-alert {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.8);
    color: #a94442;
    font-size: 0.9rem;
    text-align: left;
    line-height: 1.5;
    border-radius: 5px;
}

.custom-alert:hover {
    background-color: rgba(220, 53, 69, 0.3);
    transition: background-color 0.2s ease-in-out;
}

.btn-red {
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-red:hover {
    background-color: #a30000;
}

.accordion-container {
    width: 99%;
    max-width: 600px;
    margin: auto;
}

.accordion-section {
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    background-color: #f5f5f5;
    cursor: pointer;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accordion-header:hover {
    background-color: #e9e9e9;
}

.accordion-title {
    color: black;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: bold;
}

.accordion-icon {
    width: 20px;
    height: 20px;
}

.accordion-arrow {
    color: black;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.accordion-arrow.rotate {
    color: #cc0000;
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 1px 1px;
    background-color: #fff;
    border-top: 1px solid #ccc;
}

.accordion-section.active .accordion-content {
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    height: 24px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    background: transparent;
    border: none;
    z-index: 2;
    margin-left: 10px;
    margin-right: 10px;
}

.carousel-icon-wrapper {
    background-color: red;
    border-radius: 50%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60% 60%;
    width: 24px;
    height: 24px;
}

.carousel:hover .custom-carousel-button {
    opacity: 1;
}

.custom-carousel-button {
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-index-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 10;
}

.resolution-toggle {
    position: absolute;
    bottom: 40px;
    right: 10px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    padding: 2px 6px;
    appearance: none;
    cursor: pointer;
}

.resolution-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.resolution-toggle-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 20px;
    cursor: pointer;
}

.resolution-toggle-select {
    margin-top: 4px;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    padding: 2px 6px;
}

.loader-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    pointer-events: all;
}

.loader-container {
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top-color: #cc0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}