/* ===== RESET & BASE ===== */
body {
  background-color: #c7eaf5;
  background-size: cover;
  color: #15141c;
  font-family: arial;
  font-size: 18px;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('bg.webp'); 
  background-attachment: fixed
}
img {
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}

.chat-badge-replacement {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #ff4444;
    color: white;
    font-size: 13px;
    font-weight: bold;
    display: flext;
    align-items: centert;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-family: arial, sans-serif;
    flex-shrink: 0;
    margin-right: 5px;
    margin-bottom: 3px;
}

/* ===== UTILITY BAR ===== */
.utility-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(0deg,rgba(10, 10, 10, 1) 50%, rgba(74, 74, 74, 1) 100%);;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 1001;
    box-sizing: border-box;
}

/* Top nav bar - also fixed */
.top-bar {
    position: fixed;
    top: 30px; /* Below utility bar */
    left: 0;
    width: 100%;
    background-color: #edeff4;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    box-sizing: border-box;
}

.utility-link {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: color 0.2s;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.utility-link:hover {
    text-decoration: underline !important;
    color: #ffffff !important;
}

.utility-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 0px;
}

/* Profile section - DESKTOP ONLY (visible) */
.utility-profile {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: #ffffff !important;
}

.utility-username {
    font-size: 14px;
    color: #ffffff;
}

.utility-avatar {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}

/* Logout - red, to the left of profile */
.utility-logout {
    margin-right:40px;
    color: #ff4444 !important;
}

.utility-logout:hover {
    color: #ff4444 !important;
    text-decoration: underline !important;
}

/* ============================================
   MASCOT
   ============================================ */

/* Mascot container - fixed position at bottom right */
.mascot-dummy {
    position: fixed;
    bottom: 0;
    right: 25%;
    transform: translateX(50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    width: 180px;
}

/* Mascot video itself */
.mascot-video {
    height: auto;
    width: 180px;
    pointer-events: none;
    user-select: none;
    position: relative;
    z-index: 2;
    /* Subtle shadow for depth */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

/* ============================================
   SPEECH BUBBLE
   ============================================ */

.m-speech-bubble {
    position: absolute;
    bottom: 270px; /* Sits above mascot */
    left: 50%;
    transform: translateX(50%);
    background: white;
    border: 3px solid #8FDADB;
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 220px;
    max-width: 300px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    font-size: 14px;
    line-height: 1.5;
    color: #15141c;
    animation: bubbleFloat 3s ease-in-out infinite;
    transform-origin: bottom center;
    /* Tail */    
}

/* Tail - points to mascot */
.m-speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid white;
    z-index: 1;
    filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.05));
}

/* Tail outline */
.m-speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 22px solid #8FDADB;
    z-index: 0;
}

/* Bubble sway animation */
@keyframes bubbleFloat {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(1.5deg); }
    75% { transform: translateX(-50%) rotate(-1.5deg); }
}

/* Bubble text */
.m-speech-text {
    padding-right: 24px; /* Space for close button */
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #15141c;
    word-wrap: break-word;
    white-space: pre-wrap;
}



/* ============================================
   BUBBLE BUTTONS
   ============================================ */

/* Close button - circle, absolute top right */
.m-bubble-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px solid #8FDADB;
    color: #8FDADB;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
}

.m-bubble-close:hover {
    background: #bef1fc;
    border-color: #6fc0c1;
    transform: scale(1.05);
}

/* Buttons row */
.m-speech-buttons-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 4px;
}

/* Speech buttons */
.m-speech-button {
    background: white;
    border: 2px solid #8FDADB;
    color: #15141c;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.m-speech-button:hover {
    background: #bef1fc;
    border-color: #6fc0c1;
    transform: translateY(-1px);
}

.m-speech-button:active {
    transform: translateY(0px);
}

/* ============================================
   BRICK THROW ANIMATION
   ============================================ */

.mascot-brick-hit {
    animation: brickHit 0.5s ease forwards;
}

@keyframes brickHit {
    0% { transform: translateX(0) scale(1) rotate(0deg); }
    30% { transform: translateX(-30px) scale(0.8) rotate(-15deg); }
    60% { transform: translateX(10px) scale(0.9) rotate(5deg); }
    100% { transform: translateX(0) scale(1) rotate(0deg); }
}

/* If mascot gets bricked and disappears */
.mascot-bricked {
    animation: brickFade 0.6s ease forwards;
}

@keyframes brickFade {
    0% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(20deg); opacity: 0.8; }
    100% { opacity: 0; transform: scale(0.5) rotate(40deg) translateY(40px); }
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #edeff4;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
  box-sizing: border-box;
}

body {
  padding-top: 70px;
}

#auth-buttons {
  display: flex;
  align-items: center;
}


/* ===== AUDIOS PAGE ===== */
.audios-container {
    margin-left: 0;
    width: 70%;
    max-width: 900px;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.audios-player {
    background: white;
    border: 4px solid #cccfe0;
    border-style: outset;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    margin-top: 60px;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    width: 110%;
}

.audios-tabs {
    display: flex;
    border-bottom: 4px solid #bccee2;
    background: rgb(188, 206, 226);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0; 
    position: absolute;
    top: -49px;
    height: 45px;
}

#library-view, #playlists-view {
    padding: 20px;
    flex: 1;
}


.audios-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
    border-right: 2px solid rgba(127, 129, 140, 0.3);
}

.audios-tab:hover {
    color: #15141c;
    background: rgba(255, 255, 255, 0.2);
}

.audios-tab.active {
    background: white;
    color: #15141c;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid white;
}

.audios-content {
    background: white;
    border: 4px solid #bccee2;
    border-radius: 12px;
    padding: 0;
    flex: 1;
    min-height: calc(100vh - 100px);
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 100px;
}

.audio-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}

.audio-item:hover {
    background: rgba(190, 241, 252, 0.2);
}

.audio-item.active {
    background: rgba(190, 241, 252, 0.4);
}

.audio-item .audio-index {
    width: 30px;
    color: #999;
    font-size: 13px;
    text-align: center;
}

.audio-item .audio-info {
    flex: 1;
    margin-left: 10px;
}

.audio-item .audio-name {
    font-weight: 500;
    font-size: 14px;
    color: #15141c;
}

.audio-item .audio-artist {
    font-size: 12px;
    color: #666;
}

.audio-item .audio-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.audio-item:hover .audio-actions {
    opacity: 1;
}

.audio-item .audio-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.audio-item .audio-actions button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.audio-item .audio-actions .remove-btn {
    color: #ff4444;
}

.audio-item .audio-actions .edit-btn {
    color: #4a8db7;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-btn {
    background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
    border: 2px solid #8FDADB;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.upload-btn:hover {
    background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
    transform: translateY(-1px);
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}

.playlist-item:hover {
    background: rgba(190, 241, 252, 0.2);
}

.playlist-item .playlist-info {
    flex: 1;
}

.playlist-item .playlist-name {
    font-weight: 500;
    font-size: 15px;
}

.playlist-item .playlist-count {
    font-size: 12px;
    color: #999;
}

.playlist-item .playlist-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.playlist-item:hover .playlist-actions {
    opacity: 1;
}

.playlist-item .playlist-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.playlist-item .playlist-actions button:hover {
    background: rgba(0, 0, 0, 0.1);
}

.playlist-item .playlist-actions .delete-btn {
    color: #ff4444;
}

/* Edit modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    border: 4px solid #cccfe0;
    border-style: outset;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
}

.modal-content h3 {
    margin-top: 0;
    color: #15141c;
}

.modal-content label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-top: 12px;
    margin-bottom: 4px;
}

.modal-content input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #bccee2;
    border-radius: 8px;
    background: #edeff4;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-content .modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.modal-content .modal-buttons button {
    padding: 8px 20px;
    border-radius: 8px;
    border: 2px solid #8FDADB;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.modal-content .modal-buttons .save-btn {
    background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
    border-color: #8FDADB;
}

.modal-content .modal-buttons .save-btn:hover {
    background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
}

.modal-content .modal-buttons .cancel-btn:hover {
    background: #f0f0f0;
}

.player-btn.active {
    background: rgba(190, 241, 252, 0.6);
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-btn.active img {
    filter: brightness(0.8);
}

/* Volume button states */
.player-btn.muted img {
    filter: grayscale(1) opacity(0.5);
}

.audios-player {
    background: white;
    border: 4px solid #cccfe0;
    border-style: outset;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    position: sticky;
    top: 100px;
    z-index: 50;    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.player-info {
    flex: 1;
    min-width: 150px;
}

.player-info .song-name {
    font-weight: bold;
    font-size: 32px;
    color: #15141c;
}

.player-info .song-artist {
    font-size: 16px;
    color: #666;
}

.player-buttons {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top:10px;
}

.player-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    background: rgba(190, 241, 252, 0.3);
}

.audio-item .audio-actions .download-btn {
    color: #4CAF50;
}

.audio-item .audio-actions .download-btn:hover {
    background: rgba(76, 175, 80, 0.1);
}

.player-btn:active {
    transform: scale(0.9);
}

.player-btn.play-btn {
    width: 48px;
    height: 48px;
}

.player-btn.play-btn:hover {
    background:none;
    transform:scale(1.05);
    filter: brightness(1.05)
}

.player-btn img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.player-btn.play-btn img {
    width: 32px;
    height: 32px;
}

.player-btn.active {
    background: rgba(190, 241, 252, 0.5);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-btn.muted img {
    filter: grayscale(1) opacity(0.5);
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-volume input[type="range"] {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: #d0d0d0;
    border-radius: 2px;
    outline: none;
}

.player-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8FDADB;
    cursor: pointer;
}

.player-volume input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8FDADB;
    cursor: pointer;
    border: none;
}

.player-progress {
    width: calc(100% - 22px);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #cccfe0;
}

.player-progress input[type="range"] {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #d0d0d0;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    /* For the filled part */
    background-image: linear-gradient(to right, #8FDADB, #8FDADB);
    background-size: 0% 100%;
    background-repeat: no-repeat;
}

.player-progress input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #d0d0d0;
    border-radius: 3px;
}

.player-progress input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8FDADB;
    cursor: pointer;
    margin-top: -5px;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.player-progress input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Firefox */
.player-progress input[type="range"]::-moz-range-track {
    height: 6px;
    background: #d0d0d0;
    border-radius: 3px;
    border: none;
}

.player-progress input[type="range"]::-moz-range-progress {
    height: 6px;
    background: #8FDADB;
    border-radius: 3px;
}

.player-progress input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8FDADB;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.player-time {
    font-size: 12px;
    color: #666;
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

.audios-bg-disc {
    position: fixed;
    left: -50px;
    top: -250px;
    width: 1200px;
    height: 1200px;
    z-index: -100;
    pointer-events: none;
    user-select: none;
    animation: spinDisc 4s linear infinite;
    animation-play-state: paused;
}

.audios-bg-disc.spinning {
    animation-play-state: running;
}

@keyframes spinDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#upload-area.hidden {
    display: none;
}












.notifications-panel {
    position: fixed;
    width: 380px;
    max-height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid rgb(120 174 184);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    top:60px;
    right:10px;
}

.notifications-panel.show {
    opacity: 1;
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: rgba(199, 234, 245, 0.9);
    border-radius: 8px 8px 0 0;
}

.notifications-header h3 {
    margin: 0;
    font-size: 16px;
    color: #02383e;
}

.notifications-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.notifications-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.notifications-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: 400px;
}

.notifications-loading,
.notifications-empty,
.notifications-error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

.notifications-date-group {
    margin-bottom: 8px;
}

.notifications-date-header {
    padding: 8px 16px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
}

.notification-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 12px 16px 12px 60px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.notification-item:hover {
    background: rgba(199, 234, 245, 0.3);
}

.notification-read-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 11px;
    color: #4caf50;
    border-radius: 4px;
    transition: background 0.2s;
}

.notification-read-btn:hover {
    background: rgba(76, 175, 80, 0.1);
}

.notification-avatar {
    position: absolute;
    left: 16px;
    top: 12px;
    width: 32px;
    height: 32px;
}

.notif-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #a6d4dc;
}

.notif-avatar-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.notif-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
}

.notification-content {
    flex: 1;
    margin-right: 12px;
}

