body {
      font-family: sans-serif;
      background-color: #000;
      color: #fff;
      margin: 0;
      padding: 0;
    }
.container {
      max-width: 600px;
      margin: auto;
      padding: 1rem;
    }
header {
      font-size: 2rem;
      font-weight: bold;
      margin-bottom: 1rem;
    }

textarea {
      resize: none;
      height: 80px;
      padding: 0.5rem;
      font-size: 1rem;
    }
button {
      background-color: #1d9bf0;
      border: none;
      color: white;
      padding: 0.5rem;
      cursor: pointer;
      font-weight: bold;
    }
#feed {
      list-style: none;
      padding: 0;
    }
.post {
      background-color: #111;
      border: 1px solid #333;
      padding: 1rem;
      margin-bottom: 0.75rem;
      border-radius: 30px;
      position: relative;
    }
.username {
      color: #1d9bf0;
      font-weight: bold;
    }
.username.admin {
      color: red;
    }
.timestamp {
      font-size: 0.8rem;
      color: #999;
      margin-top: 0.5rem;
      display: block;
    }
.message {
      white-space: pre-wrap;
      word-wrap: break-word;
      overflow-wrap: break-word;
    }
img {
      max-width: 100%;

      border-radius: 0.25rem;
    }

#accountBtn {
      position: fixed;
      bottom: 10px;
      right: 10px;
      border-radius: 25%;
      width: 50px;
      height: 50px;
      overflow: hidden;
      z-index: 1000;
      color: rgba(255, 255, 255, 0.9);
      background: rgba(255, 255, 255, 0);
      border: 2px solid rgba(255, 255, 255, 0.5);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(10px);
      transition: all 0.5s cubic-bezier(0.5, 1, 0.5, 1);
      opacity: 4;
      transform: translateX(0);
    }

#accountBtn:hover {
    box-shadow: 0 0 15px rgba(29, 155, 240, 0.8);
    transform: scale(1.1);
}

#accountBtn img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

#accountModal, #replyModal {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.7);
      display: none;
      z-index: 1000;
    }

#authModal{
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.7);
      display: none;
      z-index: 998;
    }

.group {
  display: flex;
  line-height: 30px;
  align-items: center;
  position: relative;
  max-width: 200px;
}

.input {
    background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
}

.input::placeholder {
  color: #94a3b8;
}

.input:focus, input:hover {
  outline: none;
  border-color: rgba(129, 140, 248);
  background-color: #fff;
  box-shadow: 0 0 0 5px rgb(129 140 248 / 30%);
}

.icon {
  position: absolute;
  left: 1rem;
  fill: none;
  width: 1rem;
  height: 1rem;
}

.modal-content {
    background: #00000087;
    padding: 15px 30px 15px 15px;
    border-radius: 0.5rem;
    max-width: 300px;
    width: 100%;
}

.modal-content input {
      width: 100%;
      margin-bottom: 0.5rem;
      padding: 0.5rem;
    }

.pfp-inline {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.5rem;
}


.fab {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1d9bf0;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 999;


    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.5, 1, 0.5, 1);
    opacity: 4;
    transform: translateX(0);
}

.fab:hover {
    box-shadow: 0 0 15px rgba(29, 155, 240, 0.8);
    transform: scale(1.1);
}

.fab svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

.modal .modal-content {
    position: relative;
    padding: 1rem;
    max-width: 400px;
}

.modal .modal-content h3 {
    margin-top: 0;
}

.modal .modal-content textarea {
    width: 100%;
    margin-bottom: 10px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

.post-menu-container {
    position: absolute;
    top: 10px;
    right: 10px;
}

.post-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    height: auto;
    width: auto;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: #222;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 1;
    border-radius: 4px;
    min-width: 150px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-item:hover {
    background-color: #333;
}

.delete-option {
    color: red;
}

.confirm-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}

#replyModal .modal-content {
    max-width: 600px;
    width: 90%;
    padding: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

#replyModal #originalPost {
    border: 1px solid #444;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

#replyModal #replyInput {
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
}

#replyModal #sendReplyBtn {
    width: 100%;
    margin-bottom: 1rem;
}

#repliesFeed {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

#repliesFeed .post {
    background-color: #222;
    border: 1px solid #444;
    margin-bottom: 0.5rem;
}

