:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --background-color: #f5f7fa;
  --text-color: #2c3e50;
  --accent-color: #e74c3c;
  --modal-background: #ffffff;
  --box-shadow: rgb(0, 0, 0);
  --box-background: #fcfbfb;
  --input-background: #ffffff;
  --input-text: #333333;
  --border-color: #e9ecef;
}

body.dark-theme {
  --primary-color: #2980b9;
  --secondary-color: #27ae60;
  --background-color: #000000;
  --box-shadow: rgb(0, 0, 0);
  --text-color: #f0f0f0;
  --accent-color: #c0392b;
  --modal-background: #1a1a1a;
  --box-background: #333333;
  --input-background: #222222;
  --input-text: #f0f0f0;
  --border-color: #444444;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--background-color);
  background-image: 
      linear-gradient(30deg, #e7edf3 12%, transparent 12.5%, transparent 87%, #f6f8fa 87.5%, #f6f8fa),
      linear-gradient(150deg, #f6f8fa 12%, transparent 12.5%, transparent 87%, #f6f8fa 87.5%, #f6f8fa),
      linear-gradient(30deg, #f6f8fa 12%, transparent 12.5%, transparent 87%, #f6f8fa 87.5%, #f6f8fa),
      linear-gradient(150deg, #f6f8fa 12%, transparent 12.5%, transparent 87%, #f6f8fa 87.5%, #f6f8fa),
      linear-gradient(60deg, #e0e8f5 25%, transparent 25.5%, transparent 75%, #e0e8f5 75%, #e0e8f5),
      linear-gradient(60deg, #e0e8f5 25%, transparent 25.5%, transparent 75%, #e0e8f5 75%, #e0e8f5);
  background-size: 80px 140px;
  color: var(--text-color);
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

body.dark-theme {
  background-image: none; 
}

.mobile-action-buttons {
  display: none;
}

.top-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 50px;
background-color: #000000;
color: #fff;
position: relative;
overflow: hidden;
}

.star {
  position: absolute;
  background: rgb(179, 149, 149);
  border-radius: 50%;
  animation: twinkle var(--duration, 4s) ease-in-out infinite var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.2); }
  50% { opacity: 1; transform: scale(1); }
}

.top-bar .content {
  position: relative;
  z-index: 10;
  width: 100%;
}


.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 47px;
  margin-right: 10px;
  margin-top: 0.3rem;
}

.forum-name {
  font-size: 60px;
  color: #ffc400;
  letter-spacing: 20px;
  margin-left: 1rem;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  animation: lightsaber-cycle 8s ease-in-out infinite;
  text-shadow: 
    0 1px 0 #ccc,
    0 2px 0 #c9c9c9,
    0 3px 0 #bbb,
    0 4px 0 #b9b9b9,
    0 5px 0 #aaa,
    0 6px 1px rgba(0,0,0,.1),
    0 0 5px rgba(0,0,0,.1),
    0 1px 3px rgba(0,0,0,.3),
    0 3px 5px rgba(0,0,0,.2),
    0 5px 10px rgba(0,0,0,.25),
    0 10px 10px rgba(0,0,0,.2),
    0 20px 20px rgba(0,0,0,.15);
  transform: perspective(500px) rotateX(20deg);
}


@keyframes lightsaber-cycle {
  0%, 100% {
    width: 0;
    text-shadow: none;
  }
  25%, 75% {
    width: 100%;
    text-shadow: 
      0 1px 0 #ff0000,
      0 2px 0 #fa0000,
      0 3px 0 #fc0000,
      0 4px 0 #b9b9b9,
      0 5px 0 #ff1100,
      0 6px 1px rgba(0,0,0,.1),
      0 0 5px rgba(0,0,0,.1),
      0 1px 3px rgba(0,0,0,.3),
      0 3px 5px rgba(0,0,0,.2),
      0 5px 10px rgba(0,0,0,.25),
      0 10px 10px rgba(0,0,0,.2),
      0 20px 20px rgba(0,0,0,.15);
  }
  50% {
    width: 100%;
    text-shadow: 
      0 1px 0 #ff0000,
      0 2px 0 #f50101,
      0 3px 0 #ff0000,
      0 4px 0 #ff0000,
      0 5px 0 #ff0000,
      0 6px 1px rgba(0,0,0,.1),
      0 0 5px rgba(0,0,0,.1),
      0 1px 3px rgba(0,0,0,.3),
      0 3px 5px rgba(0,0,0,.2),
      0 5px 10px rgba(0,0,0,.25),
      0 10px 10px rgba(0,0,0,.2),
      0 20px 20px rgba(0,0,0,.15),
      0 0 20px #ff0101, 0 0 10px #ff0101, 0 0 20px #ff0505;
  }
}

.auth-buttons {
display: flex;
align-items: center;
}


.theme-toggle {
  display: flex;
  align-items: center;
  border: none;
  color:#ffffff;
  background-color: #d1105056;
  font-size: 24px;
  cursor: pointer;
 
  transition: color 0.3s;

}

.theme-toggle:hover {
  background-color: #a6b929;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dark-theme .theme-toggle .fa-sun {
  display: none;
}

.dark-theme .theme-toggle .fa-moon {
  display: inline-block;
}

.theme-toggle .fa-moon {
  display: none;
}

#members1 {
  color: var(--text-color);
}

.auth-buttons a, .auth-buttons button {
margin-left: 10px;
padding: 8px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s ease;
}

.login-btn {
background-color: var(--primary-color);
color: white;
text-decoration: none;
}

.logout-btn {
  background-color:#a6b929;
  color: white;
  text-decoration: none;
 
  }

#forgotPasswordLink {
    display: block;
    margin-top: 10px;
    text-align: left;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
  }
  
#forgotPasswordLink:hover {
    color: var(--secondary-color);
  }