.notification-text {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-preview {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #a6d4dc;
}

.notification-time {
    font-size: 10px;
    color: #999;
    margin-top: 6px;
}

.notification-action-bottom {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.notification-action-btn {
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    transition: all 0.2s;
    background: white;
}

.notification-action-btn:hover {
    background: #f0f0f0;
}

.notification-action-btn.accept-request {
    color: #4caf50;
    border-color: #4caf50;
}

.notification-action-btn.accept-request:hover {
    background: #4caf50;
    color: white;
}

.notification-action-btn.reject-request {
    color: #f44336;
    border-color: #f44336;
}

.notification-action-btn.reject-request:hover {
    background: #f44336;
    color: white;
}

.notifications-footer {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.notifications-mark-all-btn,
.notifications-refresh-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.notifications-mark-all-btn:hover {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.notifications-refresh-btn:hover {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

.notifications-content::-webkit-scrollbar {
    width: 6px;
}

.notifications-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.notifications-content::-webkit-scrollbar-thumb {
    background: #a6d4dc;
    border-radius: 3px;
}

.notifications-content::-webkit-scrollbar-thumb:hover {
    background: #02383e;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.logout-btn {
  background-color: #bef1fc;
  font-size: 16px;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 8px;
  width: auto;
  display: inline-block;
  transition: background-color 0.2s;
}

.logout-btn:hover {
  background-color: #9fd9e8;
}

/* ===== MAIN FEED CONTAINER ===== */
.feedmain {
  border-width: 4px;
  border-color: #bccee2;
  border-style: solid;
  border-radius: 12px;
  width: 50%;
  max-width: 1240px;
  min-width:680px;
  flex: 1;
  margin-left: 0;
  background-color: #edeff4;
  box-sizing: border-box;
  word-wrap: normal;
  position: relative;
  margin-top: 32px;
}
.chat-preview-image {
max-height:150px;
max-width:150px;
}
.chat-preview-video {
max-height:150px;
max-width:150px;
}
.feed-tabs {
    display: flex;
    margin:0;
    top:-4px;
    position:relative;
    height:51px;
    border-bottom: 4px solid rgb(127,129,140);
    padding-bottom: 0;
    background: rgb(188, 206, 226);
    justify-content:center;
    filter: drop-shadow(-5px 8px 8px rgba(0, 10, 90, 0.2));
}

.tab-btn {
    background: white;
    border: none;
    height:55px;
    padding: 0;
    width: 120px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-color: rgb(127, 129, 140);
    border-width: 4px 2px;
    border-style: solid;
    /*border-bottom-style: none;*/
    /*border-radius: 0 0 12px 12px;*/
    /*height: 45px;*/
}

.tab-btn:hover {
    background-color: rgba(190, 241, 252, 0.3);
    color: #15141c;
}

.tab-btn.active {
    font-weight: bold;
    
    
    position: relative;
    background-color: rgba(237, 239, 244, 1);
    /*top: 10px;
    height: 45px;
    transition: left 1s linear;
    border-radius: 8px 8px 0 0;
    border-top-style: none;*/
}

/* ===== POST STYLES ===== */
.post {
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  border-color: #cccfe0;
  border-width: 2px;
  border-style: outset;
  border-radius: 12px;
  width:100%;
  min-width:670px;
  min-height: 100px;
  height: auto;
  background-color: #ffffff;
  margin-left: 50px;
  margin-top: 60px;
  padding: 25px;
  padding-top: 35px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 0;
  padding-right: 0;
}

/* ===== POST AUTHOR HEADER ===== */
.post-author {
  position: absolute;
  top: -5px;
  left: 25px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  z-index: 10;
  filter: drop-shadow(-5px 8px 8px rgba(0, 0, 0, 0.15));
}

/* Post author section */
.post-author {
  position: absolute;
    top: 0px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-left: 0px;
    height: 67px;
    padding-top: 0px;
    left: 0;
    border-bottom-style: solid;
    background: linear-gradient(90deg, rgba(223, 238, 246, 1) 0%, rgba(150, 214, 246, 1) 100%);
    margin-bottom: 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-color: #BCCEE2;
    border-width: 4px;
    z-index: 10;
    width: 100%;
    filter: drop-shadow(-5px 8px 8px rgba(0, 0, 0, 0.15));
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.community-author-avatar {
    margin-left: 25px;
    top: -18px;
    width: 84px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}
.author-avatar {
    margin-left: 25px;
    top: -15px;
    width: 78px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}
.post-author .community-author-avatar + .author-avatar {
    margin-left: 0px;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-top:30px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.author-info.community {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: -20px;
    position: relative;
}

.author-name {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 24px;
  line-height: 1.2;
  display: inline-block;
  text-shadow: 
    2px 2px 3px rgba(255, 255, 255, 0.8),
    1px 1px 2px rgba(0, 0, 0, 0.1);
}

.community-author-name {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 32px;
  line-height: 1.2;
  display: inline-block;
  margin-left:-60px;
  text-shadow: 
    2px 2px 3px rgba(255, 255, 255, 1), 3px 3px 3px rgba(0, 0, 0, 0.2)
}

.community-author-name-alone {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 32px;
  line-height: 1.2;
  display: inline-block;
  text-shadow: 
    2px 2px 3px rgba(255, 255, 255, 1), 3px 3px 3px rgba(0, 0, 0, 0.2)
}

.author-name:hover {
  text-decoration: underline;
  color: #2c5282;
}

.community-author-name:hover {
  text-decoration: underline;
  color: #2c5282;
}

.community-author-name-alone:hover {
  text-decoration: underline;
  color: #2c5282;
}
.author-timestamp {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.9;
  text-decoration: none;
}
.author-timestamp:hover {
  text-decoration: underline;
}


/* ===== POST CONTENT ROW ===== */

.post-image {
  max-width: 300px;
  max-height: 300px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}

.post-image:hover {
  opacity: 0.9;
}

.post-text {
  white-space: pre-wrap;
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  word-wrap: break-word;
}

/* ===== POST BOTTOM ROW ===== */
.post-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
    margin-top: 15px;
    background: linear-gradient(90deg, rgba(223, 238, 246, 1) 0%, rgba(150, 214, 246, 1) 100%);
    /*padding: 10px 20px;*/
    border: 2px solid #bccee2;
    border-width: 2px 0 2px 0;
}

.spoiler-contents {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.spoiler-text {
    padding: 10px;
    background: rgba(243 249 255 / 80%);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 24px;
    max-width: 70%;
    text-align: center;
}

.nsfw-text {
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px;
    background: none;
    border-style: solid;
    border-color: #e85f5f;
    font-size: 24px;
    border-width: 2px;
    color: #e85f5f;
}

.nsfw-text-secondary {
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 6px;
    background: none;
    border-style: solid;
    border-color: #e85f5f;
    font-size: 16px;
    border-width: 2px;
    color: #e85f5f;
}

.spoiler-open {
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: #efefef;
}

.spoiler-open:hover {
    transform: scale(1.1);
    background: #e7e7e7;
}

.spoiler-plaque:hover {
    filter: brightness(105%);
}

.post-interactions {
   padding: 5px;
   margin-right:10px;
   border-radius:6px;
   background: rgba(255,255,255, 0);
   transition: background 0.2s ease;
   position: absolute;
   right:0;
}

.post-interactions:hover {
   background: #e1ebf3;
   cursor:pointer;
}

.author-author-section {
  display:flex;
  flex-direction: row;
  gap:10px;
}

.post-left-section {
  display: flex;
  align-items: center;
  /*gap: 8px;*/
  flex-wrap: wrap;
  height:42px;
}

.post-right-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== LIKE BUTTON ===== */
.like-button {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  font-size: 16px;
  border-style: none;
  cursor: pointer;
  min-width: 80px;
  transition: all 0.2s ease;
  color: #15141c;
  width: auto !important;
  margin: 0;
  height:100%;
  transition: all 0.2s ease;
}

.like-button:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
}

.like-button:active {
  background: linear-gradient(208deg, rgba(150, 201, 222, 1) 0%, rgba(150, 222, 198, 1) 100%);
  box-shadow: none;
}

.like-button.liked {
  background: linear-gradient(208deg, rgb(128 196 225) 0%, rgb(108 199 169) 100%);
  border-color: #6fc0c1;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.like-button.liked:hover {
  background: linear-gradient(208deg, rgba(140, 191, 212, 1) 0%, rgba(140, 212, 188, 1) 100%);
}

.dislike-button {
  background: linear-gradient(208deg, rgba(132, 123, 232, 0.5) 0%, rgba(190, 199, 255, 0.5) 100%);
  font-size: 16px;
  border-style: none;
  cursor: pointer;
  min-width: 80px;
  transition: all 0.2s ease;
  color: #15141c;
  width: auto;
  margin: 0;
  height:100%;
  border-width:2px;
  border-right-style:solid;
  border-color: #bccee2;
  transition: all 0.2s ease;
}

.dislike-button:hover {
  background: linear-gradient(208deg, rgb(92 83 195 / 50%) 0%, rgb(90 109 227 / 50%) 100%);
}

.dislike-button:active {
  background: linear-gradient(208deg, rgb(60 51 157 / 50%) 0%, rgb(55 71 169 / 50%) 100%);
  box-shadow: none;
}

.dislike-button.disliked {
  background: linear-gradient(208deg, rgb(69 56 215 / 50%) 0%, rgb(25 40 135 / 50%) 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dislike-button.liked:hover {
  background: linear-gradient(208deg, rgba(140, 191, 212, 1) 0%, rgba(140, 212, 188, 1) 100%);
}


.like-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    /* padding: 4px 8px; */
    height: 100%;
    /* border: 2px solid #8FDADB; */
    border-width: 0px 2px 0px 2px;
    border-color: #bccee2;
    border-style: solid;
    font-size: 16px;
    font-weight: normal;
    background-color: white;
    color: #15141c;
    transition: all 0.2s ease;
}

.like-button.liked + .like-counter {
  border-color: #6fc0c1;
  background-color: #f5f5f5;
}

/* ===== COMMENT COUNT ===== */
.comment-count-text {
  margin-left: 15px;
  font-size: 14px;
  color: #666;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== DELETE/EDIT BUTTONS ===== */
.delete-btn {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  font-size: 16px;
  border-style: solid;
  border-width: 2px;
  border-color: #8FDADB;
  padding: 6px 15px;
  cursor: pointer;
  border-radius: 8px;
  min-width: 80px;
  transition: all 0.2s ease;
}

.delete-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
}

.delete-btn:active {
  background: linear-gradient(208deg, rgba(150, 201, 222, 1) 0%, rgba(150, 222, 198, 1) 100%);
}

/* ===== POST CREATOR SECTION ===== */
#new-post-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-left: 50px;
  width: calc(100% - 50px);
}

.post-creator-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
  width: 100%;
  align-items: stretch;
}

.content-row-container {
    margin-top: 65px;
    margin-bottom: 15px;
}

.spoiler-plaque {
    width:100%;
    height:100%;
    pointer-events: none;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.spoiler-plaque * {
    pointer-events: none;
}

.spoiler-plaque button {
    pointer-events: auto;
}

.spoiler-content {
filter: blur(1.5rem);
height: 200px;
  overflow: hidden;
}

#post-input {
  flex: 3;
  min-width: 0;
  padding: 12px;
  font-size: 18px;
  border: 2px solid #bccee2;
  border-radius: 8px;
  background-color: #edeff4;
  resize: none;
}

.post-buttons {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 120px;
}

.post-dropdown {
  position: absolute;
  top: 40px;
  right: -150px;
  margin-top: 8px;
  min-width: 180px;
  background-color: white;
  border: 2px solid #8FDADB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 10, 90, 0.2);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.author-name-user {
  text-decoration:none;
    font-weight: bold;
  color:#15141c;
}

.author-name-user:hover {
  text-decoration:underline;
    font-weight: bold;
  color: #2c5282;
}

.postbutton {
  background-color: #bef1fc;
  font-size: 18px;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.postbutton:hover {
  background-color: #9fd9e8;
}

.postbutton:active {
  background-color: #7479a1;
}

/* File input styling */
#image-input {
  color: transparent;
  padding: 12px 15px;
  background-color: #bef1fc;
  border-radius: 8px;
  cursor: pointer;
}

#image-input::file-selector-button {
  background-color: #bef1fc;
  font-size: 18px;
  border: none;
  padding: 0;
  margin-right: 10px;
  cursor: pointer;
  color: black;
  background: none;
  font-family: inherit;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
  //margin-top: 20px;
  padding-top: 15px;
  //border-top: 1px solid rgba(190, 241, 252, 0.3);
    margin-right:20px;
    margin-left:20px;
}

/* Comment input area */
.comment-input-area {
    background: linear-gradient(90deg, rgb(223 238 246 / 50%) 0%, rgb(150 214 246 / 50%) 100%); 
    border-radius: 10px;
    padding: 10px;
    border-color: #cccfe0;
    width: 100%;
    box-sizing: border-box;
    border-width: 2px;
    border-style: outset; 
    border-radius: 10px;
    display: flex;
    gap: 15px;
    margin-top: -15px;
    border-top-width: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 10px 15px;
}

.comment-input-avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;  /* Rounded squares! */
  object-fit: cover;
  flex-shrink: 0;
}

.comment-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #bccee2;
  border-radius: 8px;
  background: #edeff4;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
  width: 70%
}

.comment-input:focus {
  outline: none;
  border-color: #bef1fc;
}

.comment-button {
  width: auto !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  align-self: flex-end;
}

/* Comments list */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
    margin-top: 15px;
}

/* Individual comment */
.comment-item {
  background: rgba(237, 239, 244, 0.5);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}



.comment-author {
  color: #2c5282;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.comment-author:hover {
  text-decoration: underline;
}

.comment-time {
  color: #666;
  font-size: 10px;
  white-space: nowrap;
}

.comment-content {
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  margin-bottom: 8px;
  padding-left: 32px;
}

/* Comment footer - like button at bottom right */
.comment-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.comment-like-btn {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  font-size: 14px;
  border: 2px solid #8FDADB;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 8px;
  min-width: 50px;
  max-width: 50px;
  transition: all 0.2s ease;
  color: #15141c;
}

.comment-like-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-1px);
}

