/* Dropdown content styles */
#mp3tv-dropdown,
#social-dropdown {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    background-color: transparent;
    padding: 0 8px;
    margin: 0;
    will-change: max-height, opacity;
    border-radius: 4px;
}

#mp3tv-dropdown.expanded,
#social-dropdown.expanded {
    max-height: 500px; /* Adjust based on content */
    opacity: 1;
    padding: 8px 8px 12px;
    margin-top: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

@font-face {
    font-family: 'MrRobot';
    src: url('../fonts/MrRobot.woff2') format('woff2'),
         url('../fonts/MrRobot.woff') format('woff');
}

@font-face {
    font-family: 'daft Font';
    src: url('../fonts/daft Font.ttf') format('truetype');
}

@font-face {
    font-family: 'MainframeOpto';
    src: url('../fonts/mainframe-opto.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    /* Try local absolute path first */
    background: url('/img/retrix.png') no-repeat center center fixed !important;
    background-size: cover !important;
    min-height: 100vh;
    width: 100%;
}

/* Dropdown Styling */
.dropdown-header {
    cursor: pointer;
    user-select: none;
    padding: 8px;
    margin: 4px 0;
    border-radius: 4px;
    transition: background-color 0.2s;
    position: relative;
    z-index: 1;
}

.dropdown-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    padding: 4px 8px;
    margin: 4px 0 12px 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-content a {
    display: block;
    color: #fff;
    padding: 8px 12px;
    margin: 4px 0;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
    border-left: 3px solid #4CAF50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message {
    margin: 10px 0;
    padding: 10px 16px;
    background: #4CAF50;
    border-radius: 16px 16px 4px 16px;
    max-width: 75%;
    margin-left: auto;
    margin-right: 12px;
    color: #fff;
    text-align: right;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    word-break: break-word;
}

.ai-message {
    margin: 10px 0;
    padding: 10px 16px;
    background: #2196F3;
    border-radius: 16px 16px 16px 4px;
    max-width: 75%;
    margin-right: auto;
    margin-left: 12px;
    color: #fff;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
    word-break: break-word;
}

.user-message strong,
.ai-message strong {
    color: inherit;
    font-weight: bold;
}
/* If this still fails, try this instead:
body {
    background: url('https://via.placeholder.com/800x600.png?text=Test+BG') no-repeat center center fixed !important;
    background-size: cover !important;
}
*/

.online-users-container {
  position: relative;
  display: inline-block;
  margin-left: 20px;
  cursor: pointer;
  z-index: 5000;
}

.mid-section .online-users-label,
.mid-section .media-title,
.mid-section .AI-title,
.mid-section .podcast-title {
    position: relative;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    background: #2d8cf0;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    font-size: 1rem;
    display: inline-block;
}

.mid-section .online-users-label:hover,
.mid-section .media-title:hover,
.mid-section .AI-title:hover,
.mid-section .podcast-title:hover,
.mid-section .online-users-label:focus,
.mid-section .media-title:focus,
.mid-section .AI-title:focus,
.mid-section .podcast-title:focus {
    background: #1b6cb8;
}

.online-users-tooltip {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.95em;
  white-space: nowrap;
  z-index: 5100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: none; /* Allows clicks to pass through tooltip */
}

.online-users-label:hover .online-users-tooltip,
.online-users-label:focus .online-users-tooltip {
  display: block;
}

/* User search styling */
.user-search-container {
  position: relative;
  margin: 10px 0;
  width: 100%;
}

.search-field-wrapper {
  display: flex;
  width: 100%;
}

#user-search {
  flex: 1;
  padding: 8px 10px;
  border-radius: 4px 0 0 4px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
  font-size: 14px;
}

#search-button {
  background: #2d8cf0;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 12px;
  cursor: pointer;
}

#search-button:hover {
  background: #1b6cb8;
}

.dropdown-results {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: #222;
  border: 1px solid #444;
  border-top: none;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}

.search-result-item {
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
  border-bottom: 1px solid #333;
}

.search-result-item:hover {
  background: #333;
}

.search-result-item.online {
  color: #4caf50;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #4caf50;
  border-radius: 50%;
  margin-left: 5px;
}

/* Direct Message Modal */
#direct-message-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

#direct-message-modal .modal {
  background-color: #181c24;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: #fff;
}

#direct-message-modal .modal__title {
  margin-top: 0;
  color: #fff;
  font-size: 1.5rem;
}

.status-indicator {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

.dm-message-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.dm-social-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.social-button {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    margin: 2px 0;
}

.social-button.facebook {
    background-color: #3b5998;
}

.social-button.youtube {
    background-color: #ff0000;
}

.social-button.iheart {
    background-color: #c8222a;
}


.social-button.spotify {
    background-color: #1DB954;
}

.social-button.peacock {
    background-color: #00A4BD;
}
.social-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
#dm-message {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  background-color: #242933;
  color: #fff;
}