.post .post-actions {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.action-bar {
    display: flex;
    align-items: center;
    margin-top: 0.75rem;
    gap: 20px; 
}

.action-group {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.action-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.action-btn:active {
    transform: scale(0.85);
}

.action-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 1.5;
    fill: transparent; 
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.action-btn.liked svg {
    fill: #f91880; 
    stroke: none;
}

.action-btn.saved svg {
    fill: #1d9bf0;
    stroke: none;
}

.action-count {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
    min-width: 10px;
}

.post .reply-button {
    background-color: transparent;
    color: #1d9bf0;
    border: none;
    padding: 0;
    font-size: 0.9em;
    font-weight: normal;
    cursor: pointer;
    border-radius: 30px;
}

#replyModal .original-post {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    background-color: #1a1a1a;
}

#imageInput{
    text-align: center;
    align-items: center;
    align-content: center;
    color: #1d9bf0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#postBtn{
    border-radius:50px;
}
.reply-btn{
    border-radius: 15px;
    margin-top: 10px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 220px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.sidebar h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 20px;
}

.sidebar a {
    color: #ddd;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 16px;
    align-items: center;
    vertical-align: middle;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #fff;
}
.nav-icon {
    display: none;
    width: 40px;  
    height: auto;
    cursor: pointer;
    filter: brightness(0.85);
    transition: filter 0.2s;
    align-items: center;
    text-align: center;
    align-content: center;
    align-self: center;
}

    .logo-text {
    display: none;
    font-size: 3.5rem;
    color: #000000;
    text-shadow:
    0 0 5px #ffffff,
    0 0 10px #ffffff,
    0 0 20px #ffffff,
    0 0 40px #ffffff;
    font-weight: normal;
    text-align: center;
    margin: 0px;
    font-family: sans-serif;
    }

.nav-icon:hover {
    filter: brightness(1.2);
}

.split-container {
    display: flex;
    gap: 1.5rem;
    margin-left: 240px; 
    padding: 20px;
}

.split-column {
    flex: 1;
    background-color: #111; 
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #333;
    min-height: 80vh;
}

.split-column h2 {
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #1d9bf0;
    text-align: center;
}


@media (max-width: 800px) {
    .split-container {
        flex-direction: column;
        margin-left: 0;
        padding-top: 60px; 
    }
    .sidebar {
        display: none; 
    }

}

.container.wide-mode {
    max-width: 100% !important; 
    margin: 0;
    padding: 0;
}

.container.wide-mode header {
    margin-left: 220px; 
    text-align: center;
    padding-top: 20px;
}

.split-container {
    display: flex;
    flex-direction: row;
    margin-left: 240px;      
    width: calc(100% - 240px); 
    padding: 0 5%;           
    gap: 30px;               
    box-sizing: border-box;  
}

.split-column {
    flex: 1;                 
    min-width: 0;            
    background-color: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
}

@media (max-width: 800px) {
    .container.wide-mode header {
        margin-left: 0;
    }
    .split-container {
        flex-direction: column;
        margin-left: 0;
        width: 100%;
        padding: 60px 15px 15px 15px; 
    }
}

.container.wide-mode header .logo {
    max-width: 600px; 
    width: 100%;      
    height: auto;     
}

.profile-card {
    position: absolute;
    background-color: #000;
    border: 1px solid #333;
    padding: 15px;
    border-radius: 10px;
    width: 250px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    display: none; 
    pointer-events: auto; 
}

.profile-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 2px solid #1d9bf0;
}

.profile-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.1rem;
}

.profile-card p {
    color: #888;
    font-size: 0.9rem;
    margin: 5px 0 15px 0;
    word-wrap: break-word;
}

.profile-card button {
    width: 100%;
    border-radius: 20px;
}

.dm-container {
    display: flex;
    flex-direction: column;
    height: 80vh; 
}

.dm-list-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: background 0.2s;
}

.dm-list-item:hover {
    background-color: #111;
}

.dm-list-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.dm-list-item span {
    font-weight: bold;
    color: white;
}

.dm-empty-state {
    text-align: center;
    margin-top: 50px;
    color: #666;
    font-size: 1.2rem;
}

.chat-view {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #333;
    background-color: #000;
    position: sticky;
}