.comment-like-btn.liked {
  background: linear-gradient(208deg, rgba(150, 201, 222, 1) 0%, rgba(150, 222, 198, 1) 100%);
  border-color: #6fc0c1;
}

.comment-like-counter {
  font-size: 14px;
  color: #666;
  min-width: 16px;
  border: 1px solid #8FDADB;
  border-radius: 4px;
  text-align: center;
  padding: 2px 6px;
    background: white;
}

.show-all-comments-container {
  margin-top: 10px;
  text-align: right;
}

.comments-divider {
  border: none;
  border-top: 1px solid #bccee2;
  margin: 10px 0;
  width: 100%;
}

.show-all-comments-btn {
  background: none;
  border: none;
  color: #2c5282;
  font-size: 13px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.show-all-comments-btn:hover {
  background-color: rgba(190, 241, 252, 0.3);
  text-decoration: underline;
}

/* Hidden comments container */
.hidden-comments {
  margin-top: 10px;
}

/* Make textarea non-resizable */
.comment-input {
  resize: none !important;
    width: 100%;
    box-sizing: border-box;
}
.show-all-comments-container {
  margin: 0px;
  width: 100%;
}

.line-with-button {
  position: relative;
  width: 100%;
  height: 20px;
  border-bottom: 1px solid #bccee2;
  text-align: center;
  margin: 10px 0;
}

.show-all-comments-btn {
  position: relative;
  background-color: #edeff4; /* Match your feed background */
  border: 1px solid #bccee2;
  border-radius: 8px;
  color: #2c5282;
  font-size: 13px;
  padding: 5px 15px;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
  transition: all 0.2s;
}

.show-all-comments-btn:hover {
  background-color: #bef1fc;
  border-color: #8FDADB;
  transform: scale(1.02);
}

/* Hidden comments container */
.hidden-comments {
  margin-top: 10px;
}

/* ===== EDIT MODE STYLES ===== */
.edit-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  align-items: flex-start;
}

.edit-text-editor {
  flex: 2;
  min-width: 0;
  resize: none;
  min-height: 80%;
  font-size: 18px;
  background-color: #edeff4;
  padding: 12px;
  border: 2px solid #bccee2;
  border-radius: 8px;
}

.edit-post-image {
  flex: 1;
  max-width: 300px;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.2s;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

#lightbox-close:hover {
  color: #ff4444;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== FRUTIGER AERO BORDER ===== */
.frutiger-aero-border {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 0 0 2px rgba(190, 241, 252, 0.6),
    0 8px 16px -6px rgba(0, 0, 0, 0.3),
    inset 0 -3px 8px rgba(255, 255, 255, 0.8),
    inset 0 3px 8px rgba(255, 255, 255, 0.8);
  border-radius: 12px;
}

.frutiger-aero-border::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 8%;
  width: 30%;
  height: 30%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-15deg);
}

/* ===== RESPONSIVE ===== */


/* ===== NAVIGATION UPDATES ===== */
.nav-left-links {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: auto;  /* Pushes everything else to the right */
}

.nav-link:hover {
  background-color: rgba(190, 241, 252, 0.5);
  text-decoration: none;
}

.chats-toggle-btn {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  border: 2px solid #8FDADB;
  font-size: 16px;
  padding: 6px 15px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  color: #15141c;
}

.chats-toggle-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-1px);
}

.nav-user-section {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.nav-user-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #15141c;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.nav-user-link:hover {
  background-color: rgba(190, 241, 252, 0.5);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;  /* Rounded square */
  object-fit: cover;
}

.nav-username {
  font-weight: 600;
  font-size: 16px;
}

/* ===== CHATS PANEL ===== */
.chats-panel {
  position: fixed;
  right: 5%; 
  top: 90px;
  width: 40%;  
  max-width: 550px;  
  height: auto;
  max-height: calc(100vh - 100px); 
  background-color: #edeff4;
  border: 4px solid #bccee2;
  border-style: outset;
  border-radius: 12px;
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  display: none;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
  transition: all 0.2s ease;
}

.chats-panel.open {
  display: flex;
}

/* Friends list view */
.chats-friends-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  margin-bottom:0;
  padding-bottom:0;
}

.chats-header {
  padding: 15px;
  border-bottom: 2px solid #bccee2;
  background: linear-gradient(208deg, rgba(190, 241, 252, 0.3) 0%, rgba(190, 252, 228, 0.3) 100%);
  flex-shrink: 0;
}

.chats-header h3 {
  margin: 0;
  color: #15141c;
  font-size: 18px;
}

.friends-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  min-height: 0;  /* Важно для правильного скролла */
}

.friend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 5px;
  background-color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.friend-item:hover {
  border-color: #8FDADB;
  transform: translateX(-2px);
  box-shadow: 2px 4px 8px rgba(0, 10, 90, 0.1);
}

.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.friend-info {
  flex: 1;
  overflow: hidden;  /* Для обрезания длинных имён */
}

.friend-name {
  font-weight: 600;
  font-size: 16px;
  color: #15141c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.friend-preview {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chat view - expanded */
.chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-bottom: 2px solid #bccee2;
  background: linear-gradient(208deg, rgba(190, 241, 252, 0.3) 0%, rgba(190, 252, 228, 0.3) 100%);
  flex-shrink: 0;
}

.back-to-friends {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #15141c;
  padding: 0 10px;
  line-height: 1;
}

.back-to-friends:hover {
  color: #2c5282;
  transform: scale(1.1);
}

.chat-friend-info {
  display: flex;
  align-items: center;
  gap: 15px;  /* Больше gap */
  flex: 1;
}

.chat-friend-avatar {
  width: 60px;  /* Больше аватарка */
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.chat-friend-name {
  font-weight: bold;
  font-size: 20px;
  color: #15141c;
}

.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  min-height: 0;  /* Важно для скролла */
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 2px solid #bccee2;
  background-color: white;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 10px;
  border: 2px solid #bccee2;
  border-radius: 8px;
  font-size: 14px;
  resize: none;
  font-family: inherit;
}

.chat-input:focus {
  outline: none;
  border-color: #8FDADB;
}

.chat-send-btn {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  border: 2px solid #8FDADB;
  font-size: 14px;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  align-self: flex-end;
}

.chat-send-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-1px);
}

/* Empty state */
.no-friends-message {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

@media (max-width: 1200px) {
  .feedmain {
    margin-right: 0;  /* On smaller screens, chats panel might cover feed */
  }
}

/* ===== USER MENU DROPDOWN ===== */
.user-menu-container {
  position: relative;
  display: none;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.user-menu-trigger:hover {
  background-color: rgba(190, 241, 252, 0.5);
}

.dropdown-arrow {
  font-size: 12px;
  color: #666;
  margin-left: 2px;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 10px;
  margin-top: 8px;
  min-width: 180px;
  background-color: white;
  border: 2px solid #8FDADB;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 10, 90, 0.2);
  display: none;
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #15141c;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: rgba(190, 241, 252, 0.5);
}

.logout-item {
  color: #ff4444;
}

.logout-item:hover {
  background-color: #fff0f0;
}

.dropdown-divider {
  height: 1px;
  background-color: #e0e4e9;
  margin: 4px 0;
}

/* ===== FRIENDS PAGE STYLES ===== */
.friends-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.friend-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: white;
  border: 4px solid #cccfe0;
  border-style: outset;
  border-radius: 12px;
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  transition: all 0.2s ease;
}

.friend-card:hover {
  transform: translateX(-2px);
  box-shadow: 8px 12px 12px -5px rgba(0, 10, 90, 0.4);
}

.friend-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.friend-card-info {
  flex: 1;
  margin-top:0;
  display: block;
  gap: 4px;
}

.friend-card-name {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.chat-card-name {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.friend-card-name:hover {
  text-decoration: underline;
  color: #2c5282;
}

.friend-card-status {
  font-size: 12px;
  color: #4CAF50;
}

.friend-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.friend-card-type {
    font-size: 12px;
    color: #8891A8;
}

.friend-card-subcount {
    font-size: 12px;
    color: #1CA67E;
}

.friend-card-btn {
  background:  linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  border: 2px solid #8FDADB;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 100px;
}

.promote-btn {
  background: #edeff4;
  border: 1px solid #bccee2;
  font-size: 12px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 80px;
}

.friend-card-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-1px);
}

.accept-btn {
  background: linear-gradient(208deg,rgba(150, 242, 192, 1) 0%, rgba(141, 235, 144, 1) 100%);
  border-color: #65B57E;
  color: white;
}

.reject-btn {
  background: linear-gradient(208deg,rgba(242, 150, 202, 1) 0%, rgba(149, 141, 235, 1) 100%);
  border-color: #6C65B5;
  color: white;
}

/* Панель чатов */
.chats-panel {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 350px;
  max-height: 80vh;
  background: white;
  border: 4px solid #cccfe0;
  border-style: outset;
  border-radius: 12px;
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  display: none;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
}

.chats-panel.open {
  display: flex;
}

/* Список чатов */
.chats-list {
  overflow-y: auto;
  
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #e0e4e9;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-item:hover {
  background: rgba(190, 241, 252, 0.3);
}

.chat-item-avatar {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
}

.chat-item-info {
  flex: 1;
  display:flex;
  flex-direction: column;
}

.chat-item-name {
  font-weight: bold;
  margin-bottom: 4px;
}

.chat-item-preview {
  font-size: 13px;
  color: #666;
}

.chat-item-time {
  font-size: 11px;
  color: #999;
}

/* Окно чата */
.chat-view {
  display: flex;
  flex-direction: column;
  height: 70vh;
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 2px solid #bccee2;
  background: #f5f5f5;
}

.back-to-chats {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
}

.chat-with-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-with-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}


/* Контейнер сообщений */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f9f9f9;
}

.message {
  
  max-width: 70%;
  padding: 10px;
  border-radius: 8px;
  position: relative;
}
/* ===== CHAT PANEL ===== */
.chats-panel {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 40%;  /* 40% of screen width */
  min-width: 400px;  /* Minimum width */
  max-width: 600px;  /* Maximum width */
  height: calc(100vh - 100px);
  background: white;
  border: 4px solid #a3a5b7;
  border-style: outset;
  border-radius: 12px;
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  display: none;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
}

.chats-panel.open {
  display: flex;
}

/* Chat view takes full height */
.chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Messages container - takes all available space */
.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f9f9f9;
  min-height: 0;  /* Important for flex scrolling */
}

/* Message bubbles */
.message {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 12px;
  position: relative;
  word-wrap: break-word;
}

/* Your messages - on the right, teal color */
.message-mine {
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  align-self: flex-end;
  background: #bef1fc;  /* Your teal color */
  border: 2px solid #4d8e9c;
  border-bottom-right-radius: 4px;
  margin-left: auto;
  transition: transform 0.3s ease 0s;
}

.message-reply {
  box-shadow: 5px 3px 3px -5px rgba(0, 10, 90, 0.2);
  align-self: flex-end;
  background: #9AD1F5;
  border: none;
  margin-left: auto;
  transition: transform 0.3s ease 0s;
  padding: 4px;
  font-size:14px;
  border-radius: 8px;
}

.message-reply:empty {
  display:none;
}

/* Their messages - on the left, light gray */
.message-theirs {
  box-shadow: 5px 10px 10px -5px rgba(10, 80, 30, 0.4);
  align-self: flex-start;
  background: #befcdb;
  border: 2px solid #67af88;
  border-bottom-left-radius: 4px;
  margin-right: auto;
  transition: transform 0.3s ease 0s;
}

.message-text {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.message-time {
  font-size: 10px;
  color: #666;
  text-align: right;
  opacity: 0.8;
}

/* Message input area - fixed at bottom */
.message-input-area {
  display: flex;
  gap: 10px;
  padding: 15px;
  border-top: 2px solid #bccee2;
  background: white;
  flex-shrink: 0;  /* Prevents shrinking */
  align-items: flex-end;
}

/* Textarea styling - fixed size, no resize */
.message-input-area textarea {
  flex: 1;
  padding: 10px;
  border: 2px solid #bccee2;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: none;  /* No resizing */
  height: 60px;  /* Fixed height */
  min-height: 60px;
  max-height: 60px;
  background: #f5f5f5;
}

.message-input-area textarea:focus {
  outline: none;
  border-color: #8FDADB;
  background: white;
}

/* Send button */
.message-input-area button {
  background: #bef1fc;
  border: 2px solid #8FDADB;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  height: 30px;  /* Match textarea height */
  width: 80px;
  margin-left:0;
  padding-left:5px;
  transition: all 0.2s;
  text-align:left;
}

.message-input-area button:hover {
  background: #9fd9e8;
  transform: translateY(-1px);
}

/* Chat list item */
.chat-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #e0e4e9;
  cursor: pointer;
  transition: background 0.2s;
}