.register-btn {
background-color: #5cb85c;
color: white;
}

.login-btn:hover, .register-btn:hover {
background-color: #a6b929;
transform: translateY(-2px);
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar {
  background-color: #b60f6b0c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
 
}

.navbar ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex: 1;
}

.navbar li {
  margin: 0 15px;
}

.navbar ul li {
  margin: 0 10px;
}



.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.734);
  color: #11ff00;
  font-family: 'Courier New', Courier, monospace;
  border-radius: 10px;
  border-radius: 0 0 5px 5px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.search-result-item {
  padding: 5px 10px;
  cursor: pointer;
}

.search-result-item:hover {
  background-color: white;
  color: #000;
}


.navbar a {
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  padding-bottom: 5px;
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: var(--primary-color);
}

.navbar a:hover::after {
  width: 100%;
}

main {
  flex: 1 0 auto;
  display: flex;
  padding: 20px;
  max-width: 1700px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.content-wrapper {
  flex: 1;
  margin-right: 20px;
}

.forum-tabs {
  display: flex;
  background-color: var(--input-background);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-btn {
  flex: 1;
  padding: 15px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  transition: background-color 0.3s ease;
  border: 1px solid var(--border-color);
}

.tab-btn:hover {
  background-color:#a5c02b;
}

.tab-btn.active {
  background-color:#fc1900ce;
  color: white;
}

.tab-toggle {
  padding: 15px;
  background-color: #f8f9fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forum-content {
  background-color: var(--box-background);
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.forum-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  border: 1px solid var(--border-color);
  background-color: var(--box-background) ;
  border-radius: 10px;
  color: var(--text-color);
}

input, textarea, select {
  background-color: var(--input-background) ;
  color: var(--input-text);
  border-color: var(--border-color) ;
  border: 1px solid rgba(57, 58, 57, 0.849) !important;
  border-radius: 10px !important;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 1000;
}





.forum-table .topic-title a {
  color: var(--text-color) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forum-table .avatar {
  width: 20px ;
  height: 20px;
  border-radius: 50%;
  margin: 0 0 0 0;
  padding: 0;
  vertical-align: middle;
}

.forum-table td:last-child {
  font-style: italic;
  color: #6c757d;
  font-size: 10px;
}

.forum-table th, .forum-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
  color: var(--text-color);
  border-color: #8cff0917;
  font-size:small;
  
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.forum-table th {
  color: var(--text-color) !important;
  background-color:#651e8156 !important;
  cursor:crosshair;
  
}

.forum-table td {
  cursor:pointer !important;
}

.forum-table td span {
  vertical-align: middle;
  font-size: small;
  font-family: 'Courier New', Courier, monospace;
  display: inline-block;
  max-width: 50%; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-table th {
  font-weight: 600;
  color: #ffffff;
  background-color: var(--primary-color);
}

.forum-table tr {
  background-color: var(--box-background);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.forum-table tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: var(--secondary-color);
  color: #ffffff;
}

.forum-table tr:last-child td {
  border-bottom: none;
}



.sidebar {
  width: 300px;
}

.search-container {
  position: relative;
  margin: 0;
  padding: 0 ;
  box-sizing: border-box;
}

.sidebar .search-container input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.sidebar .search-container input {
  width: 100%;
  padding: 0 !important;
  margin: 0;
  box-sizing: border-box;
  box-shadow:0 0 15px rgb(212, 250, 0);
  background-color:transparent;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  font-size: 15px;
  height: 30px;
  color: var(--text-color);
  transition: border 0.3s, box-shadow 0.3s;
}

.sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.sidebar ul {
  font-size: 0.9rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.new-message-btn, .new-topic-btn {
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.new-message-btn {
  background-color: var(--primary-color);
  color: white;
}

.new-topic-btn {
  background-color: var(--secondary-color);
  color: white;
  display: inline-block; 
  visibility: visible;
}

.new-message-btn:hover, .new-topic-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#topicCategory option {
  background-color: #050505;
  color: #33fd00;
  font-family: 'Courier New', Courier, monospace;
}

#topicCategory option:hover{
  background-color: #007bff;
} 

.new-message-btn i {
  color: #fff; 
  margin-right: 8px;
}

.latest-content, .online-admins, .online-members {
  background-color: var(--box-background) !important;
  color: var(--text-color) !important;
  border-color: var(--border-color) !important;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;

}

.online-members h3, .online-admins h3 {
  color: var(--primary-color) !important;
}

.online-admins {
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
padding: 15px;
margin-top: 20px;
}

.online-admins h3 {
font-size: 18px;
margin-bottom: 15px;
color: #333;
text-align: center;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.online-admins ul {
display: flex;
flex-wrap: wrap;
gap: 10px;
list-style-type: none;
padding: 0;
margin: 0;
}

.online-admins li {
display: flex;
flex-direction: column;
align-items: center;
background-color: var(--box-background);
border-radius: 8px;
padding: 10px;
transition: all 0.3s ease;
}

.online-admins li:hover {
transform: translateY(-3px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.online-admins .avatar {
width: 40px;
height: 40px;
border-radius: 50%;
margin-bottom: 5px;
border: 2px solid #ffffff00;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.online-admins .username {
font-size: 12px;
text-align: center;
max-width: 80px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-left: -0.5rem;
font-family: 'Courier New', Courier, monospace;
}



.latest-content {
  border-radius: 8px;
 
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 15px;
  margin-top: 20px;
  }
  
.latest-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    border-color: var(--border-color);
    padding-bottom: 5px;
    color: var(--primary-color) !important;
    text-align: center;
    }
  
.latest-content ul li {
    border-bottom-color: var(--border-color) !important;
  }
  
  
.latest-content ul {
    list-style-type: none;
    padding: 0;
  }
  
.latest-content li {
    margin-bottom: 15px;
    
  }



.latest-content a {
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'Courier New', Courier, monospace;
    font-size: smaller;
  }
  
.latest-content .topic-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #b80ea1a6;
    }


.latest-content li:last-child {
  border-bottom: none;
  
  }
  
.latest-content .topic-title {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 10px;
  display: block;
  }
  
.latest-content .topic-content {
    font-weight: bold;
    margin-bottom: 5px;
  }
  
.latest-content .topic-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.5em;
    color: var(--secondary-text-color);
    gap: 10px;
    
  }
  
.latest-content .topic-author {
  font-weight: 500;
  }


.topic-content img,
.topic-content ul,
.topic-content ol,
.topic-content table{
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
  }



.online-members {
background-color: var(--box-background);
color: var(--text-color);
border-color: var(--border-color);
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
padding: 15px;
margin-top: 20px;
}

.online-members h3 {
font-size: 18px;
margin-bottom: 15px;
color: #333;
text-align: center;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.online-members ul {
display: flex;
flex-wrap: wrap;
gap: 10px;
list-style-type: none;
padding: 0;
margin: 0;
}

.online-members li {
display: flex;
flex-direction: column;
align-items: center;
background-color: var(--box-background);
border-radius: 8px;
padding: 10px;
transition: all 0.3s ease;
}

.online-members li:hover {
transform: translateY(-3px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.online-members .avatar {
width: 40px;
height: 40px;
border-radius: 50%;
margin-bottom: 5px;
border: 2px solid #ffffff00;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);

}

.online-members .username {
font-size: 10px !important;
text-align: center;
margin-left: -0.5rem;
max-width: 80px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--text-color) !important;
margin-left: -0.5rem;

} 

.forum-content:hover, .latest-content:hover, .online-admins:hover, .online-members:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.latest-content h3, .online-admins h3, .online-members h3 {
  font-size: 16px;
  margin-top: 0;
  color: #2c3e50;
}

.online-members ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.online-members li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.online-members .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

.online-members .username {
  font-size: 10px !important;
  color: #333;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
backdrop-filter: blur(5px);
}

.modal .close {
  color: var(--text-color);
}

.modal .close:hover {
  color: var(--accent-color);
}

.modal-content {
background-color: var(--modal-background);
color: var(--text-color) ;
margin: 5% auto;
padding: 20px;
width: 90%;
max-width: 1000px;
border-radius: 20px;
border: 7px solid var(--box-shadow) !important;
box-shadow: 0 0 40px var(--box-shadow) !important;
position: relative;
animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
from {opacity: 0; transform: translateY(-50px);}
to {opacity: 1; transform: translateY(0);}
}

.close {
color: #aaa;
position: absolute;
display: inline-flex;
right: 20px;
top: 0;
font-size: 31px;
font-weight: bold;
cursor: pointer;
transition: color 0.3s ease;
}

.close:hover,
.close:focus {
color: #000;
text-decoration: none;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 24px;
  font-family: 'Courier New', Courier, monospace;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-color);
  font-size: 14px;
  font-family: 'Courier New', Courier, monospace;
}

.input-group input, .input-group select, .input-group textarea {
width: 95%;
padding: 10px;
border: 1px solid #ddd;
border: 1px solid var(--border-color);
border-radius: 4px;
font-size: 16px;
}

.input-group select{
width: 100%;
}

.input-group textarea {
  resize: vertical;
}

.btn {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.btn-google {
  background-color: #db4437;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.btn-google:hover {
  background-color: #c33d2e;
}


.btn-primary {
 display: flex;
 position: relative;
 justify-content: center;
  background-color: var(--primary-color);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #1e8449;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.profile-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.profile-btn:hover {
  background-color: #4a5c7a;
}

#profileModal .modal-content {
  width: 80%;
  max-width: 800px;
  border: 3px solid var(--box-shadow) !important;
  box-shadow: 0 0 20px var(--box-shadow) !important;
  border-radius: 20px;
}

#profileForm .input-group {
  margin-bottom: 15px;
  width: 97%;
}

#profileForm label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#profileForm input[type="date"],
#profileForm input[type="text"],
#profileForm textarea,
#profileForm select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

#profileForm textarea {
  resize: vertical;
}

.avatar-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

#avatarPreview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-content.topic-detail {
  max-width: 1000px;
  padding: 0;
  border-radius: 40px;
  overflow: hidden;
  background-color: var(--modal-background) !important;
  color: var(--text-color) !important;
}

.topic-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: var(--box-background) !important;
  color: var(--text-color) !important;
  border-bottom: 1px solid #e9ecef;
  border: 1px solid var(--border-color);
  
}

.topic-header .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.topic-info h2 {
  margin: 0 0 5px 0;
  font-size: 24px;
  color: var(--text-color);
  
}

.topic-actions {
  display: flex;
  gap: 10px;
}

.topic-info span {
  font-size: 14px;
  color: #6c757d;
}

.topic-body {
  padding: 20px;
}

.topic-metadata {
  margin-bottom: 15px;
}

#likeButton {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
  width: 50px;
}