.back-btn {
    background: none;
    font-size: 1.5rem;
    padding: 0 15px;
    color: white;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: none;
    background: #222;
    color: white;
}

.message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 80%;
}

.message-row img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.message-row.self {
    align-self: flex-end;
    flex-direction: row-reverse; 
}

.message-row.self .bubble {
    background-color: #1d9bf0;
    color: white;
    border-radius: 15px 15px 0 15px;
    padding: 10px 15px;
}

.message-row.other {
    align-self: flex-start;
}

.message-row.other .bubble {
    background-color: #1a1a1a; 
    border: 1px solid #333;
    color: white;
    border-radius: 15px 15px 15px 0;
    padding: 10px 15px;
}

  #imageInput {
    display: none;
  }

  .custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
    transition: background-color 0.2s;
  }

  .custom-file-upload:hover {
    background-color: #333; 
  }

  .file-name {
    margin-left: 10px;
    font-family: sans-serif;
    color: #666;
  }

#postModalImageInput{
    text-align: center;
    align-items: center;
    align-content: center;
    color: #1d9bf0;
}

#postModalInput {
    background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
    resize: none;
    height: 80px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#loginUsername{
    background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
}

#loginPassword{
    background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
}

#signupPassword{
    background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
}

.mobile-navbar {
            display: none;
            position: fixed;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 500px;

            border-top: 1px solid var(--theme-border);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 24px;
            z-index: 1000;
            padding: 8px 12px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ddd;
    flex: 1;
}
.sidebar a:hover .nav-icon-small,
.mobile-navbar .nav-item:hover .nav-icon-small {

  filter: drop-shadow(0 0 8px var(--theme-accent, #ffffff)); 
  transform: scale(1.1); 
}
.nav-icon-small {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    filter: brightness(0.85);
    transition: filter 0.2s;
    vertical-align: middle;
    fill: currentColor;
}

    .sidebar-text {
    color: #000000;
    text-shadow:
    0 0 5px #ffffff,
    0 0 10px #ffffff,
    0 0 20px #ffffff,
    0 0 40px #ffffff;
    font-weight: normal;
    text-align: center;
    margin: 0px;
    font-family: sans-serif;
    padding-bottom: 10px;
    }
    .sidebar-text {
    font-size: 1.5rem;
    color: #000000;
    text-shadow:
    0 0 5px #ffffff,
    0 0 10px #ffffff,
    0 0 20px #ffffff,
    0 0 40px #ffffff;
    font-weight: bold;
    text-align: center;
    margin: 0px;
    font-family: sans-serif;
    padding-bottom: 10px;
    }
.nav-item:hover .nav-icon-small {
    filter: brightness(1.2);
}

        .nav-items {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
        }
        .nav-item {
            color: var(--theme-text-secondary);
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            padding: 8px 12px;
            flex: 1;
            border-radius: 16px;
            transition: background 0.2s, color 0.2s;
        }
        .nav-item:hover {
            background-color: rgba(255,255,255,0.05);
            color: var(--theme-text-primary);
        }
        .nav-item svg {
            width: 22px;
            height: 22px;
            margin-bottom: 4px;
            fill: currentColor;
        }


@media (max-width: 1320px) {
    .sidebar {
        display: none;
    }
    
    .mobile-navbar {
        display: block;
    }
    
    .container {
        padding-bottom: 70px; 
    }
    
    .container.wide-mode {
        padding-bottom: 70px;
    }
}

@media (max-width: 1320px) {
    #accountBtn {
        bottom: 80px; 
    }
    
    .fab {
        bottom: 80px; 
    }
}
@media (max-width: 1320px) and (max-height: 900px) {
    .sidebar {
        display: none;
    }
    
    .mobile-navbar {
        display: block;
    }
    
    .container {
        padding-bottom: 70px;
    }
    
    #accountBtn {
        bottom: 80px;
    }
    
    .fab {
        bottom: 85px;
    }
}

#editModalInput{
    background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
}

#editPostBtn{
    border-radius:50px;
}

#deleteConfirmBtn{
    border-radius:50px;
}

#sendReplyBtn{
    border-radius:50px;
}

#replyInput{
    background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
}

#closeDeleteConfirm{
    border-radius:50px;
}