.chat-item:hover {
  background: rgba(190, 241, 252, 0.3);
}

.chat-item-avatar {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
}

.chat-item-info {
  flex: 1;
  min-width: 0;  /* For text truncation */
}

.chat-item-notification {
border-radius:8px;
background:#bef1fc; 
width:16px;height:16px;
font-size:12px; 
text-align: center; 
margin:auto; 
margin-left:10px;
}

.chat-item-notification:empty {
display:none;
}

/* Reply indicator in input area */
.reply-indicator-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    border-left: 3px solid #8FDADB;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 13px;
}

.reply-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reply-arrow {
    font-size: 16px;
    color: #8FDADB;
}

.reply-label {
    color: #666;
    font-weight: normal;
}

.reply-preview {
    color: #333;
    font-style: italic;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cancel-reply {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    padding: 0 8px;
}

.cancel-reply:hover {
    color: #ff4444;
}

/* Reply preview inside message */
.message-reply-preview {
    padding: 6px 10px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.04);
    border-left: 3px solid #8FDADB;
    border-radius: 6px;
    font-size: 12px;
}

.reply-indicator {
    font-size: 11px;
    color: #8FDADB;
    margin-bottom: 4px;
}

.reply-text {
    color: #666;
    font-style: italic;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Message wrapper for click detection */
.message-wrapper {
    width: 100%;
}

.message-wrapper:hover {
    background:rgb(254 254 255 / 42%);
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

.message-wrapper.unread:hover {
    background: rgb(214 230 247 / 42%);
    transition: filter 0.3s ease;
}



.message-wrapper:hover .message-bubble {
    transform: translateY(-3px);
    transition: transform 0.3s ease;
}

.message-mine:hover {
    background: #E3FAFF;
    border-color: #65B8C9;
}

.message-theirs:hover {
    background: #D6FFEB;
    border-color: #77C99D;
}

.reply-indicator-container {
    padding: 0 15px;
    margin-top: 5px;
}

.reply-indicator-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f5f5f5;
    border-left: 3px solid #8FDADB;
    border-radius: 8px;
    font-size: 13px;
}

.reply-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reply-arrow {
    font-size: 16px;
    color: #8FDADB;
}

.reply-label {
    color: #666;
    font-weight: normal;
}

.reply-preview {
    color: #333;
    font-style: italic;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cancel-reply {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    padding: 0 8px;
}

.cancel-reply:hover {
    color: #ff4444;
}

.message-theirs:hover {
background:#D6FFEB;
border-color:#77C99D;
transform: translateY(-2px);
}
.message-mine:hover {
background:#E3FAFF;
border-color: #65B8C9;
transform: translateY(-2px);
}

.chat-item-name {
  font-weight: bold;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display:flex;
  
}

.chat-item-preview {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-item-time {
  font-size: 11px;
  color: #999;
  margin-left: 8px;
  white-space: nowrap;
}

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 4px solid #bccee2;
  background: #99effe;
  flex-shrink: 0;
}

.back-to-chats {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-right: 15px;
  padding: 0 5px;
  color: #15141c;
}

.back-to-chats:hover {
  color: #2c5282;
}

.message-select-area {
display: flex;
    flex-direction: column;
width:100%;
}

.chat-with-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-with-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.chat-with-name {
  font-weight: bold;
  font-size: 24px;
  color:black;
  text-decoration:none;
}


/* No messages placeholder */
.no-messages {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
}

/* No chats message */
.no-chats-message {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

/* Notification badges */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background-color: #4CAF50;
  color: white;
  font-size: 11px;
  font-weight: bold;
  border-radius: 10px;
  margin-left: 5px;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* For the chats toggle button */
#chats-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#chats-toggle .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  margin-left: 0;
}

/* For the friends link */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  background-color:#bfe0f0;
  border-color:#8cb9df;
  border-style:solid;
  border-width:2px;
  text-shadow: 1px 2px 5px #a1abbc;
  padding-top:2px;
  padding-bottom:2px;
    background: linear-gradient(360deg, rgb(109 195 255) 0%, rgb(154 255 216) 100%);
    border: solid #cafeff;
    border-width: 2px 0 0 2px;
    outline: 1px solid #6c8abe;
    font-size: 16px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #ffffff;
    text-shadow: 1px 1px 3px #071e47;
    text-decoration:none;
    height: 25px;
    box-shadow: -2px -2px 4px #615b85, 2px 2px 4px white;
  transition: all 0.2s ease;
}

.nav-link:hover {
	background: linear-gradient(360deg, rgb(71 148 202) 0%, rgb(118 204 171) 100%);
    border-color: rgb(118 204 171);
}

.profile-subscriptions-container > label {
    flex: 1;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.sub-sub-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    margin-top: 5px;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 8px;
    justify-items: center;
    align-items: center;
    width: fit-content;
}

.sub-sub-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
    width: 80px;
    justify-self: center;
    text-decoration:none;
    color:black;
    padding-top:5px;
    padding-bottom:5px;
}

.sub-sub-item:hover {
    filter:brightness(1.2);
    transform: translateY(-2px) scale(1.05);
}

.sub-sub-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 3px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.sub-sub-name {
    font-size: 11px;
    font-weight: normal;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.sub-sub-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.sub-sub-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: normal;
    font-size: 13px;
}

.sub-sub-empty-slot {
    visibility: hidden;
}

.user-notifs {
  margin-right:5px;
  position: relative;
  display: inline-flex;
  align-items: center;
  background-color:#f5eecb;
  border-color: #dfbb8c;
  border-style:solid;
  border-width:2px;
  text-shadow: 1px 2px 5px #a1abbc;
  padding-top:2px;
  padding-bottom:2px;
  border-radius: 8px;
  filter: grayscale(0.8);
  transition: filter 0.2s ease, scale 0.2s ease;
}

.user-notifs.has-notifications {
    filter: grayscale(0);
}

.user-notifs:hover {
  scale: 1.07;
  cursor:pointer;
  filter: grayscale(0);
}

.nav-link .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Comment input with attachment preview */
.comment-input-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-preview-container {
  position: relative;
  padding: 8px;
  background: #f0f0f0;
  border: 2px solid #bccee2;
  border-radius: 8px;
  margin-bottom: 8px;
}

.comment-preview-content {
  max-height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-preview-image {
  max-height: 100px;
  max-width: 100%;
  object-fit: contain;
}

.comment-preview-video {
  max-height: 100px;
  max-width: 100%;
}

.comment-preview-audio {
  width: 100%;
}

.comment-preview-filename {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  text-align: center;
}

.comment-preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #ff4444;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
}

.comment-preview-remove:hover {
  background: #cc0000;
}

.comment-buttons {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.comment-attach-btn {
  background: none;
  border: 2px solid #8FDADB;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.community-layout {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 80px;
    position: relative;
    align-items: flex-start;
    justify-content: flex-start; /* Don't spread, keep left */
}

.community-main {
    flex: 0 0 auto;  
    width: 50%; 
    min-width: 0;
}

.community-rules-container {
    flex: 0 0 auto;  /* Don't grow/shrink */
    width: 300px;    /* Fixed width */
    margin-left: 30px; /* 30px gap after main */
    top: 100px;
    height: fit-content;
    align-self: flex-start;
}

        
        .rules-box {
            background: white;
            border: 4px solid #cccfe0;
            border-style: outset;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
        }
        
        .rules-box h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #15141c;
            border-bottom: 2px solid #bccee2;
            padding-bottom: 10px;
        }
        
        .rules-list {
            list-style-type: none;
            padding: 0;
            margin: 0;
    white-space: pre-wrap;
        }
        
        .rules-list li {
            padding: 8px 0;
            border-bottom: 1px solid #e0e4e9;
            font-size: 14px;
            line-height: 1.4;
        }
        
        .rules-list li:last-child {
            border-bottom: none;
        }
        
        .rules-list li::before {
            margin-right: 8px;
            opacity: 0.7;
        }
        
        .description-box {
            background: rgba(237, 239, 244, 0.5);
            border: 2px solid #bccee2;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            font-size: 16px;
            line-height: 1.5;
        }
        
        /* Anonymous toggle styling */
        .anonymous-toggle {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
            padding: 5px 10px;
            background: rgba(190, 241, 252, 0.2);
            border-radius: 8px;
        }
        
        .anonymous-checkbox {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }
        
        .anonymous-label {
            font-size: 14px;
            color: #666;
            cursor: pointer;
        }
        
        /* Stats styling */
        .community-stats {
            display: flex;
            gap: 30px;

    justify-content: space-around;
            margin-top: 20px;
            padding-top: 20px;
            border-top: 2px solid #bccee2;
        }
        
        .stat {
            text-align: center;
        }
        
        .stat-value {
            display: block;
            font-size: 24px;
            font-weight: bold;
            color: #15141c;
        }
        
        .stat-label {
            font-size: 14px;
            color: #666;
        }

.comment-attach-btn:hover {
  background: #bef1fc;
}

.profile-info {
position:relative;
top:-25px;
    z-index: -1;
}

.comment-content-row {
  display: flex;
  gap: 12px;
  margin: 8px 0;
  margin-left: 32px;
  align-items: flex-start;
}

.comment-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  order: 2; /* Text on the right by default */
}

.comment-attachment {
  order: 1; /* Forces attachment to be left */
  flex-shrink: 0;
  max-width:100%;
}

.comment-attachment-image {
  max-width: 100%;
  max-height: 120px; /* Half of previous */
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  object-fit: cover;
}

.comment-attachment-image:hover {
  opacity: 0.9;
}

.comment-attachment-video {
  max-width: 260px; /* Half of previous */
  border-radius: 4px;
}

.comment-attachment-audio {
  height:50px;
  width: 100%;
  min-width: 150px;
  height: 30px; /* Smaller audio player */
}

/* Comment footer - FIXED */
.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  margin-left:10px
}

.settings-container {
display:flex;
flex-direction:column;
padding-left:25px;
padding-right:25px;
padding-top:35px;
  gap:10px;
align-items:flex-start;
}

.setting-container {
background: linear-gradient(90deg, rgba(223, 238, 246, 1) 0%, rgba(150, 214, 246, 1) 100%);
width:80%;
margin-bottom:20px;
border-radius:10px;
padding:10px;   
border-color: #cccfe0;
border-width: 4px;
border-style: outset;
box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
}

.toggle-replies-btn {
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    background: rgba(0,0,0,0.05);
}

.settings-textarea {
    padding: 8px 12px;
    border: 2px solid #bccee2;
    border-radius: 8px;
    background: #edeff4;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    margin-left:10px;
}

.setting-row {
    margin-left:10px;
margin-top:10px;
margin-bottom:10px;
display:flex;
align-items: center;
}

.comment-delete-btn {
  border: none;
    position: absolute;
    top: 0;
    right: 0;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px; 
  background: linear-gradient(208deg, rgba(132, 123, 232, 0.5) 0%, rgba(190, 199, 255, 0.5) 100%);
  border-color: #6C65B5;
  transition: all 0.2s;
}

.comment-delete-btn:hover {
  background: linear-gradient(208deg, rgba(152, 153, 252, 0.5) 0%, rgba(220, 229, 255, 0.5) 100%);
}

/* Like container - RIGHT side */
.comment-like-container {
  display: flex;
  align-items: center;
  gap: 6px;
  order: 2; /* Forces to be right */
  margin-left: auto; /* Pushes it to the right */
}

/* If there's no delete button, like container should still be right */
.comment-footer:has(.comment-delete-btn:only-child) .comment-like-container {
  margin-left: auto;
}

/* ===== COMMUNITIES PAGE STYLES ===== */
.communities-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.communites-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: white;
  border: 4px solid #cccfe0;
  border-style: outset;
  border-radius: 12px;
  box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
  transition: all 0.2s ease;
}

.communites-card:hover {
  transform: translateX(-2px);
  box-shadow: 8px 12px 12px -5px rgba(0, 10, 90, 0.4);
}

.communites-card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.communites-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.communites-card-name {
  color: #15141c;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.communites-card-name:hover {
  text-decoration: underline;
  color: #2c5282;
}

/* Comment overflow handling */
.comment_overflown {
    display: none;
}

.comment_overflown.visible {
    display: block;
}

.communites-card-status {
  font-size: 12px;
  color: #4CAF50;
}

.communites-card-btn {
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  border: 2px solid #8FDADB;
  font-size: 14px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: 100px;
}

.communites-card-btn:hover {
  background: linear-gradient(208deg, rgba(170, 221, 242, 1) 0%, rgba(170, 242, 218, 1) 100%);
  transform: translateY(-1px);
}