#likeButton:hover {
  background-color: #f0f0f0;
}

#likeButton.liked {
  background-color: #3498db;
  color: white;
  border-color: #3498db;
}

.category-tag, .tags {
  display: inline-block;
  padding: 3px 8px;
  background-color: var(--box-background);
  color: var(--text-color);
  border-radius: 20px;
  font-size: 12px;
  margin-right: 5px;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--box-background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.topic-content {
  background-color: var(--box-background);
  border: 1px solid #e9ecef;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 15px;
  color: var(--text-color) !important;

}

.topic-footer {
  border-top: 1px solid #e9ecef;
  padding: 15px 20px;
}

.topic-stats {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topic-stats button,
.topic-stats span {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

.topic-stats i {
  font-size: 16px;
  margin-right: 5px;
}

.btn-secondary, .btn-danger {
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.btn-secondary:hover {
  background-color: #1e8449;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.topic-stats .count {
  font-size: 14px;
}

#authorActions {
  margin-left: auto;
}

.topic-stats > * {
  margin-right: 15px;
}

.btn-like {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
}

.btn-like.liked {
  color: #007bff;
}

.topic-replies {
  padding: 20px;
}

.reply {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 10px;
  background-color: var(--box-background); 
  border-radius: 4px;
}

.reply-content {
  flex: 1;
}

.reply-actions {
  margin-left: 10px;
}

.like-reply, .dislike-reply {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  margin-right: 10px;
}

.like-reply:hover, .dislike-reply:hover {
  color: #007bff;
}

.like-reply.active {
  color: #28a745;
}

.dislike-reply.active {
  color: #dc3545;
}  

.delete-reply {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
}

#replyForm {
  padding: 20px;
  background-color: var(--input-background);
  color: var(--text-color);
  border-top: 1px solid #e9ecef;
  border: 1px solid var(--border-color);
  margin-top: 20px;
}

#replyContent {
  width: 96%;
  padding: 10px;
  border: 1px solid #ced4da;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  resize: vertical;
  min-height: 100px;
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

.messages-modal {
width: 90%;
max-width: 1000px;
height: 80vh;
max-height: 600px;
display: flex;
flex-direction: column;
background-color: var(--modal-background);
border-radius: 40px;
overflow: hidden;
margin: 5vh auto;
color: var(--text-color);
}

.messages-search {
  padding: 10px;
  border-bottom: 1px solid #000000;
}

.users-list {
  width: 30%;
  border-right: 1px solid #e9ecef;
  overflow-y: auto;
  background-color: var(--box-background);
}

#userSearch{
  width: 60% !important;
  transform: scale(0.9);
  display: inline-flex;
  
}

#messageSearch {
  width: 100%;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
}