.action-btn.retweeted svg {
    fill: #00ba7c !important; 
    stroke: none !important;
}

.action-btn.retweeted {
    color: #00ba7c;
}

.action-btn.retweeted svg path {
    fill: #00ba7c;
}

.action-bar {
    display: flex;
    align-items: center;
    margin-top: 0.75rem;
    gap: 15px; 
}

.action-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 1.5;
    fill: transparent;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.action-btn:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.form-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
    box-sizing: border-box;
}
    
    
.responsive-form {
    width: 100%;
    height: 750px;
    border: none;
    display: block;
    margin: 0 auto;
}
    
    
@media (max-width: 768px) {
    .responsive-form {
        height: 850px;
    }
}
    
@media (max-width: 480px) {
    .responsive-form {
        height: 900px;
    }
}

.blackberry-device {
  -webkit-text-size-adjust: 100%;
}

.blackberry-device *:focus {
  outline: 1px solid #1d9bf0;
}

.blackberry-touch button {
  min-height: 32px;
}

.blackberry-device .chat-messages-area,
.blackberry-device #feed {
  -webkit-overflow-scrolling: touch;
}

.blackberry-device input[type="file"] {
  font-size: 14px;
}

.blackberry-device .modal {
  z-index: 10000;
}
#pfpInput{
    display: none;
}


.pfpUploadLooks {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
    transition: background-color 0.2s;
}

.pfpUploadLooks:hover {
    background-color: #333; 
}

#pfpBtn{
    border-radius:50px;
}

#aboutMeInput{
        background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
}

#aboutMeBtn{
    border-radius:50px;
}

#oldPassword{
        background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
}

#newPassword{
        background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
}

#changePasswordBtn{
    border-radius:50px;
}

#signOutBtn{
    border-radius:50px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.btn-logout {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

#closeSettingsBtn{
    border-radius:50px;
}

#dmSendBtn{
    border-radius:50px;
}

body, html {
    overflow-x: hidden; 
    position: relative; 
}

.download-widget {
    position: absolute; 
    top: 10px;
    right: 1px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.toggle-arrow {
    background: rgba(255, 255, 255, 0);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(29, 155, 240, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 3001;
    flex-shrink: 0;
    margin-right: 5px;
}

.toggle-arrow:hover {
    box-shadow: 0 0 15px rgba(29, 155, 240, 0.8);
    transform: scale(1.1);
}

.download-button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0);
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.5, 1, 0.5, 1);
    margin-right: 8px;
    white-space: nowrap;
    opacity: 1;
    transform: translateX(0);
}

.download-button:hover {
    background: rgba(255, 255, 255, 0);
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.download-button::after {
    content: none; 
}

.download-widget.hidden .download-button {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    margin-right: -50px;
}

.toggle-arrow::after {
    content: ">";
    display: block;
    transition: transform 0.3s ease;
}

.download-widget.hidden .toggle-arrow::after {
    transform: rotate(180deg);
}

.verified-icon .verified-check {
  fill: #007bff; 
  stroke: none;
}
.verified-icon .verified-background {
  fill: #e3f2fd; 
  stroke: none;
}

.post .verified-icon-container {
  position: relative;
  display: inline-block;
  margin-left: 4px; 
}

.post .verified-tooltip {
  position: absolute;
  bottom: -22px; 
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #007bff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  display: none;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.profile-page {
  text-align: center;
  padding: 20px;
}
.profile-page-pfp {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid #1d9bf0;
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
  color: #888;
  font-size: 0.9rem;
}
.follow-btn {
  background-color: #1d9bf0;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}
.follow-btn.following {
  background-color: #333;
  color: #888;
}

.post-follow-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #1d9bf0;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.8rem;
  z-index: 10;
  transition: all 0.2s ease;
}

.post-follow-btn:hover {
  background-color: #1682b5;
  transform: scale(1.05);
}

.post-follow-btn.following {
  background-color: #333;
  color: #888;
}

.post-follow-btn.following:hover {
  background-color: #444;
}

#cardDmBtn {
  margin-bottom: 10px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    overflow-y: auto;
}