.communites-leave-btn {
  background: linear-gradient(208deg,rgba(242, 150, 202, 1) 0%, rgba(149, 141, 235, 1) 100%);
  border-color: #6C65B5;
  color: white;
}

.profile-content {
    min-width:800px;
}
.profile-header {
    background: rgb(240 240 240 / 80%);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    padding: 0px;
    margin-bottom: 0px;
    border: 4px solid #cccfe0;
    border-style: solid;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    margin-top:-200px;
    min-width: calc(250px + 700px);
}

.profile-header-contents {
  display:flex;
  flex-direction:row;
  gap:0;
}

.profile-header-left {
    border: 4px solid #cccfe0;
    border-left-style: none;
    border-top-style: none;
    border-bottom-style: none;
  background:white;
  min-height:340px;
  width:250px;
  min-width:250px;
  display:flex;
  flex-direction:column;
  position:relative;
}


.profile-right-name {
    background: rgba(0, 0, 0, 0.1);
    padding: 0 16px;
    padding-left: 50px;
    border-radius: 12px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    font-size: 52px;
    height: 42px;
    width: max-content;
    font-weight: bold;
}

.profile-right-name > p {
  position: relative;
  margin-top:-20px;
  padding:0;
}

.profile-right-status {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 16px;
    padding-left: 50px;
    border-radius: 12px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    font-size: 20px;
    max-width: fit-content;
    color: #575757;
}

.profile-header-somethings {
    position: absolute;
    bottom: -52px;
    right: 40px;
    display: flex;
    gap: 20px;
}

.profile-header-somethings-thing {
  height:30px;
  border-radius:25px;
  border-top-left-radius:0;
  border-top-right-radius:0;
  background: rgb(240 240 240 / 80%);
    backdrop-filter: blur(5px);
  padding:10px 15px;
  padding-top:4px;
  border: 4px solid #cccfe0;
  border-top-style:none;
  transition: all 0.2s ease;
  transform-origin: top;
}

.profile-header-morethings {
    position: absolute;
    bottom: -42px;
    left: 40px;
  height:20px;
  border-radius:25px;
  border-top-left-radius:0;
  border-top-right-radius:0;
  background: rgb(240 240 240 / 80%);
    backdrop-filter: blur(5px);
  padding:5px 60px;
  padding-top:9px;
  border: 4px solid #cccfe0;
  border-top-style:none;
  transition: all 0.2s ease;
  transform-origin: top;
}

.profile-header-lessthings {
    position: absolute;
    bottom: -38px;
    left: 40px;
  height:20px;
  border-radius:25px;
  border-top-left-radius:0;
  border-top-right-radius:0;
  background: rgb(240 240 240 / 80%);
    backdrop-filter: blur(5px);
  padding:5px 60px;
  padding-top:9px;
  border: 4px solid #cccfe0;
  border-top-style:none;
  transition: all 0.2s ease;
  transform-origin:top;
  transform: scaleY(0);
}

.profile-header-lessthings:hover {
  padding-right:55px;
  padding-left:55px;
  transform: translateX(5%) scale(1, 1.1);
}

.profile-header-morethings:hover {
  padding-right:55px;
  padding-left:55px;
  transform: translateX(5%) scale(1, 1.1);
}

.profile-header-somethings-thing:hover {
  padding-right:10px;
  padding-left:10px;
  transform: scale(1, 1.1);
}

.profile-header-somethings-thing > a {
  color:black;
  text-decoration:none;
}

.profile-right-description {
    background: rgba(0, 0, 0, 0.08);
    padding: 8px 16px;
    padding-left: 50px;
    border-radius: 12px;
    font-size: 18px;
    width: 60%;
    min-height:70px;
    white-space: pre-wrap;
    margin-top:10px;
    border-bottom-left-radius:0;
    border-top-left-radius:0;
    color: #575757;
    margin-bottom: 80px;
}

.profile-right-homecountry {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px 16px;
    padding-left: 45px;
    border-radius: 12px;
    font-size: 20px;
    max-width: fit-content;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    position: absolute;
    bottom: 30px;
}

.profile-right-birthday {
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    padding-right: 45px;
    padding-right: 50px;
    border-radius: 12px;
    font-size: 20px;
    max-width: fit-content;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    position: absolute;
    bottom: 30px;
    right: 0px;
}

.profile-pfp {
  width:250px;
  height:250;
  right:-30px;
  top:-50px;
  position:absolute;
}

.profile-header-right {
  display:flex;
  flex-direction:column;
  gap:5px;
  padding: 20px;
  padding-left:0px;
  min-width:700px;
}

.community-header-right-type {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 16px;
    padding-left: 50px;
    border-radius: 12px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    font-size: 20px;
    max-width: fit-content;
    color: #575757;
    position:absolute;
    bottom:55px;
    padding-left:16px;
}

.community-header-right-bday {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 16px;
    padding-left: 50px;
    border-radius: 12px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    font-size: 20px;
    max-width: fit-content;
    color: #575757;
    position:absolute;
    bottom:20px;
    padding-left:16px;
}

.community-header-subs {
    background: white;
    padding: 8px;
    border-radius: 12px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    border: 4px solid #cccfe0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.community-header-subs > label {
  font-size:16px;
}

.community-header-subs > p {
  font-weight:bold;
  font-size:24px;
  margin: 5px;
}

.profile-box-container {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
    width: auto;
    gap:15px;
    
}

.profile-subscriptions-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 7px 20px 20px 20px;
    margin-bottom: 0px;
    border: 4px solid #cccfe0;
    border-style: outset;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    margin-top: 10px;
    flex-direction:row;
    gap:10px;
    width: fit-content;
}

.sub-sub-container {
   padding:10px 0;
    border-radius: 8px;
    margin-top:5px;
    background: rgb(0 0 0 /5%);
    box-shadow: 2px 2px 5px #7e7e7e inset;
}

/* Profile picture container */
.profile-picture-container {
    position: relative;
    height: min-content;
    top: -70px;
    margin-right: 24px;
}

.profile-audio-box {
    position:absolute;
    bottom:-10px;
    right:-10px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 0px;
    border: 4px solid #cccfe0;
    border-style: outset;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    margin-top: 10px;
    flex-direction:row;
    gap:10px;
    width: fit-content;
}

.profile-something-bigbox {
    position: absolute;
    bottom:-10px;
    right:-10px;
    display:flex;
    flex-direction:row;
    gap:15px;
}

.profile-something-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 10px;
    margin-bottom: 0px;
    border: 4px solid #cccfe0;
    border-style: outset;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    margin-top: 10px;
    flex-direction:row;
    gap:10px;
    width: fit-content;
}

.profile-something-link {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap:5px;
    text-decoration: none;
    color: black;
    transition: all 0.2s ease;
}

.profile-something-link:hover {
    color: grey;
}

.profile-more-hint {
    user-select: none;
    position: absolute;
    bottom:-10px;
    left:15px;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 0px;
    border: 4px solid #cccfe0;
    border-style: outset;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    margin-top: 10px;
    flex-direction:row;
    gap:10px;
    width: fit-content;
    color: black;
    transition: all 0.2s ease;
}

.profile-more-hint:hover {
    color: grey;
}

.profile-neck {
  background: white;
  border-radius:4px;
  border: 4px solid #cccfe0;
  border-top-style:none;
  border-top-left-radius:0;
  border-top-right-radius:0;
  min-width: calc(250px + 650px);
  margin-right:20px;
  margin-left:20px;
  display:flex;
  flex-direction:row; 
  transition: max-height 0.5s ease;
  max-height: 0px;
  overflow:hidden;
}

.profile-neck.open {
  max-height: 1000px;
}

.profile-neck-left {
  display:flex;
  flex-direction:column;
  gap:10px;
  width: calc(100% - 550px);
  padding:20px;
}

.profile-neck-left > p {
  font-size: 16px;
  margin:0;
  padding:0;
  line-height: 1.5; 
}

.profile-neck-separator {
  border-bottom-style: dotted;
  border-width:2px;
  border-color: #cccfe0;
  width:90%;
  margin-left:5%;
}

.profile-neck-right {
    width: 650px;
    background: #f0f0f0;
    border-left-style: solid;
    border-color: #cccfe0;
    border-width: 4px;
    padding:20px;
    display:flex;
    flex-direction:column;
    justify-content: space-between;
    padding-bottom:0;
    gap:20px;
}

.profile-neck-right-top {
  display:flex;
  flex-direction:row;
  gap:20px;
  width:100%;
  justify-content: space-between;
}

.profile-things-container {
  display:flex;
  flex-direction:column;
  gap:5px;
    width: 50%;
}

.profile-audios-container {
  display:flex;
  flex-direction:column;
  gap:5px;
    width: calc(100% - 40px);
  background: white;
  padding: 6px 15px;
    border: 3px solid #cccfe0;
    box-shadow: 4px 4px 8px #00000047;
  position:relative;
  bottom:0;
  border-bottom-style:none;
}

.profile-audio-name {
    color: #555;
    font-size:14px;
}

.profile-audio-subname {
    color: #8b8b8b;
    font-size:10px;
}

.profile-things-container > label {
  font-size:18px;
}

.profile-things-container > div {
  background: white;
  display:grid;
    grid-template-columns: 1fr 1fr 1fr;
  padding:5px;
    border: 3px solid #cccfe0;
    box-shadow: 4px 4px 8px #00000047;
}

.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.community-feedmain {
margin-top: 200px; 
width:100%; 
padding:15px;
}

/* Frutiger Aero border effect */
.frutiger-aero-border {
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 0 0 2px rgba(190, 241, 252, 0.5),
        0 10px 20px -5px rgba(0, 0, 0, 0.3),
        inset 0 -5px 10px rgba(255, 255, 255, 0.6),
        inset 0 5px 10px rgba(255, 255, 255, 0.6);
}

/* Glass reflection */
.frutiger-aero-border::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 5%;
    width: 30%;
    height: 30%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-container {
            min-width: 700px;
            max-width: 700px;
            margin-top:150px;
	    margin-left:170px;
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
            border: 4px solid #cccfe0;
            border-style: outset;
        }
        
        .auth-container h1 {
            text-align: center;
            margin-bottom: 30px;
            color: #15141c;
        }
        
        .auth-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .auth-form input, .auth-form textarea {
            padding: 12px;
            font-size: 18px;
            border: 2px solid #bccee2;
            border-radius: 8px;
            background: #edeff4;
            font-family: inherit;
        }
        
        .auth-form textarea {
            resize: vertical;
            min-height: 100px;
        }
        
        .auth-form button {
            background-color: #bef1fc;
            font-size: 18px;
            border: none;
            padding: 12px;
            cursor: pointer;
            border-radius: 8px;
            margin-top: 10px;
        }
        
        .auth-form button:hover {
            background-color: #9fd9e8;
        }
        
        .auth-link {
            text-align: center;
            margin-top: 20px;
            font-size: 16px;
        }
        
        .error {
            color: #ff4444;
            text-align: center;
            font-size: 16px;
            min-height: 20px;
        }
        
        .success {
            color: #44aa44;
            text-align: center;
            font-size: 16px;
        }
        
        /* New styles for profile picture and name row */
        .profile-name-row {
            display: flex;
            gap: 20px;
            align-items: stretch;
        }
        
        .profile-pic-selector {
            width: 200px;
            height: 200px;
            border: 2px solid #8FDADB;
            border-radius: 8px;
            background: #edeff4;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .profile-pic-selector:hover {
            border-color: #6fc0c1;
            background: #e0e4e9;
        }
        
        .profile-pic-selector img {
            width: 40px;
            height: 40px;
            opacity: 0.5;
            margin-bottom: 5px;
        }
        
        .profile-pic-selector span {
            font-size: 12px;
            color: #666;
            text-align: center;
        }
        
        .name-input-container {
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .name-input-container input {
            flex: 1;
            width: 100%;
            box-sizing: border-box;
        }
        
        /* Hide the actual file input */
        #profile-pic-input {
            display: none;
        }

/* Name with background */
.name-container {
    position: relative;
    display: inline-block;
}

.profile-name {
    position: relative;
    font-size: 48px;
    margin: 0;
    z-index: 2;
    color: #15141c;
}



/* Profile actions */
.profile-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-btn {
    background-color: #bef1fc;
    font-size: 16px;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    height:50px;
}

.profile-btn:hover {
    background-color: #9fd9e8;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.profile-edit-btn {
    background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
    border: 2px solid #8FDADB;
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    height:50px;
    position: relative;
    top: -30px;
    left: 20px;
}

.profile-edit-btn:hover {
    background-color: #9fd9e8;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Stats bar */
.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(190, 241, 252, 0.5);
}

.stat {
    text-align: center;
}