.dm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.dm-actions button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

#dm-attach-image {
  background-color: #444;
  color: #fff;
}

#dm-send {
  background-color: #4285f4;
  color: white;
}

.preview-container {
  position: relative;
  display: inline-block;
  margin: 10px 0;
}

.remove-preview {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ff5252;
  color: white;
  border: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#direct-message-modal .modal__btn {
  background-color: #444;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  float: right;
  color: #fff;
}

#direct-message-modal .modal__btn:hover {
  background-color: #555;
}

.users-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 6000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(20, 20, 20, 0.7);
}

.users-modal-window {
  background: #181c24;
  color: #fff;
  padding: 32px 24px 24px 24px;
  border-radius: 10px;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 6px 32px rgba(0,0,0,0.4);
  position: relative;
}

.users-modal-close {
  position: absolute;
  top: 9px;
  right: 13px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8em;
  cursor: pointer;
}

.users-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0 0;
}

.users-list li {
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

.users-list li.current-user {
  color: #00eaff;
  font-weight: bold;
}

    /* margin: 0;
    padding: 0;
    background: url('../img/chat_back.jpg') no-repeat center center fixed;
    background-size: cover; */
    /* background: #0d1117; */
}

h1 {
    font-weight: 100;
    font-family: 'Roboto Mono', monospace;
    font-size: 1em;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 50px);
    margin-top: 50px;
}

.chat-container {
    background: url('../img/red_blue.jpg') no-repeat center center fixed;
    /* background: url('../img/chat_wall.jpg') no-repeat center center fixed; */
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.3);
    min-height: 100vh;
    position: relative; /* Ensure proper stacking context */
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 950px;
    height: 95%;
    max-height: 950px;
    /*background-color: #161b22;  Discord-like dark gray */
    border: 1px solid #00FF00;
    /* Alternative options:
    background-color: #36393f; // Darker gray
    background-color: #40444b; // Medium gray
    background-color: #292b2f; // Deeper gray
    */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
    padding-bottom: 1px; /* Adjust padding-bottom to make it thinner */
    transition: height 0.5s ease-out; /* Add transition for height */
}

.chat-header {
    background-image: url('../img/ufo_banner.png');
    background-size: cover;
    background-position: center;
    height: 100px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00FF00;
    padding-bottom: 5px;
    box-sizing: border-box;
    margin-bottom: 10px;
    border-radius: 10px;
}

.chat-header h1 {
    font-family: 'daft Font', sans-serif;
}

.chat-header a {
    text-decoration: none;
    color: inherit;
}

#toggle-section {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'MainframeOpto', sans-serif;
    color: #007bff;
    position: relative;
}

#toggle-section .triangle-up,
#toggle-section .triangle-down {
    font-size: 24px;
    margin: 0 5px;
}

#toggle-section .hover-text {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 5px;
    border: 1px solid black;
    border-radius: 3px;
    font-size: 14px;
}

#toggle-section:hover .hover-text {
    display: block;
}

#mid-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    grid-template-rows: 1fr 1fr; /* Two rows */
    gap: 10px; /* Adjust gap between sections as needed */
    font-family: 'MainframeOpto', sans-serif;
    color: black;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    max-height: 200px; /* Initially hidden */
    /* margin-top: 85px; */
    font-weight: 1em;
}

#mid-section.open {
    max-height: 177px; /* Adjust this value based on your content height */
    display: grid; /* Ensure grid display */
}

.mid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    font-family: 'MainframeOpto', sans-serif;
    color: #fff;
    padding: 10px;
    background: transparent;
} 

.chat-users, 
.media-section, 
.AI-section, 
.podcast-section {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
}

/* Hover effect for sections */
.chat-users:hover,
.media-section:hover, 
.AI-section:hover, 
.podcast-section:hover {
    border-color: rgba(0, 234, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.2);
}

/* Specific adjustment for spacing in chat-users */
.chat-users .chat-header {
    margin-bottom: 2px; /* Add space between chat-header and chat-messages 
}

.chat-users {
    grid-column: 1 / 2; /* First column */
    grid-row: 1 / 2; /* First row */
}

.media-section {
    grid-column: 2 / 3; /* Second column */
    grid-row: 1 / 2; /* First row */
}

.AI-section {
    grid-column: 1 / 2; /* First column */
    grid-row: 2 / 3; /* Second row */
}

.podcast-section {
    grid-column: 2 / 3; /* Second column */
    grid-row: 2 / 3; /* Second row */
}

.chat-users {
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'MainframeOpto', monospace;
    text-transform: none !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
}

.chat-time-user {
    font-family: 'MrRobot', monospace;
}