.close-modal {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

.response-list {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.response-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.response-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: #a0aec0;
}

.admin-badge {
    background: #667eea;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.ticket-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-open { background: #f56565; }
.status-in_progress { background: #ed8936; }
.status-resolved { background: #48bb78; }
.status-closed { background: #718096; }

.priority-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.priority-low { background: #48bb78; }
.priority-normal { background: #4299e1; }
.priority-high { background: #ed8936; }
.priority-urgent { background: #f56565; }

.stats-btn {
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
  margin: 0 5px;
  text-decoration: underline;
  font-weight: normal;
}

.stats-btn:hover {
  text-decoration: none;
}

.user-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 10px;
}

.user-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.user-item:hover {
  background-color: #f5f5f5;
}

.user-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 10px;
}

.user-item .username {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-item .follow-btn {
  background: none;
  border: 1px solid #ccc;
  padding: 3px 8px;
  border-radius: 15px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.user-item .follow-btn.following {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

#accountBtn, .fab {
  z-index: 1001 !important;
}


.progress-bar {
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-top: 5px;
  width: 100%;
  display: none;
}
.progress {
  height: 100%;
  background: #4CAF50;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s;
}

#loginBtn{
    border-radius:50px;
}

#signupBtn{
    border-radius:50px;
}

.notification-bell {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  background: var(--bg-color, #1a1a2e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s;

    background: rgba(255, 255, 255, 0);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(29, 155, 240, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    margin-right: 0;

}

.notification-bell:hover {
  transform: scale(1.1);
}

.notification-bell svg {
  fill: #fff;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.notification-dropdown {
  position: fixed;
  top: 70px;
  left: 10px;
  width: 350px;
  max-height: 500px;
  background: var(--bg-color, #1a1a2e);
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.5);
  z-index: 1001;
  display: none;
  overflow: hidden;

  font-size: 14px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0);
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.5, 1, 0.5, 1);
  margin-right: 8px;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);

}

.notification-dropdown.show {
  display: block;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #333;
  font-weight: bold;
}

.mark-read-btn {
  background: transparent;
  border: 1px solid #4CAF50;
  color: #4CAF50;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.mark-read-btn:hover {
  background: #4CAF50;
  color: white;
}

.notification-list {
  max-height: 400px;
  overflow-y: auto;
}

.notification-empty {
  padding: 30px;
  text-align: center;
  color: #888;
}

.notification-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #2a2a3e;
  cursor: pointer;
  transition: background 0.2s;
}

.notification-item:hover {
  background: #2a2a3e4d;
}

.notification-item.unread {
  background: rgba(76, 175, 80, 0.1);
  border-left: 3px solid #4CAF50;
}

.notification-item .pfp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.notification-content {
  flex: 1;
}

.notification-text {
  color: #fff;
  font-size: 14px;
}

.notification-text strong {
  color: #4CAF50;
}

.notification-time {
  color: #888;
  font-size: 12px;
  margin-top: 4px;
}

.notification-delete {
  background: transparent;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  padding: 5px;
  opacity: 0;
  transition: opacity 0.2s;
}

.notification-item:hover .notification-delete {
  opacity: 1;
}

.notification-bell:hover {
    box-shadow: 0 0 15px rgba(29, 155, 240, 0.8);
    transform: scale(1.1);
}

.notification-bell {
  position: fixed;
  top: 10px;
  left: 260px;
}

.notification-dropdown {
  position: fixed;
  top: 70px;
  left: 260px;
}

.auth-btn {
  background: #4a90d9;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.auth-btn:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn-secondary {
  background: #666;
}

.auth-btn-secondary:hover {
  background: #555;
  box-shadow: 0 4px 12px rgba(102, 102, 102, 0.4);
}

.auth-btn-danger {
  background: #e74c3c;
}

.auth-btn-danger:hover {
  background: #c0392b;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.auth-links {
  text-align: center;
  margin-top: 10px;
}

.auth-links a {
  color: #4a90d9;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

.auth-links a:hover {
  color: #357abd;
}

.account-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.account-modal-pfp {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4a90d9;
}

#imageViewerModal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

#imageViewerModal .modal-content {
  position: relative;
  max-width: none;
  width: auto;
  height: auto;
  background: transparent;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#fullSizeImage {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#imageViewerModal .close-button {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}

#imageViewerModal .close-button:hover {
  color: #ccc;
}

@media (max-width: 600px) {
  #accountModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    overflow: auto !important;
  }
  
  #accountModal .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 15px !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }
  
  #accountModal .account-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  #accountModal .account-modal-pfp {
    width: 50px !important;
    height: 50px !important;
  }
  
  #accountModal input[type="text"],
  #accountModal input[type="password"] {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
  }
  
  #accountModal button {
    width: 100% !important;
    padding: 12px !important;
    font-size: 14px !important;
    margin: 5px 0 !important;
  }
  
  #accountModal hr {
    margin: 15px 0 !important;
  }
  
  #accountModal #twoFactorStatus {
    padding: 10px !important;
    margin: 10px 0 !important;
  }
  
  #accountModal #manageTwoFactorBtn {
    width: 100% !important;
    margin-top: 10px !important;
  }
  
  #accountModal .file-name {
    font-size: 12px;
  }
  
  #accountModal .pfpUploadLooks {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 380px) {
  #accountModal .modal-content {
    padding: 10px !important;
  }
  
  #accountModal h2 {
    font-size: 18px !important;
  }
  
  #accountModal input[type="text"],
  #accountModal input[type="password"] {
    font-size: 13px !important;
    padding: 8px !important;
  }
}