.description-name {
    border-radius:8px;
    position:relative;
    font-size:16px;
    color: #48484A;
    background:rgb(0 0 0 / 5%);
    padding:5px;
    padding-left:20px;
    left: -20px;
    white-space: pre-wrap;
    min-height:100px;
    min-width:400px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #15141c;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Profile feed */
.profile-feed {
    margin-top: 20px;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}
.profile-picture-edit-container {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.profile-picture {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.profile-picture.dimmed {
  opacity: 0.5;
}

.comment-reply-deep {
	margin-left:0;
	margin-right:0;
	margin-bottom:0;
    padding-left: 0;
    padding-right: 0;
    padding-right: 0;
}

.comment-reply {
	margin-left:20px;
}

.profile-picture-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.new-picture-preview {
  margin-top: 10px;
  font-size: 14px;
  color: #4CAF50;
  text-align: center;
  background: rgba(76, 175, 80, 0.1);
  padding: 5px;
  border-radius: 20px;
}

/* Username edit mode */
.profile-name-input {
  font-size: 48px;
  font-weight: bold;
  background: transparent;
  border: 2px solid #bef1fc;
  border-radius: 8px;
  padding: 5px 15px;
  width: 100%;
  font-family: inherit;
  position: relative;
  z-index: 2;
}

.profile-name-input:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Profile actions */
.profile-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.chat-stickers-panel {
	width: 35%;
	height:100%;
        background: #FFFFFF;
	}

/* CHATS PAGE SPECIFIC LAYOUT */
        .chats-layout {
            display: flex;
            flex-direction: row;
            gap: 0;
            width: 100%;
            height: calc(100vh - 90px);
            position: relative;
        }

        /* LEFT PANEL: chats list (35%) */
        .chats-list-panel {
            width: 100%;
            flex-shrink: 0;
            background-color: #edeff4;
            border-right: 4px solid #bccee2;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .chats-list-header {
            padding: 20px 20px 10px;
            border-bottom: 2px solid #bccee2;
            background: linear-gradient(90deg, rgba(223, 238, 246, 1) 0%, rgba(150, 214, 246, 1) 100%);
        }

        .chats-list-header h2 {
            margin: 0;
            font-size: 24px;
            color: #02383e;
        }

        .chats-scrollable {
            flex: 1;
            overflow-y: auto;
            padding: 10px;
        }

        /* Chat item card */
        .chat-card {
            background: white;
            border: 4px solid #cccfe0;
            border-style: outset;
            border-radius: 12px;
            margin-bottom: 12px;
            padding: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            position: relative;
        }
        .chat-card:hover {
            transform: translateX(-2px);
            box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.3);
	    z-index:100;
        }
        .chat-card:active {
            transform: translateX(2px);
		filter:brightness(95%);
	    z-index:100;
        }
        .chat-card-content {
            display: flex;
            gap: 12px;
            align-items: center;
        }
        .chat-card-avatar {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            object-fit: cover;
            border: 2px solid #8FDADB;
        }
        .chat-card-info {
            flex: 1;
            overflow: hidden;
        }
        .chat-card-name {
            font-weight: bold;
            font-size: 18px;
            margin-bottom: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .chat-card-lastmsg {
            font-size: 12px;
            color: #666;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .chat-card-time {
            font-size: 10px;
            color: #999;
            margin-top: 4px;
        }
        .more-actions-btn {
            position: absolute;
            top: 8px;
            right: 12px;
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #555;
            width: 28px;
            height: 28px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .more-actions-btn:hover {
            background: rgba(0,0,0,0.1);
        }
        .chat-card-menu {
            position: absolute;
            top: 35px;
            right: 8px;
            background: white;
            border: 2px solid #8FDADB;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            z-index: 550;
            min-width: 160px;
            display: none;
	    max-width:200px;
        }
        .chat-card-menu.show {
animation: squashStretch 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            display: block;
        }
        .chat-card-menu-item {
            padding: 8px 16px;
            font-size: 14px;
            cursor: pointer;
            transition: background 0.1s;
        }
        .chat-card-menu-item:hover {
            background: #bef1fc;
        }

        /* RIGHT PANEL: chat container (65%) */
        .chat-container-panel {
            width: 65%;
            display: flex;
            flex-direction: column;
            background: rgb(214,224,236);
            height: 100%;
            overflow: hidden;
    border-style: solid;
    border-left-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    border-color: #bccee2;
        }

	.feedmain:has(.chat-stickers-panel.hidden) .chat-container-panel {
	width:100%;
	}


        .chat-header-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 12px;
            background: rgb(237,239,244);
            border-bottom: 4px solid #bccee2;
            box-shadow: 0px 12px 20px 0px rgb(29 44 61 / 28%);
            z-index: 10;
        }
        .chat-partner-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .chat-partner-avatar {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            object-fit: cover;
        }
        .chat-partner-name {
            font-weight: bold;
            font-size: 20px;
        }
        .chat-partner-status {
    font-size: 12px;
    color: #3b3b3b;
    margin-top: 3px;
    padding: 4px 6px;
    background: #00000014;
    border-radius: 4px;
        }
        .current-user-avatar {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            object-fit: cover;
        }

        /* MESSAGES AREA */
        .chat-messages-container {
            flex: 1;
            overflow-y: auto;
            padding: 16px 0;
            display: flex;
            flex-direction: column;
            gap: 0;
            background: rgba(237, 239, 244, 0.6);
        }
        /* Day separator */
        .day-separator {
            text-align: center;
            margin: 16px 0;
            position: relative;
        }
        .day-separator span {
            background: #bccee2;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            color: #15141c;
            font-weight: bold;
        }
        /* Message bubble wrapper */
        .message-wrapper {
            display: flex;
            flex-direction: column;
            width: 100%;
            position: relative;
	    padding: 3px 0;
        }

	.message-wrapper.unread {
	background: rgb(188 206 226 / 42%);
	}

        .message-wrapper.mine {
            align-self: flex-end;
        }
        .message-wrapper.theirs {
            align-self: flex-start;
        }
        /* bubble with tail */
        .message-bubble {
            padding: 8px 12px;
            border-radius: 12px;
            position: relative;
            word-wrap: break-word;
            background: white;
            border: 1px solid #c0d4e0;
    	    box-shadow: 2px 6px 10px #413e4347;
        }
        .mine .message-bubble {
            background: #bef1fc;
	    border-color: rgb(78, 143, 156);
            border-bottom-right-radius: 4px;
            align-self: flex-end;
	    max-width:80%;
	    margin-right:16px;
        }
        .theirs .message-bubble {
            background: rgb(192, 252, 219);
            border-color: rgb(103, 175, 136);
            border-bottom-left-radius: 4px;
            align-self: flex-start;
	    max-width:80%;
	    margin-left:16px;
        }
        /* Tail effect */
        .mine .message-bubble::after {
display:none;
            content: '';
            position: absolute;
            right: -8px;
            bottom: 0px;
            width: 0;
            height: 0;
            border-left: 10px solid #bef1fc;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
        }
        .theirs .message-bubble::before {
display:none;
            content: '';
            position: absolute;
            left: -8px;
            bottom: 0px;
            width: 0;
            height: 0;
            border-right: 10px solid white;
            border-top: 8px solid transparent;
            border-bottom: 8px solid transparent;
        }
        .message-text {
            font-size: 14px;
            line-height: 1.4;
        }
        .message-time {
            font-size: 10px;
            color: #777;
            margin-top: 4px;
            text-align: right;
        }
        /* reply preview inside bubble */
        .reply-preview-block {
            background: rgba(0,0,0,0.05);
            border-left: 3px solid #8FDADB;
            padding: 5px 8px;
            margin-bottom: 6px;
            font-size: 12px;
            border-radius: 8px;
        }

.reply-preview-name {
    font-weight: bold;
    font-size: 14px;
    color: #555;
    margin-bottom:5px;
}
        .reply-text-preview {
            font-style: italic;
            color: #555;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        /* Grid for multiple images */
        .message-images-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
            gap: 6px;
            margin-top: 6px;
        }
        .chat-attachment-img {
            max-width: 100%;
            max-height: 40vh;
            border-radius: 12px;
            object-fit: cover;
            cursor: pointer;
        }
        .chat-attachment-vid {
            max-width: 100%;
            max-height: 150px;
            border-radius: 12px;
        }
        .chat-attachment-audio {
            width: 200px;
            height: 36px;
        }
        /* INPUT AREA */
        .chat-input-area {
            background: white;
            border-top: 4px solid #bccee2;
            padding: 12px 20px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .file-preview-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 5px;
            background: #f0f2f5;
            border-radius: 8px;
            min-height: 60px;
        }
        .preview-file-item {
            position: relative;
            width: 70px;
            height: 70px;
            background: #ddd;
            border-radius: 8px;
            overflow: hidden;
        }
        .preview-file-item img, .preview-file-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .remove-preview-btn {
            position: absolute;
            top: -6px;
            right: -6px;
            background: gray;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            cursor: pointer;
            background: #ff4444;
        }
        .message-textarea {
            padding: 10px;
            border: 2px solid #bccee2;
            border-radius: 8px;
            resize: none;
            font-family: inherit;
            font-size: 14px;
            background: #edeff4;
        }
.message-textarea:focus-visible {
outline:none;
}
        .input-actions-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .attach-options {
            position: relative;
        }
        .clip-btn {
            background: #bef1fc;
            border: 2px solid #8FDADB;
            border-radius: 8px;
            padding: 8px 20px;
            cursor: pointer;
            font-size: 14px;
        }
        .attach-menu {
            position: absolute;
            bottom: 45px;
            left: 0;
            background: white;
            border: 2px solid #8FDADB;
            border-radius: 12px;
            display: none;
            flex-direction: column;
            z-index: 20;
        }
        .attach-menu.show {
            display: flex;
        }
        .attach-option {
            padding: 8px 20px;
            cursor: pointer;
            border-bottom: 1px solid #eee;
        }
        .send-msg-btn {
            background: #bef1fc;
            border: 2px solid #8FDADB;
            border-radius: 8px;
            padding: 8px 28px;
            cursor: pointer;
        }
        /* context menu imitation via click */
@keyframes squashStretch {
    0% {
        transform: scale(0.5, 0);
        opacity: 1;
    }
    15% {
        transform: scale(1.2, 0.2);
        opacity: 1;
    }
    50% {
        transform: scale(0.9, 1.2);
    }
    70% {
        transform: scale(1.05, 0.95);
    }
    85% {
        transform: scale(0.98, 1.02);
    }
    100% {
        transform: scale(1, 1);
        opacity: 1;
    }
}

.message-context-menu {
    position: fixed;
    background: white;
    border: 2px solid #8FDADB;
    border-radius: 12px;
    box-shadow: 0 4px 12px #0000006b;
    z-index: 200;
    transform-origin: top left;
    opacity: 0;
    pointer-events: none;
    overflow:hidden;
}

.message-context-menu.show {
    animation: squashStretch 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: auto;
}
        .context-item {
            padding: 8px 20px;
            cursor: pointer;
        }
        .context-item:hover {
            background: #bef1fc;
        }
        .edit-mode-indicator {
            background: #edeff4;
            padding: 5px 12px;
            border-radius: 12px;
            font-size: 12px;
            margin-bottom: 5px;
        }

	.chat-card-unread {
	background:rgb(255,248,228);
	}

	.chat-card-unread-badge {
	border-radius: 50%;
    background: rgb(255, 161, 151);
    color: white;
    width: 24px;
    height: 22px;
    text-align: center;
    align-content: center;
    padding-top: 2px;
    position: absolute;
    right: 20px;
    top: 50%;
	}

.profile-btn {
  background-color: #bef1fc;
  font-size: 16px;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    z-index: 10;
    position: relative;
    border-style: solid;
    border-width: 2px;
    border-color: #8FDADB;
}

.profile-btn:hover {
  background-color: #9fd9e8;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Frutiger Aero border for profile picture */
.frutiger-aero-border {
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 0 2px rgba(190, 241, 252, 0.5),
    0 10px 20px -5px rgba(0, 0, 0, 0.3),
    inset 0 -5px 10px rgba(255, 255, 255, 0.6),
    inset 0 5px 10px rgba(255, 255, 255, 0.6);
}

.profile-btn-container {
    width: 125%;
    left: -12.5%;
    bottom: -50px;
    position: absolute;
    display: flex;
    margin-right: -24px;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.profile-left-buttons {
    width: calc(100% - 40px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    bottom: 0;
    position: absolute;
    gap: 15px;
}

.profile-btn-btn {
    width: auto;
    border: 2px solid #8FDADB;
    padding: 8px;
    border-radius: 15px;
    font-size: 17px;
    border: 2px solid #cccfe0;
    border-width: ;
    cursor: pointer;
    transition: all 0.2s ease;
    position:relative;
}

.profile-btn-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px) scale(1.02);
}


.frutiger-aero-border::after {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  width: 30%;
  height: 30%;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 100%);
  border-radius: 50%;
  pointer-events: none;
}

/* ===== POST CREATOR REDESIGN ===== */
#new-post-box {
    padding: 20px;
    background: white;
}

/* Top Row */
.post-creator-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #bccee2;
    flex-wrap: wrap;
    gap: 10px;
}

.creator-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    top: -5px;
}