.ai-item  {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}
/* Title font color for media, AI, and Podcast sections */
.media-title,
.AI-title,
.podcast-title {
    color: #fffffff1; /* Adjusted title font color */
}
.ai-item:hover { 
    background: rgba(255, 255, 255, 0.2);
}

.ai-item-link  {
    text-decoration: none;
}

.ai-button  {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 4px;
    background: rgba(0, 123, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.ai-button:hover  {
    background: rgba(0, 123, 255, 0.2);
}

.chat-messages {
    background-image: url('../img/designer.jpeg');
    background-size: cover;
    background-position: center;
    font-family: 'MainframeOpto', Arial, sans-serif;
    text-transform: none !important;
    color: #00FF00;
    font-size: 16px;
    line-height: 1.5;
    flex: 1; /* Make it flexible to take up available space */
    overflow-y: auto;
    margin-top: 7px; 
    margin-bottom: 5px;
    padding: 10px 15px;
    border: 1px solid #00FF00;
    border-radius: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 20px 20px 0px 20px;
    max-width: 80%;
    word-wrap: break-word;
    margin-bottom: 10px;
    font-family: 'MainframeOpto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    display: inline-block;
    clear: both;
    border-radius: 10px;
    text-transform: none !important;
}

.chat-message span, 
.chat-message a, 
.chat-message p {
    font-family: Arial, sans-serif !important; /* Override the MainframeOpto font */
    text-transform: none !important;
}

:root {
    --user-chat-color: #09c7ec10; /* Default color for user chat bubbles */
}

.chat-message.user1 {
    background-color: var(--user-chat-color);
    color: white;
    float: right;
}

.chat-message.user2 {
    background-color: #000801;
    color: #00FF00;
    float: left;
}

.chat-link {
    color: #0066cc;
    text-decoration: underline;
    word-break: break-all;
}

.chat-link:hover {
    color: #0044aa;
    text-decoration: none;
}

.chat-link:visited {
    color: #551A8B;
}

.chat-message img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 4px;
    margin: 5px 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-message img:hover {
    transform: scale(1.05);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.chat-image {
    max-width: 100%;
    cursor: pointer;
}

.chat-input {
    width: 100%;
    max-width: 9000px;
    height: 60px;
    padding: 1px;
    font-size: 1.5rem;
    border: 1px solid white;
    background-color: #000;
    color: whitesmoke;
    display: block;
    margin: 10px auto;
    resize: none;
    border-radius: 5px;
    padding-bottom: 50px;
}

.send-button {
    background-color: blue;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.send-button:hover {
    background-color: blue;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 10px;
}

.button-container button {
    flex: 1;
    padding: 8px 20px;
    margin: 5px;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    cursor: pointer;
    color: #fff;
    background: transparent !important;
    box-shadow: none;
    opacity: 0.85;
    transition: background 0.2s, color 0.2s, border 0.2s, opacity 0.2s;
}

.button-container button:hover,
.button-container button:focus {
    background: rgba(255,255,255,0.10);
    color: #00eaff;
    border: 1.5px solid #00eaff;
    opacity: 1;
}

.button-container a,
a#modal-closed.link-1 {
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px;
    background: transparent !important;
    color: #fff;
    box-shadow: none;
    opacity: 0.85;
    transition: background 0.2s, color 0.2s, border 0.2s, opacity 0.2s;
    padding: 8px 20px;
    margin: 5px;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

a#modal-closed.link-1:hover,
a#modal-closed.link-1:focus {
    background: rgba(255,255,255,0.10) !important;
    color: #00eaff;
    border: 1.5px solid #00eaff;
    opacity: 1;
}

.button-container a.link-1 {
    flex: 1;
    padding: 8px 20px;
    margin: 5px;
    font-size: 15px;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 100px;
    cursor: pointer;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 0.85;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s, opacity 0.2s;
}

.button-container a:hover,
.button-container a:focus,
.button-container a.link-1:hover,
.button-container a.link-1:focus {
    background: rgba(255,255,255,0.10) !important;
    color: #00eaff !important;
    border: 1.5px solid #00eaff !important;
    opacity: 1;
}



/* Style section headers to match ONLINE USERS label */
.chat-users h2,
.media-section h2,
.AI-section h2,
.podcast-section h2,
.mid-section > div > h2,
#mid-section > div > h2 {
    background: #2d8cf0;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 6px;
    margin: 0 0 15px 0;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}

.chat-users h2:hover,
.media-section h2:hover,
.AI-section h2:hover,
.podcast-section h2:hover,
.mid-section > div > h2:hover,
#mid-section > div > h2:hover {
    background: #1b6cb8;
}

.send-button {
    background-color: transparent;
    border: 1px solid rgba(46, 204, 113, 0.3) !important;
    color: #2ecc71;
}

.send-button:hover {
    background-color: rgba(46, 204, 113, 0.1) !important;
    border-color: #2ecc71 !important;
    color: #2ecc71;
}

.clear-chat-button {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff;
}

.clear-chat-button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #00eaff !important;
    color: #00eaff;
}