#accountModal .close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
}

#accountModal .close-button:hover {
    color: #1d9bf0;
}

#accountModal .modal-content {
    position: relative;
}

.auth-btn-secondary {
  background: #666 !important;
  color: #fff !important;
}

.auth-btn-secondary:hover {
  background: #555 !important;
}

.dm-search-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.dm-search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 20px;
    background: #222;
    color: #fff;
    font-size: 14px;
}

.dm-search-input:hover {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 20px;
    background: #222;
    color: #fff;
    font-size: 14px;
}

.dm-search-input:focus {
    outline: none;
    border-color: #4a90d9;
}

.dm-search-btn {
    padding: 10px 15px;
    background: #4a90d9;
    border: none;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

.dm-search-btn:hover {
    background: #357abd;
}

.dm-search-results {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #1a1a1a;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #2a2a2a;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.search-result-info {
    flex: 1;
}

.search-result-username {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.search-result-about {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.search-start-chat {
    padding: 6px 12px;
    background: #4a90d9;
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.search-start-chat:hover {
    background: #357abd;
}

.dm-empty-state {
    text-align: center;
    color: #888;
    padding: 30px;
    font-size: 14px;
}

#accountModal .modal-content {
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 #222;
}

#accountModal .modal-content::-webkit-scrollbar {
  width: 8px;
}

#accountModal .modal-content::-webkit-scrollbar-track {
  background: #222;
}

#accountModal .modal-content::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

#accountModal .modal-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#newUsernameInput {
    background: radial-gradient(circle at center,
                  #646464 0%,
                  #545454 25%,
                  #010000 60%,
                  #010101 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    font: bold;
    color: white;
}

#changeUsernameBtn {
    border-radius:50px;
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 14px;
    transition: background-color 0.2s;
}

  .custom-file-upload:hover {
    background-color: #333; 
  }

.custom-file-upload:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.custom-file-upload {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #1d9bf0;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

#profilePageModal.modal {
  background: transparent !important;
}

.chat-view {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 220px;
  right: 0;
  bottom: 60px;
  background-color: var(--theme-bg-primary);
  z-index: 100;
}

.chat-view::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: var(--chat-bg-image, none);
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
  z-index: -1;
  opacity: 0.6;
}

.chat-view::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

.chat-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 200;
}

.chat-header-logo {
  font-size: 1.2rem;
  margin-left: auto;
  padding-right: 10px;
}

.chat-header-logo span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
}

.chat-input-area {
  padding: 15px 20px;
  display: flex;
  gap: 12px;
  position: fixed;
  bottom: 60px;
  left: 220px;
  right: 0;
  z-index: 300;
}