.messages-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  background-color: var(--box-background);
}



.section-title {
  color: var(--text-color);
  border-bottom-color: var(--border-color);
}

.messages-list {
  width: 40%;
  border-right: 1px solid #e9ecef;
  overflow-y: auto;
  padding: 10px;
  border-color: var(--border-color);
}

.messages-list ul {
  list-style-type: none;
  padding: 0;
}

.messages-list li {
  padding: 10px;
  border-bottom: 1px solid #000000 !important;
  cursor: pointer;
  border-color: var(--border-color);
}

.messages-list li:hover {
  background-color: var(--box-background);
}

.message-detail {
  width: 60%; 
  padding: 10px;
  display: flex;
  flex-direction: column;
  background-color: var(--box-background);
}

#selectedMessageContent {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: var(--input-background);
  border-radius: 4px;
  margin-bottom: 10px;
  color: var(--input-text);

}

#messageContent {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ced4da;
  border-radius: 20px;
  font-size: 14px;
  margin-right: 10px;
  background-color: var(--input-background);
  color: var(--input-text);
  border-color: var(--border-color);

}

#newMessageForm {
  padding: 10px;
  background-color: var(--box-background);
  border-color: var(--border-color);
  border-top: 1px solid #e9ecef;
}

#newMessageForm .input-group {
  margin-bottom: 10px;
}