.creator-avatar {
    margin-top:-56px;
    width: 124px;
    height: 124px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.creator-username {
    font-weight: bold;
    font-size: 48px;
    color: #15141c;
    text-shadow: 2px 4px 3px rgba(0, 0, 0, 0.2);
}

/* Community Dropdown */
.creator-community-dropdown {
    padding: 8px 15px;
    font-size: 16px;
    border: 2px solid #8FDADB;
    border-radius: 8px;
    background: linear-gradient(208deg, rgba(190, 241, 252, 0.3) 0%, rgba(190, 252, 228, 0.3) 100%);
    cursor: pointer;
    min-width: 200px;
}

.creator-community-dropdown:hover {
    border-color: #6fc0c1;
}


/* Text next to switch */
.anonymous-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Files Row */
.post-creator-files-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.file-select-btn {
    width: auto !important;
    min-width: 150px;
    background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
    border: 2px solid #8FDADB;
}

.files-preview-area {
    flex: 1;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    min-height: 100px;
    background: rgba(237, 239, 244, 0.5);
    border: 2px dashed #bccee2;
    border-radius: 8px;
    flex-wrap: wrap;
}

/* File Previews */
.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border: 2px solid #8FDADB;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.preview-item.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item.audio-preview {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(208deg, rgba(190, 241, 252, 0.3) 0%, rgba(190, 252, 228, 0.3) 100%);
}

.preview-item.audio-preview .audio-placeholder {
    font-size: 12px;
    text-align: center;
    padding: 5px;
    word-break: break-word;
}

.seq-row {
padding-bottom:15px;
margin-bottom:15px;
}

.remove-file {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.remove-file:hover {
    background: #cc0000;
}

/* File type warning */
.file-type-warning {
    color: #ff4444;
    font-size: 12px;
    margin-left: 15px;
}

/* Text Row */
.post-creator-text-row {
    margin-bottom: 15px;
}

.post-creator-textarea {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border: 2px solid #bccee2;
    border-radius: 8px;
    background-color: #edeff4;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
}

.post-creator-textarea:focus {
    outline: none;
    border-color: #8FDADB;
}

/* Bottom Row */
.post-creator-bottom-row {
    display: flex;
    justify-content: flex-end;
}

.comment-footer-replies {
    //border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    //padding-bottom: 7px;
    //border-top-color: rgba(0, 0, 0, 0.1);
    //border-right-color: rgba(0, 0, 0, 0.1);
    //border-left-color: rgba(0, 0, 0, 0.1);
    //border-top-width: 2px;
    //border-right-width: 2px;
    //border-left-width: 2px;
}

.send-button {
    width: auto !important;
    min-width: 150px;
    background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
    border: 2px solid #8FDADB;
}

/* Post content section */
.post-content-section {
  margin-top: 45px;
  margin-bottom: 15px;
}

/* Files container */
.post-files-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

/* Individual post images */
.post-image {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.2s;
}

.comment-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;  /* Rounded squares! */
  object-fit: cover;
}

/* Individual post videos */
.post-video {
  max-width: 100%;
  max-height: 480px;
}

/* Mixed media items (images and videos together) */
.mixed-media-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mixed-media-item {
  flex: 1 1 200px;
  max-width: 300px;
  max-height: 200px;
  object-fit: cover;
}

/* Audio container - always at bottom */
.post-audio-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
}

.post-audio {
  width: 100%;
  height: 40px;
}

/* Backward compatibility for old posts */
.post-image:only-child {
  max-width: 300px;
}

.settings-profile-picture {
    width: 200px;
    height: 200px;
    position: absolute;
    object-fit:cover;
}

.settings-background{
width:100%; 
height:150px; 
margin-top:5px;
    object-fit:cover;
border-radius:12px;
cursor:pointer;
margin-bottom:5px;
}


/* Media container (left side) */
.post-media-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 300px;  /* Fixed max width for images */
  flex-shrink: 0;
}

/* Individual post images - proper size */
.post-image {
  max-width: 300px;
  max-height: 300px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
  width: auto;
  height: auto;
}

/* Videos - same size as images */
.post-video {
  max-width: 300px;
  max-height: 300px;
  border-radius: 8px;
}

/* Text on the right */
.post-text {
  white-space: pre-wrap;
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  word-wrap: break-word;
  min-width: 200px;
    word-wrap: break-word;
}

/* Audio container - full width below everything */
.post-audio-container {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-audio {
  width: 100%;
  height: 40px;
}

.comment-item {
    transition: background-color 0.2s ease;
}

.reply-reference {
    margin-left: 5px;
    font-size: 13px;
}

.reply-ref-link {
    cursor: pointer;
}

.reply-ref-link:hover {
    text-decoration: underline;
}


/* Backward compatibility */
.post-image:only-child {
  max-width: 300px;
}

/* Responsive */
@media (max-width: 700px) {
  .post-content-row {
    flex-direction: column;
  }
  
  .post-media-container {
    max-width: 100%;
  }
  
  .post-image, .post-video {
    max-width: 100%;
  }
}

/* Post carousel - images keep their natural size */
.post-carousel {
    float: left;
  position: relative;
  min-width:200px;
  min-height:200px;
  display: inline-block; /* This shrinks to fit content */
  max-width: 100%;
    margin-bottom: 10px;
}

.carousel-current {
  display: inline-block;
  line-height: 0; /* Removes extra space below image */
}

.carousel-image {
  max-width:100%;
  width: auto; /* Natural width */
  height: auto; /* Natural height */
  max-height: 500px; /* Optional: prevent extremely tall images */
  cursor: pointer;
  border: none;
  border-radius: 0;
  display: block;
}

.carousel-video {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 500px;
  border: none;
  border-radius: 0;
}

.profile-btn-mobile { display:none; }

.post-media-container {
  display: inline-block;
  flex-shrink: 0;
}

/* SQUARE navigation buttons - NOT CIRCLES */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #8FDADB;
  border-radius: 8px; /* RECTANGLE/SQUARE corners */
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  color: #15141c;
}

.carousel-nav:hover {
  background: white;
  border-color: #6fc0c1;
}

.carousel-prev {
  left: 5px;
}

.carousel-next {
  right: 5px;
}

.carousel-counter {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 12px;
  border-radius: 4px; /* SLIGHTLY rounded, not circles */
  font-size: 12px;
  font-family: monospace;
}

/* Lightbox - SQUARE buttons */
.lightbox-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid white;
  border-radius: 8px; /* SQUARE corners */
  color: white;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: all 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.5);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}
.message-attachment-container:not(:has(img)) {
display:none;
}

.message-attachment-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 4px;
    margin-top: 5px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  z-index: 1002;
  font-family: monospace;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1002;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: #ff4444;
}
/* Post content row - image left, text right */
.post-content-row {
  display: flow-root;
  flex-direction: row;
  gap: 0px;
  width: auto;
  align-items: flex-start;
  flex-wrap: wrap;
  background: rgb(237, 239, 244);
    border-radius: 5px;
    margin-right:20px;
    margin-left:20px;
}

/* Text takes remaining space */
.post-text {
  padding: 10px;
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  word-wrap: break-word;
  min-width: 200px;
overflow-wrap: anywhere; 
}

.community-rules-container {
    margin-left: 10px;
}
.name-container {
    position: relative;
    display: inline-block;
}
.profile-name {
    position: relative;
    font-size: 48px;
    margin: 0;
    z-index: 2;
    color: #15141c;
}
.name-background {
    position: absolute;
    top: 70%;
    left: -24px;
    width: 100%;
    height: 60%;
    padding-right: 40px;
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 8px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.status-background {
    position: relative;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
    border-radius: 0 6px 6px 0;
    padding: 5px 10px;
    padding-left: 20px;
}

.status-container {
    display: flex;
    justify-content: flex-start;
    margin-left: -20px;
    margin-top: 5px;
}



.status-text {
    padding: 0;
    margin: 0;
}

.status-text:empty {
    display:none;
}

.chat-attachment-image {
  position: relative;
    overflow: hidden;
width: 100%;
    height: 100%;
    object-fit: cover; /* Use 'contain' if you don't want cropping */
    display: block;
}

.chat-attachment-video {
  max-width: 100%;
  margin-top: 5px;position: relative;
    overflow: hidden;
}

.chat-attachment-audio {
  width: 200px;
  margin-top: 5px;
}

.chat-attachments {
  margin-top: 5px;
}
.chat-preview-item {
max-height:150px;
max-width:150px;
}
.profile-picture-container.editable {
  position: relative;
  cursor: pointer;
}

.edit-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  text-align: center;
  padding: 5px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 0 0 12px 12px;
}

.profile-picture-container.editable:hover .edit-overlay {
  opacity: 1;
}

.edit-name-btn {
  cursor: pointer;
  background-color:rgba(0,0,0,0);
  border-style:none;
  transition: background-color 0.2s;
}

.name-container:hover .edit-name-btn {
  background-color:rgba(0,0,0,0.3);
}

.community-name-input {
  font-size: 32px;
  font-weight: bold;
  background: white;
}

.status-background.editable {
  cursor: pointer;
  position: relative;
}

.pfp-choose-new {
opacity:0%;
transition: opacity 0.5s ease;
}

.pfp-choose-new:hover {
opacity:90%;
cursor:pointer;
}