.chat-input-area input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
  color: white;
  font-size: 1rem;
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--theme-accent, #667eea);
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.chat-input-area button {
  padding: 14px 25px;
  border-radius: 25px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.chat-input-area button:hover {
  transform: scale(1.05);
}

@media (max-width: 1320px) {
  .chat-view {
    left: 0;
    bottom: 70px;
  }
  .chat-input-area {
    left: 0;
    bottom: 70px;
  }
}

@media (max-width: 1320px) {
  .chat-view {
    left: 0;
    bottom: 70px;
  }
  .chat-input-area {
    left: 0;
    bottom: 70px;
  }
}

@media (min-width: 1321px) {
  .chat-input-area {
    bottom: 0;
  }
}

.chat-header-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: auto;
  padding-right: 10px;
  color: #000000;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px #ffffff,
    0 0 20px #ffffff,
    0 0 40px #ffffff;
  font-family: sans-serif;
  display: none;
}

.chat-input-area {
    padding: 15px 20px;
    display: flex;
    align-items: center;

    position: fixed;
    bottom: 60px;
    left: 220px;
    right: 0;
    z-index: 300;

}

.chat-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.chat-input-area input {
    width: 100%;
    padding: 14px 50px 14px 20px; 
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--theme-accent, #667eea);
    background: rgba(255, 255, 255, 0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.chat-input-area button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.chat-input-area button:hover {
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 1320px) {
    .chat-input-area {
        left: 0;
    }
    .chat-header-logo{
      display: block;
    }

}

@media (min-width: 1321px) {
    .chat-input-area {
        bottom: 0;
    }
}

@media (max-width: 1320px) {
    .chat-messages-area {
        position: absolute !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 80px !important;
        padding: 20px !important;
        padding-bottom: 100px !important;
        height: auto !important;
        flex: none !important;
        overflow-y: auto !important;
    }
    
    .chat-input-area {
        bottom: 70px !important;
        left: 0 !important;
        right: 0 !important;
    }
}

@media (max-width: 480px) {
    .chat-messages-area {
        padding-bottom: 120px !important;
    }
}

.sidebar {
  width: 180px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--theme-glass-border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--theme-text-secondary);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  padding: 8px;
  transition: color 0.2s;
  margin-bottom: 2px;


}
    .sidebar a:hover {

  color: #ffffff !important;
  transform: translateX(4px);
    }
.sidebar a:hover .nav-icon-small,
.mobile-navbar .nav-item:hover .nav-icon-small {

  filter: drop-shadow(0 0 8px var(--theme-accent, #ffffff)); 
  transform: scale(1.1); 
}

.sidebar a:hover,
.mobile-navbar .nav-item:hover {

  color: var(--theme-accent, #ffffff);
}
.sidebar a:hover {

  color: #ffffff !important;
  transform: translateX(4px);
}
.sidebar a:hover svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
.sidebar a:hover {


  transform: translateX(4px);
}

.sidebar a.active,
.sidebar a.sidebar-item-active {
  background: linear-gradient(90deg, var(--theme-accent) 0%, transparent 100%);
  color: #fff;
  font-weight: 600;
}

.sidebar a.active::before,
.sidebar a.sidebar-item-active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

.sidebar .nav-icon-small {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: fill 0.2s ease;
}

.sidebar img.nav-icon {
  margin-bottom: 2rem;
  margin-left: 0;
  width: 32px; 
  height: 32px;
}

.sidebar a[href="./settings.html"] {
  margin-top: auto;
  padding-top: 1rem;
  padding-bottom: 30px;

}
.sidebar a.active .nav-icon-small,
.sidebar a.sidebar-item-active .nav-icon-small {
  stroke: white;
  fill: #ffffff !important;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}
@media (max-width: 1320px) {
  .sidebar {
    display: none !important;
  }
  .logo-text {
    display: block;
  }

  .content-area {
    margin-left: 0 !important;
    width: 100%;
    padding: 2rem 2rem; 
  }

  .mobile-navbar {
    display: flex !important;
  }
}

.sidebar a.active,
.sidebar a.sidebar-item-active {
  background: linear-gradient(90deg, var(--theme-accent) 0%, transparent 100%);
  color: #ffffff !important; 
  font-weight: 600;
}

.sidebar a.active svg,
.sidebar a.sidebar-item-active svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)); 
}

.sidebar a.active::before,
.sidebar a.sidebar-item-active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #ffffff;
  box-shadow: 0 0 10px #ffffff;
}

.sidebar a:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}
.sidebar a:hover svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

.sidebar {
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: 16px !important;
  border-radius: 24px !important;
  max-height: 90vh !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  overflow-y: auto !important;
}