#newMessageForm label {
  display: block;
  margin-bottom: 5px;
}

#newMessageForm input,
#newMessageForm textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background-color: var(--input-background);
  color: var(--input-text);
  border-color: var(--border-color);
}

#newMessageForm button {
  width: 100%;
}

.suggestions {
  position: absolute;
  background-color: var(--box-background);
  border-color: var(--border-color);
  border: 1px solid #ddd;
  border-top: none;
  z-index: 1000;
  max-height: 150px;
  overflow-y: auto;
  width: calc(100% - 20px);
  display: none;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: var(--input-background);
}

.input-group {
  position: relative;
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  background-color: var(--box-background);
  
}

.chat-message {
  max-width: 70%;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.4;
  background-color: var(--input-background);
  color: var(--input-text);
  
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--box-background);
  display: flex;
  flex-direction: column;
}

.chat-message.sent {
  align-self: flex-end;
  background-color: var(--primary-color);
  color: #ffffff;
  border-bottom-right-radius: 5px;
}

.chat-message.received {
  align-self: flex-start;
  background-color: var(--input-background);
  color: var(--input-text);
  border-bottom-left-radius: 5px;
}

.chat-message small {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  opacity: 0.7;
}

.chat-message.sent small {
  text-align: right;
}

.chat-message.received small {
  text-align: left;
}