.status-input, .description-input, .rules-input {
  width: 100%;
  padding: 8px;
  font-size: 16px;
  border: 2px solid #8FDADB;
  border-radius: 8px;
  font-family: inherit;
  background: white;
  resize: vertical;
}
.post-carousel {
margin:10px;
max-width:50%;
}
.lightbox-single-img {
    max-height: 80%;
    max-width: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.top-bar {
display: flex; 
justify-content: space-between; 
padding: 10px; 
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
background: linear-gradient(90deg, rgba(150, 246, 216, 1) 0%, rgba(100, 188, 255, 1) 100%);
}

.logo-name {
display: flex; 
align-items: center; 
justify-content: center; 
gap:10px;
}

.chat-preview-image {
max-height:150px;
}

.remove-preview {
top:-40px;
}

.postbox-hideable {
	
}

.new-postbutton {
  font-size: 18px;
  border: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  transition: background-color 0.2s;
max-width:200px; 
max-height:40px; 
font-size:18px; 
padding: 10px 0; 
background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
}

.new-postbutton-exit {
position:absolute;
top:-10px;
right:-10px;
  font-size: 18px;
  border: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  transition: background-color 0.2s;
max-width:40px; 
max-height:40px; 
font-size:18px; 
padding: 10px 0; 
background: linear-gradient(208deg,rgba(132, 123, 232, 1) 0%, rgba(190, 199, 255, 1) 100%);
}

.chat-exit-btn {
    z-index: 1000;
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    transition: background-color 0.2s;
    max-width: 40px;
    max-height: 40px;
    font-size: 18px;
    padding: 10px 0;
    background: linear-gradient(208deg, rgba(132, 123, 232, 1) 0%, rgba(190, 199, 255, 1) 100%);
}

.postbox {
        min-width:640px;
  }

.mainpage-logo {
padding:30px; 
padding-top:45px;
max-width:55%; 
min-width:700px; 
}
.carousel-current {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    max-height: 500px;
    overflow: hidden;
}

.carousel-image, .carousel-video, .youtube-preview {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.youtube-preview {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.youtube-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.communities-page-container {
  margin-top: 50px; 
  max-width:750px; 
  background: #edeff4;
  }
  

.friends-page-buttons {
  display: flex; 
  gap: 10px;
}

.rules-mobile {
display:none;
}

.comment-item {
    position: relative;
}

.comment-replies-container {
    margin-top: 8px;
}

.reply-input-container {
    margin-top: 10px;
    padding: 10px;
    background: rgba(237, 239, 244, 0.5);
    border-radius: 8px;
}

.reply-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.reply-btn, .cancel-reply-btn {
    background: none;
    border: none;
    color: #2c5282;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
}

.reply-btn:hover {
    text-decoration: underline;
}

.settings-bio-container {
display:flex; 
flex-direction:row; 
gap:10px;
}

.profile-feedmain {
    margin-top: 280px;
    padding:15px;
}

@media (max-width: 1300px) {
	.community-rules-container {
	display:none;
	}
	.community-layout, .community-main {
	display:block;
	}

}



@media (max-width: 830px) {
  /* Reset body padding and overflow */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  .mainpage-logo {
  min-width: 0;
        max-width: 90%;
        padding-top: 90px;
        margin-bottom: -70px;
  }
	.postbox {
	max-width:100%
        min-width:100%
  }
  /* Navigation container - full width, no overflow */
  nav.top-bar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100vw;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: #edeff4;
    box-sizing: border-box;
    z-index: 100;
  }
  
  /* Logo stays left */
  .logo-name {
    display: flex;
    align-items: center;
    gap: 8px;
        margin-left: 10px;
        margin-top: 10px;
        margin-bottom: 10px;
  }
  
  .logo-name img {
    height: 32px;
  }
  
  .logo-name a {
    font-size: 18px;
  }
  
  /* User menu stays right */
  .nav-user-section {
    margin-left: auto;
  }
  
  .user-menu-trigger {
    padding: 4px 6px;
  }
  
  .nav-avatar {
    width: 28px;
    height: 28px;
  }
  
  .nav-username {
    font-size: 0px;
  }
  
  /* Button row - spans full width under the top row */
  .nav-left-links {
    order: 2;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    gap: 0;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #8FDADB;
    border-radius: 0;
  }
  
  /* All three buttons in one row, no rounding, cassette style */
  .nav-link,
  .chats-toggle-btn {
    flex: 1;
    text-align: center;
    padding: 12px 5px;
    margin: 0;
    background: #8FDADB;
    border: none;
    border-radius: 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: #15141c;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border:none;
    text-shadow:none;
    outline:none;
  }
  
  .nav-link img {
    height: 20px;
    width: auto;
    margin: 0 !important;
  }
  
  .nav-link:first-child {
    border-right: 1px solid #6caeaf;
  }
  
  .nav-link:last-child {
    border-left: 1px solid #6caeaf;
  }
  
  .chats-toggle-btn {
    background: #8FDADB;
    border-left: 1px solid #6caeaf;
    border-right: 1px solid #6caeaf;
  }
  
  .nav-link:hover,
  .chats-toggle-btn:hover {
    background: #7fc9ca;
    transform: none;
  }
  
  /* Hide the old separate button containers */
  #auth-buttons {
   display: contents;
  }

  .feedmain {
    min-width: 100%;
    max-width: 100%;
    width:100%;
    background-image: url('/bg.webp');
    background-size: cover;
    background-position: right bottom;
    background-attachment:fixed;
    margin-right:0;
  }

  .profile-feedmain {
    padding:0;
    background: linear-gradient(90deg,rgba(0, 0, 0, 1) 1%, rgba(0, 0, 0, 0) 50%);
    border:none;
  }

  .community-feedmain {
    padding:0;
    background: rgba(0,0,0,0);
    border:none;
  }
  
  .post {
    margin-left: auto;
        margin-right: auto;
    min-width: 90%; 
    max-width: 90%;
    width: 90%;
    margin-top: 60px;
        padding-left: 0;
        padding-right: 0;
  }
  
  /* Post creator adjustments */
  #new-post-box {
    margin-left: 0;
    width: 100%;
  }
  
  .creator-avatar {
    width: 60px;
    height: 60px;
    margin-top: -30px;
  }
  
  .creator-username {
    font-size: 24px;
  }
  
  .post-creator-files-row {
    flex-wrap: wrap;
  }
  
  /* Make chat panel fit phone */
  .chats-panel {
    height:80%;
    margin-top:60px;
    width: 90%;
    right: 5%;
    left: 5%;
    max-width: none;
    min-width: auto;
  }
  
  .chat-friend-avatar {
    width: 40px;
    height: 40px;
  }
  
  .chat-friend-name {
    font-size: 16px;
  }
  
  .chat-with-name {
    font-size: 18px;
  }
  
  /* Profile page adjustments */
  .profile-header-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  

  
  .profile-name {
    font-size: 28px;
  padding:0px;
  }
  

  
  /* Post content adjustments */
  .post-content-row {
  display: flex;
    margin-right:20px;
    margin-left:20px;
    flex-direction: column;
  }
  
  .post-media-container {
    max-width: 100%;
  }
  
  .post-image, .post-video, .carousel-image, .carousel-video {
    max-width: 100%;
    height: auto;
  }
  
  .post-carousel {
    max-width: 90%;
    width: auto;
    min-width: auto;
  }
  
  /* Comments */
  .comment-content-row {
    margin-left: 10px;
    flex-direction:column;
  }
  
  .comment-footer {
    margin-left: 0;
  }
  
  /* Friend and community cards */
  .friend-card {
    flex-wrap: wrap;
  }
  
  .friend-card-info {
    width: 100%;
  }
  
  .friend-card div[style*="display: flex"] {
    width: 100%;
    justify-content: stretch;
  }
  
  .friend-card-btn {
    text-align: center;
  }
  

  /* Limit community name length in posts */
.community-author-name {
  max-width: 200px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  font-size: 18px;
}

.community-author-name-alone {
        max-width: 200px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        display: inline-block;
        font-size: 24px;
        margin-top: 0;
        position: relative;
}

.community-author-name {
margin-left:-35px;
}
/* For the user name below community name */
.author-name {
  font-size: 18px;
  display: block;
  max-width: 290px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.author-name-user {
  display: block;
  max-width: 250px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size:14px;
  max-width:70%;
}
.author-avatar {
  width:50px;
  height:50px;
  border-radius:6px;
  top:0;
}

.author-timestamp {
  font-size:10px;
}

.community-author-avatar {
  width:50px;
  height:50px;
  border-radius:6px;
  top:0;
}
.post-author .community-author-avatar + .author-avatar {
  width:25px;
  height:25px;
  border-radius:4px;
  top:auto;
  bottom:3px;
}
.author-info {
top:0px;
margin-top:5px;
gap:0px;
}

.tab-btn {
width: 100px;
font-size:14px;
}


	.community-rules-container {
	display:none;
	}
  .community-layout {
  top:15px;
  }

	.community-layout, .community-main {
	display:block;
	}

	.community-main {
	width:100%;
	}

     .profile-header-content {
                text-align: left;
        display: flex;
        grid-auto-flow: column;
        gap: 0;
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        margin-bottom:  10px;
    }

  .profile-picture-container {
    position: relative;
  top: -10px;
  }
  .profile-actions {
  display:none;
  }
  .status-background {
  left:0;
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  top:0;
  }
  .name-background {
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  }
  .name-container {
        margin-bottom: 5px;
  }
  
  .profile-picture-container.editable {
    width: 130px;
  }
  .profile-picture {
        width:188px;
        height:188px;
  }
	.profile-btn-mobile {
  display: block;
  background: linear-gradient(208deg, rgba(190, 241, 252, 1) 0%, rgba(190, 252, 228, 1) 100%);
  border: 2px solid #8FDADB;
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.profile-btn-mobile:hover {
  background-color: #9fd9e8;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.profile-picture-overlay {
font-size:10px;
width:80%;
}
  .communities-page-container {
  margin-top:120px;
  background: #edeff4;
  }

.friends-page-buttons {

    width: 100px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.community-post-buttons {
  display:flex;
  flex-direction: column;
  gap: 5px;

}

.profile-stats {
  border-top: 2px solid rgba(160, 211, 222, 1);
margin-top:0;
}

.rules-mobile {
display:block;
}

.settings-container {
width:95%;
min-width:95%;
max-width:95%;
padding:0;
}
.setting-container {
width:95%;
margin-left:10px;
}

.settings-bio-container {
display:flex; 
flex-direction: column; 
gap:10px;
}

.profile-btn-container {
    width: 120%;
    left: -12.5%;
    bottom: -30px;
    position: absolute;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}
.profile-btn {
padding: 5px 10px;
font-size:14px;
}

.profile-info {
position: relative;
width:100%;
top:0;
}

.description-name {
    min-height: 60px;
    min-width: 200px;
}

.main-feed {
background-image:none;
background: linear-gradient(90deg, rgb(0 0 0 / 50%) 1%, rgba(0, 0, 0, 0) 50%);
        border-right-style: hidden;
        border-left-style: hidden;
}

.comment-reply-deep {
	margin-top: 10px;
	padding-top:5px;
	margin-left:0;
	margin-right:0;
	margin-bottom:0
	padding-right:2px;
	padding-left:2px;
}

.comment-reply {
	margin-top: 10px;
	padding-top:5px;
	margin-left:0;
	margin-right:0;
	margin-bottom:0;
	padding-right:2px;
	padding-left:2px;
}

.comment-footer-replies{
	padding-bottom:20px;
}

.toggle-replies-btn {
	//margin-top:-15px;
}

.post-author {

}

.author-info.community {
margin-top:0;
}

.post-dropdown {
right:0;
}
.profile-content {
min-width:0;
}
.sub-sub-avatar {
    width: 50px;
    height: 50px;
}
.sub-sub-name {
    width: 70px;
}
.sub-sub-item {
    width: auto;
    padding: 5px 0;
}
.sub-sub-container {
    padding: 10px 5px;
    gap: 0;
    margin-top: 5px;
    width: min-content;
}
.profile-box-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 0px;
    box-shadow: 5px 10px 10px -5px rgba(0, 10, 90, 0.4);
    flex-direction:row;
    border-radius: 0;
    padding: 20px 0px;
    margin-bottom: 0px;
    margin-top: 10px;
    flex-direction: row;
    gap: 5px;
    width:100%;
justify-content: center;
}

.profile-subscriptions-container {
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
    width: auto;
    border-radius:0;
}

.profile-btn-icon {
    width:60px;
}
.remove-btn-size {
  width:55px;
}

.notifications-panel.show {
max-width:90vw;
}

.lightbox-media {
  max-width: 100vw;
}

        .profile-pic-selector {
            width: 120px;
            height: 120px;
            border: 2px solid #8FDADB;
            border-radius: 8px;
            background: #edeff4;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .profile-pic-selector:hover {
            border-color: #6fc0c1;
            background: #e0e4e9;
        }
        
        .profile-pic-selector img {
            width: 40px;
            height: 40px;
            opacity: 0.5;
            margin-bottom: 5px;
        }
.auth-container {
padding:15px;
}

	.m-speech-bubble {
	font-size:10px;
	min-width:160px;
        bottom: 170px;
	}
	.mascot-dummy{
	right:30%;
	}
	.mascot-video{
	width:100px;
	}
	.comment-attachment-video {
	max-width:160px;
	}

    .utility-bar {
        height: 20px;
        padding: 0 10px;
    }
    
    .utility-link {
        font-size: 11px;
    }
    
    .utility-left {
        gap: 15px;
    }
    
    .utility-username {
        font-size: 11px;
    }
    
    .utility-avatar {
        width: 16px;
        height: 16px;
    }
    
    .utility-logout {
        display: none !important;
    }
    
    .utility-profile {
        display: none !important;
    }
.user-menu-container {
display:block;
}

.comment-count-text {
display:none;
}
.new-postbutton {
width:auto;
font-size:14px;
padding: 10px 12px;
}

#library-view, #playlists-view {
 padding:10px;
}
.audio-item {
padding: 5px 6px;
}
.audio-item .audio-index {
width: 10px;
}
.audio-item .audio-actions {
opacity:1;
}
.audios-container {
width: 85%;
}
.audios-player {
width:100%;
margin-top: 90px;
top: 140px;
}

.profile-audio-box {
padding: 6px 12px;
font-size: 14px;
}

.profile-header {
min-width:auto;
}

.profile-right-name {
height:auto;
padding-left:10px;
width:auto;
}

.profile-right-status {
padding-left:10px;
}

.profile-right-description {
	padding-left:10px;
	width:99%;
	margin-bottom: 110px;
}

.profile-right-name > p {
    font-size: 24px;
    margin-top: -5px;
    margin-bottom:0;
}

.profile-right-homecountry {
    bottom: 60px;
    font-size: 16px;
}

.profile-right-birthday {
    bottom: 20px;
    font-size: 16px;
    right: auto;
    border-radius: 12px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.profile-header-left {
    width: 200px;
    min-width: 200px;
}
.profile-pfp{
    width: 200px;
    top: 0;
    right: auto;
}
.profile-header-somethings{
    position: absolute;
    bottom: -50px;
    right: 0;
    display: flex;
    gap: 5px;
}
.profile-header-somethings-thing {
    padding: 6px;
    background: rgb(240 240 240);
}
.profile-header-morethings{
    padding: 9px 10px;
    left: 0;
}
.profile-header-lessthings:hover {
//display:none;
}
.profile-neck-right-top {
    gap: 10px;
    padding: 10px;
}
.profile-neck-right {
    width: 100%;
    padding: 0;
    border-left-style: none;
    border-top-style: solid;
    padding-top: 10px;
}
.profile-audios-container {
    border-right: none;
    border-left: none;
    width: 100%;
}
.profile-neck-left {
  width: 90%;
  gap:8px;
}
.profile-header-somethings-thing > a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.profile-neck {
    flex-direction: column;
    margin: 0;
    min-width: auto;
}

.profile-header-right {
    min-width: auto;
}

.community-header-subs {
        position: relative;
        right: auto;
        margin-top: -50px;
        margin-bottom: 70px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 16px;
    padding-left: 50px;
    border-radius: 12px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    font-size: 20px;
    max-width: fit-content;
    color: #575757;
    /* position: absolute; */
    bottom: 20px;
    padding-left: 16px;
    flex-direction: row;
    border: none;
    }
.community-header-subs > label {
  font-size: 20px;
}
.community-header-subs > p {
    margin: 0;
    font-size: 20px;
    font-weight: normal;
    margin-left: 10px;
}
.community-header-right-type {
    bottom: 75px;
}
}