.logout-button {
    background-color: transparent;
    border: 1px solid rgba(220, 53, 69, 0.3) !important;
    color: #dc3545;
}

.logout-button:hover {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: #ff6b6b !important;
    color: #ff6b6b;
}

#file-upload-form {
    margin-top: 10px;
}

#file-input {
    color: black;
    font-size: 16px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

#upload-button {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#upload-button:hover {
    background-color: #0056b3;
}


.image-container {
    text-align: center;
    border-radius: 24px;
    border: 2px solid #2ecc71;
}

.image-container img {
    display: inline-block;
}

button[onclick*="spacechat.php"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #2ecc71;
    padding: 14px 40px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
    cursor: pointer;
}

/* .chat-users {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
} */

.chat-users h2 {
    color: #fffffff1;
    margin-bottom: 10px;
}

#online-users {
    list-style-type: none;
    padding: 0;
}

#online-users li {
    display: inline-block;
    margin-right: 10px;
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.chat-users {
    border-bottom: 1px solid #ccc;
    font-family: 'MainframeOpto', monospace;
    text-transform: none !important;
}

.online-user {
    cursor: pointer;
    transition: color 0.2s;
}

.online-user:hover {
    color: #00FF00;
}

#color-picker {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.current-user .online-user {
    color: var(--user-chat-color);
    font-weight: bold;
}

/* Login form styles */
.frame {
    width: 450px;
    padding: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #191919;
    text-align: center;
    font-family: BrunoAceSc-Regular;
    border-radius: 24px;
    border: 12px solid #3498db; /* Blue border */
}

.frame h1, h2, p {
    color: blue;
    font-size: 15px;
    text-transform: none;
    font-weight: normal;    
}

/* Common styles for text and password inputs for Login and Register forms */
.frame input[type="text"],
.frame input[type="password"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #3498db;
    padding: 14px 10px;
    width: 200px;
    outline: none;
    color: chartreuse;
    border-radius: 24px;
    transition: 1s;
}

/* Focus styles for text and password inputs */
.frame input[type="text"]:focus,
.frame input[type="password"]:focus {
    width: 280px;
    border-color: #2ecc71;
}

/* Styles for the submit button */
.frame input[type="submit"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    padding: 14px 40px;
    outline: none;
    color: white;
    background-color: #3498db;
    border-radius: 24px;
    transition: 0.25s;
    cursor: pointer;
}

/* Hover styles for the submit button */
.frame input[type="submit"]:hover {
    background: cornflowerblue;
}

/* Media section styles moved below - see line ~1174 */

.media-title {
    margin-bottom: 10px;
}

.void-link {
    text-decoration: none;
    color: #333;
    margin-bottom: 10px;
}

.social-buttons-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px; /* Reduced from 10px */
}

.social-button {
    display: inline-block;
    font-size: 0.65rem; /* Reduced from 0.875rem */
    font-weight: 400;
    padding: 0.4rem 1rem; /* Reduced from 0.625rem 1.25rem */
    text-align: center;
    border-radius: 0.4rem; /* Slightly reduced from 0.5rem */
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 4px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.social-button:hover {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.social-button.facebook {
    background-image: linear-gradient(to right, #3b82f6, #2563eb, #1d4ed8);
}

.social-button.youtube {
    background-image: linear-gradient(to right, #ef4444, #dc2626, #b91c1c);
}

/* Media Section */
.media-section {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 15px;
    padding: 10px 0;
    margin-bottom: 15px;
    width: 100%;
    justify-content: space-between;
}

.dropdown-section {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    background-color: transparent;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
    margin: 0;
    max-width: 48%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-header {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    border-radius: 4px;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.dropdown-header:hover {
    background-color: #3a3f4a;
}

.media-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
    color: #8a94a5;
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
    background-color: transparent;
    padding: 0 8px;
    margin: 0;
    will-change: max-height, opacity;
}

.dropdown-content.expanded {
    max-height: 500px; /* Adjust based on your content height */
    opacity: 1;
    padding: 8px 8px 12px;
    margin-top: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 13px;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: #333a47;
    color: #fff;
    padding-left: 25px;
    border-left-color: #2d8cf0;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 13px;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: #333a47;
    color: #fff;
    border-left-color: #4a90e2;
    padding-left: 25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .media-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .dropdown-section {
        width: 100%;
    }
}
/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    .social-button {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    }
}
.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

/* Specific styling for message text to prevent uppercase */
.message-text {
    font-family: Arial, sans-serif !important;
    text-transform: none !important;
    font-size: 16px;
}