.chat-input-form {
  display: flex;
  padding: 15px;
  background-color: var(--box-background);
  border-color: var(--border-color);
  border-top: 1px solid #e9ecef;
}

.chat-input-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  border-radius: 20px;
  margin-right: 10px;
  font-size: 16px;
  background-color: var(--input-background);
  color: var(--input-text);
  border-color: var(--border-color);
}

.chat-input-form button {
  padding: 12px 25px;
  border-radius: 20px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 16px;
  width: 5px !important;
}

.chat-input-form button:hover {
  background-color: #0056b3;
}

#userSearch {
  width: 70%;
  padding: 10px 30px 10px 10px;
  border: 1px solid #ced4da;
  border-radius: 20px;
  font-size: 14px;
  background-color: var(--input-background);
  color: var(--input-text);
  border-color: var(--border-color);

}

.search-icon {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

#usersList {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.user-item {
  display: flex;
  align-items: center;
  padding: 15px;
  cursor: pointer;
  background-color: var(--box-background);
  transition: background-color 0.3s;
}

.user-item:hover {
  background-color:#e6130c50;

}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.user-name {
  font-weight: 500;
  color: var(--text-color);
}

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.selected-user-info {
  padding: 15px;
  background-color: var(--box-background);
  border-bottom: 1px solid #e9ecef;
  border-color: var(--border-color);
  display: flex;
  align-items: center;
}

.message-notification {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  display: none;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.pagination button {
  padding: 8px 15px;
  margin: 0 5px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination button:disabled {
  background-color: var(--border-color);
  color: var(--text-color);
  cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
  background-color: #2980b9;
}

.pagination span {
  margin: 0 10px;
  font-weight: bold;
}

.latest-content ul {
  list-style-type: none;
  padding: 0;
}

.latest-content li {
  margin-bottom: 10px;
}

.latest-content a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.latest-content a:hover {
  color: var(--primary-color);
}

.latest-content .avatar {
  margin-right: 10px;
}

.swal2-popup {
  font-size: 0.9rem !important;
  font-family: 'Roboto', Arial, sans-serif;
}

.members-modal {
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  margin: 5vh auto;
  padding: 30px;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  display: flex;
  flex-direction: column;
}

.members-modal h2 {
color: #fff;
margin-bottom: 20px;
font-size: 28px;
text-align: center;
}

.members-container {
display: flex;
flex: 1;
overflow: hidden;
}



#members {
  color: var(--text-color);
}

#memberSearch {
width: 97%;
margin-left: 10px;
padding: 12px 5px;
border: none;
border-radius: 20px;
background-color: rgba(255, 255, 255, 0.1);
color: #fff;
font-size: 16px;
}

#memberSearch::placeholder {
color: rgba(255, 255, 255, 0.5);
}

.search-icon {
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
color: rgba(255, 255, 255, 0.5);
}

.members-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 20px;
overflow-y: auto;
padding: 10px;
flex: 1;
}

.member-item {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 15px;
padding: 15px;
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}

.member-item:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
margin-bottom: 10px;
border: 3px solid rgba(255, 255, 255, 0.2);
}

.member-name {
color: #fff;
font-weight: 500;
font-size: 14px;
}

.member-profile {
flex: 1;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 20px;
padding: 30px;
margin-left: 10px;
color: #fff;
display: none;
overflow-y: auto;
position: relative;
transform: scale(0.96);

}





.member-profile .close-profile {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
font-size: 24px;
color: rgba(255, 255, 255, 0.7);
}

.member-profile .close-profile:hover {
color: #fff;
}

.member-profile h3 {
margin-bottom: 20px;
font-size: 24px;
}

.member-profile img {
width: 120px;
height: 120px;
border-radius: 50%;
margin-bottom: 20px;
border: 5px solid rgba(255, 255, 255, 0.2);
}

.member-profile p {
margin-bottom: 10px;
}

.hardware-section {
  background-color: var(--box-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  
}

.hardware-section .section-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.hardware-section .section-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.hardware-section .section-title {
  font-size: 19px;
  color: var(--text-color);
  margin: 0;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
}

.hardware-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;

}

.hardware-category {
  display: flex;
  align-items: center;
  background-color: var(--input-background);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 10px;
  transition: background-color 0.3s, transform 0.2s;
  font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
}

.hardware-section:hover {
  transform: translateY(-3px);
}

.hardware-category:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.hardware-category img {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.hardware-category i {
  font-size: 18px;
  margin-right: 8px;
  width: 20px;
  text-align: center;
}

.second-hand-section {
  background-color: var(--box-background);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.section-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.section-title {
  color: var(--text-color);
  font-size: 1.2rem;
  margin: 0;
  margin-top: 0.5rem;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
}

.crypto-section:hover {
  transform: translateY(-3px);
}


.second-hand-section:hover {
  transform: translateY(-3px);
}


#info-box {
  position: fixed;
  justify-content: center;
  align-items: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none; 
  z-index: 100; 
  pointer-events: none;
  background-color:#a3a3a323;
  padding: 20px;
  border-radius: 10px;
}

.typewriter div p {
  color: black;
  font-family:'Courier New', Courier, monospace;
  font-size: 2.5rem; 
  font-weight: 1000;
  margin-inline: auto;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid;
  width: 0;
  animation: 
    typing 1.1s steps(22, end) 1, 
    blink 0.75s step-end 1; 
  animation-fill-mode: forwards; 
}

#searchInput{
  width: 99.3%;
 
  margin-top: 2px;
  z-index: 3;
  height: 30px;
  border: 2px solid  #11ff00 !important;
  box-shadow: 0 0 10px rgb(64, 255, 0);
  background-color: rgba(0, 0, 0, 0.795);
  color: #11ff00;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 1000;
}

#searchInput::placeholder{
  color: #11ff00;
  font-family: 'Courier New', Courier, monospace;
  opacity: 0.5;
  
  }


@keyframes typing {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

body.blurred > *:not(#info-box):not(header):not(#loading){
  filter: blur(15px);
}


.cke_notifications_area{
  display: none !important;
}




@media (max-width: 1200px) {
  main {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  #searchInput{
    width: 99.2%;
    
  }
  .navbar {
    order: 1 ;
  }
  .tab-btn.active {
    background-color:#c0392b;
    color: #fff;
  }

  .tab-btn:hover {
    background-color: #a5c02b;
    color: #fff;
  }

  .mobile-action-buttons {
    display: flex;
    justify-content: space-between;
    order: 2;
    margin: 10px 10px;
    gap: 5px;
    margin-left: -0.05rem;
    width: 100%;
}

  .new-message-btn, .new-topic-btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    font-size: 14px;
  }

 
  .content-wrapper {
    order: 3;
  }
  .content-wrapper, .sidebar {
    width: 100%;
    margin-right: 0;
  }

  .sidebar {
    margin-top: 20px;
    order: 4;

  }

  .sidebar .action-buttons {
    display: none;
  }

  .forum-table th, .forum-table td {
    padding: 8px;
    
  }

  .forum-name {
    font-size: 40px;
    letter-spacing: 15px;
  }
  
  .logo {
    height: 35px;
  }

  .top-bar {
    padding: 20px;
  }

  .auth-buttons a, .auth-buttons button {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  main {
    display: flex;
    flex-direction: column;
  }

  #info-box{
    display: none !important;
  }




  #memberSearch{
    width: 90%;
  }
  .hardware-section {
    padding: 10px;
  }
  
  .hardware-categories {
    gap: 5px;
  }
  
  .hardware-category {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .hardware-category i {
    font-size: 16px;
    margin-right: 6px;
  }
  
  .members-modal {
    width: 95%;
    height: 90vh;
    padding: 20px;
} 

  .members-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .logo-container {
    margin-bottom: 10px;
  }

  .modal-content {
    width: 85% !important;
    transform: scale(0.9);
  }

  .tab-btn {
    font-size: 10px; 
  }

  .modal-content h2 {
      font-size: 20px;
    }

  .input-group label {
      font-size: 14px;
    }
 
  .forum-table {
    font-size: 10px;
  }

  .forum-tabs::-webkit-scrollbar {
    display: none; 
  }

  .forum-table th, .forum-table td {
    padding: 8px 4px;
  }

  .forum-table th:nth-child(3),
  .forum-table th:nth-child(4),
  .forum-table th:nth-child(5),
  .forum-table td:nth-child(3),
  .forum-table td:nth-child(4),
  .forum-table td:nth-child(5) {
    display: none;
  }

  .new-message-btn, .new-topic-btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    font-size: 14px;
  }

  .pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }

  .pagination button {
    padding: 8px 15px;
    font-size: 12px;
  }

 

  .modal-content h2 {
      font-size: 20px;
    }

  .messages-modal {
      width: 90%;
      height: 90vh;
      max-height: none;
      margin: 5vh auto;
      border:5px solid orange;
     
    }

  

  .users-list, .chat-area {
    width: 32%;
  }

  .chat-input-form {
    flex-direction: column;
  }

  .chat-input-form input {
    margin-bottom: 10px;
    width: 95% !important;
  }

  .chat-input-form button {
    width: 100% !important;
  }

  #profileModal .modal-content {
    width: 90%;
    border:5px solid red;
    
  }

 
  .new-message-btn i {
    color: #fff; 
    margin-right: 8px;
      }
 

  .topic-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .topic-header .avatar {
    margin-bottom: 10px;
  }

  .topic-info h2 {
    font-size: 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    margin-top: 10px;
  }

  .top-bar {
    flex-direction: column;
    align-items: center;

}  

  .logo {
    height: 27px;
    margin-top: 0.2rem;
  }

  .logo-container {
      margin-bottom: 10px;  
}


  .forum-name {
    font-size: 30px;
    letter-spacing: 30px;
}

  .auth-buttons {
    justify-content: center;
}

  .auth-buttons a, .auth-buttons button {
    margin: 5px;
    padding: 6px 12px;
    font-size: 12px;
}

  .second-hand-section {
    background-color: var(--box-background);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
  }

  .second-hand-section .section-title {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
  }

}

@media (max-width: 480px) {
  .forum-name {
    font-size: 30px;
    letter-spacing: 20px;
  }

  #searchInput{
    width: 98%;
  }
  .tab-btn {
    font-size: 7.3px; 
  }

  .hardware-section {
    background-color: var(--box-background);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
  }
  
  .hardware-section .section-title {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 0.8rem;
    color: var(--text-color);
  }
  
  .hardware-categories {
    flex-direction: column;
    gap: 5px;
  }
  
  .hardware-category {
    width: 94%;
    background-color: var(--input-background);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    display: flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
  }

  
  .hardware-category:hover {
    background-color: var(--secondary-color);
  }

  .hardware-category i {
    font-size: 18px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
  }

  .logo {
    height: 24px;
    margin-top:0.12rem;
  }
  
  .auth-buttons a, .auth-buttons button {
    max-width: 200px;
  }

  .forum-table th:nth-child(6),
  .forum-table td:nth-child(6) {
    display: none;
  }

  .input-group label {
    font-size: 14px;
  }

  .input-group input, .input-group select, .input-group textarea {
    font-size: 12px;
  }

  .topic-stats > * {
    margin-right: 10px;
    font-size: 12px;
  }

  .reply {
    flex-direction: column;
  }

  .reply-actions {
    margin-top: 10px;
    margin-left: 0;
  }

  

  .user-item {
    padding: 10px;
  }

  .user-avatar {
    width: 20px;
    height: 20px;
  }

  .chat-message {
    max-width: 85%;
  }

  .messages-modal {
    width: 90%;
    border-radius: 30px;
    margin: 0;
  }

  .topic-detail{
    width: 97% !important;
    margin-top: -5px;
    
  }

  #userSearch {
    width: 50%;
    font-size: 10px;
  }
  .user-name{
    font-size: 7px;
    font-family: 'Courier New', Courier, monospace;
  }
}

@media (max-width: 320px) {


.navbar a{
  font-size: 8px;
}


}