@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  background-color: #111111;
  color: #d1c8b4;
  font-family: 'Share Tech Mono', monospace;
  padding-top: 80px;
  /* Background, used MagicPattern (n.d.) for the initial idea*/
  background-image:
    /* Fading at the edges */
    radial-gradient(circle at center, transparent 20%, #111111 100%),
    /* Horizontal Lines */
    linear-gradient(rgba(160, 160, 160, 0.15) 1px, transparent 1px),
    /* 3. Vertical Lines*/
    linear-gradient(to right, rgba(160, 160, 160, 0.15) 1px, transparent 1px);
  background-size:
    100% 100%,
    20px 20px,
    20px 20px;
  background-attachment: fixed;
}

/*Demo Login div*/
.demo_login {
    background-color: #282828; 
    border-left: 4px solid #0284c7; 
    padding: 8px; 
    margin-bottom: 20px; 
    border-radius: 4px; 
    font-family: sans-serif;
    color: white;
    width: 85%;
    margin-left: auto;
    margin-right: auto;

}

h3 {
  color: white;
  font-family: 'Share Tech Mono', monospace;
  text-align: left;
}

.success-messages {
  color: #00a73e;
  border: 1px solid #00a73e;
  padding: 10px;
  margin-bottom: 15px;
}

.error-messages {
  color: #ff003c;
  border: 1px solid #ff003c;
  padding: 10px;
  margin-bottom: 15px;
}

.mb-15 {
  margin-bottom: 15px;
}

.back-to-dash {
  display: block;
  text-align: center;
  color: #aaa;
  margin-top: 15px;
  text-decoration: none;
}

/* ==== Navbar ====*/
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-sizing: border-box;
  background-color: #282828;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 100;
  display: flex;
  justify-content: space-between;
}

.nav-brand a {
  color: white;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: none;
  border-bottom: none;
}

.nav-links {
  display: flex;
  gap: 15px;
  flex-grow: 1;
  justify-content: space-between;
  align-items: center;
  margin-left: 40px;
}

.left-nav,
.right-nav {
  display: flex;
  align-self: center;
  gap: 15px;
}

.right-nav {
  margin-left: auto;
}

.nav-profile-pic {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00ffff;
}

.nav-btn {
  padding: 8px 16px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  height: auto;
  background-color: transparent;
  color: white;
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
  margin-right: 10px;
  text-decoration: none;
}

.logout-btn:hover {
  background-color: #ff003c;
  color: black;
}

/* Login Button */
.nav-btn {
  background-color: transparent;
  color: white;
  border-radius: 8px;
}

.nav-btn:hover {
  background-color: #00ffff;
  color: black;
}

.nav-btn.outline {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.nav-btn.outline:hover {
  background-color: #ff5900;
}

.user-profile {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  gap: 10px;
  color: white;
  font-family: 'Share Tech Mono', monospace;
  border-radius: 8px;
  cursor: pointer;
  padding: 5px;
  text-decoration: none;
}

.user-profile:hover {
  background-color: #00ffff;
  color: black;
}

/*Mobile navbar Hamburger */
.hamburger {
  display: none; /* Hidden by default on large screens */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

/* The three white lines of the hamburger */
.hamburger span {
  width: 30px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

/* ==== Login and Register Pages ====*/

/* Pages header */
.form-header {
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #4a4036;
  padding-bottom: 10px;
  color: white;
}

/* Sign up/ login forms */
.container {
  margin: auto;
  background: #282828;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0.8;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  position: relative;
}

/* Form input styling */
.form-group {
  margin-bottom: 25px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: #111111;
  color: white;
}

.form-group label {
  display: block;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

form {
  padding-bottom: 20px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.input-label {
  text-transform: uppercase;
}

/* Required star */
.required {
  color: #ff0000;
}

/* Hide default file input */
input[type='file'] {
  display: none;
}

/* File upload button */
.custom-file-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  background-color: transparent;
  color: #f84900;
  border: 2px solid rgba(248, 73, 0, 0.3);
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-file-upload:hover {
  background-color: #f84900;
  color: white;
}

.file-help-text {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

#upload_icon {
  margin-bottom: -2px;
}

.form-btn {
  padding: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
  background-color: #00a73e;
  text-transform: uppercase;
  color: white;
  font-family: 'Share Tech Mono', monospace;
}

/* Forgot password*/

/*==== Dashboard styling ====*/
.forgot-password {
  max-width: 60%;
}

.dashboard-container {
  padding: 20px;
  margin-top: 20px;
}

.header-style {
  color: white;
  font-size: xx-large;
  color: white;
  font-family: 'Share Tech Mono', monospace;
  text-align: left;
}

.dash-banner {
  display: flex;
  flex-direction: row;
  border-radius: 10px;
  padding: 20px;
  line-height: 40px;
  background-color: #1a1a1a;
  padding: 15px;
  text-align: left;
  border-radius: 4px;
  opacity: 0.8;
  margin: auto;
  align-items: center;
}

.left-banner {
  width: 50%;
  padding: 20px;
  color: white;
}

.right-banner {
  color: white;
  width: 50%;
  padding: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 10px;
  background-color: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 8px;
  margin-right: 10px;
  margin-top: 12px;
  text-decoration: none;
}

.dash-btn:hover {
  background-color: #00ffff;
  color: black;
}

.dash-btns {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hr-style {
  border-color: #333;
  margin: 40px 0px;
}

/*Events on dashboard*/
.events-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

/* dash event styling*/
.event {
  background-color: #1a1a1a;
  border-left: 4px solid #00ffff;
  padding: 15px;
  text-align: left;
  border-radius: 4px;
}

.category {
  background-color: #333;
  color: #00ffff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-family: monospace;
  display: inline-block;
  margin-bottom: 12px;
}
.event-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  font-size: 12px;
  margin: 0;
  box-sizing: border-box;
}

.del-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ff003c;
  border: 2px solid #ff003c;
  color: white;
  padding: 8px 15px;
  font-size: 12px;
  cursor: pointer;
  margin: 0;
  box-sizing: border-box;
  border-radius: 8px;
}

.ticket-title {
  margin: 0 0 5px 0;
  color: white;
  font-size: 20px;
}

.date-location {
  margin: 5px 0;
  font-size: 14px;
  color: white;
}

.ticket-desc {
  margin: 10px 0 0 0;
  font-size: 14px;
  color: #ccc;
}

.no-events-container {
  background-color: #222;
  padding: 20px;
  border-radius: 4px;
  text-align: center;
}

.no-events-txt {
  color: #aaa;
  margin-bottom: 15px;
}

.inline-block {
  display: inline-block;
}
/*Create and edit event styling*/
.select-btn {
  width: 100%;
  padding: 10px;
  background-color: #111111;
  color: white;
  border: 1px solid #444;
  border-radius: 4px;
}

.create-edit-event {
  max-width: 90%;
  margin-top: 20px;
  margin-bottom: 20px;
}

.text-area {
  width: 100%;
  padding: 10px;
  background-color: #111111;
  color: white;
  border: 1px solid #444;
  border-radius: 4px;
}

.view-dash-btn {
  display: block;
  text-align: center;
  color: #aaa;
  margin-top: 15px;
  text-decoration: none;
}

.svg_mb {
  margin-bottom: -5px;
}

/* ==== Search page ====*/
.search-container {
  margin-top: 40px;
  max-width: 95%;
}

.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.search-input {
  flex-grow: 1;
  padding: 10px;
  background-color: #222;
  color: white;
  border: 1px solid #444;
  border-radius: 4px;
}

.search-result {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}

.user-section-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}

.host-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #444;
}

.large-profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #333;
}

.empty-event {
  background-color: #222;
  padding: 15px;
  text-align: center;
  border-radius: 4px;
}

.empty-search {
  background-color: #222;
  padding: 30px;
  text-align: left;
  border-radius: 4px;
}

.empty-search-txt {
  color: white;
  margin-bottom: 10px;
}

/* View host profile page*/
.view-host-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.view-profile-txt {
  color: white;
  margin: 0 0 10px 0;
  font-size: 28px;
}

.view-profile-container {
  max-width: 80%;
  margin-top: 40px;
}

.profile {
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 40px;
}

/*==== Messages Page====*/
.messages-container {
  max-width: 90%;
}

.chat-window {
  display: flex;
  flex-direction: column;
}
.chat-history {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background-color: #444;
}

.chat-input {
  padding: 15px;
  background-color: #222;
  border-top: 1px solid #333;
  border-radius: 0 0 8px 8px;
}

.chat-input-form input {
  width: 100%;
}

.chat-header {
  padding: 15px 20px;
  background-color: #222;
  border-bottom: 1px solid #333;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  gap: 15px;
}
.message-bubble {
  padding: 10px 15px;
  border-radius: 12px;
  max-width: 70%;
}
.created-at {
  font-size: 11px;
  display: block;
  text-align: right;
  margin-top: 5px;
  opacity: 0.7;
}

.inbox-profile-pic {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.inbox-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.inbox-contact {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: #222;
  border-radius: 8px;
  border: 1px solid #333;
}
.no-msg-txt {
  color: #aaa;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}

.msg-input {
  flex-grow: 1;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #444;
  background-color: #111;
  color: white;
}
/* ==== MOBILE RESPONSIVE RULES ==== */
@media (max-width: 768px) {
  /* Show the hamburger button */
  .hamburger {
    display: flex;
  }

  /* Hide the normal links when screen is small */
  .nav-links {
    display: none; /*This will be toggled to display flex with JS*/
    flex-direction: column;
    position: absolute;
    top: 70px; /* Links were hidden, push the links a little down */
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    padding: 20px 0;
    margin-left: 0; /* Override the desktop margin */
    gap: 20px;
    z-index: 1000; /* Ensures the menu sits on top of your page content */
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  }

  /* Stack the links on top of each other */
  .left-nav,
  .right-nav {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  .user-profile {
    flex-direction: column;
    width: 95%;
  }

  .left-nav a,
  .right-nav a {
    width: 95%;
    text-align: center;
  }

  .user-profile p {
    margin: 0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
  }

  .logout-btn {
    display: flex !important; /* Forces flex behavior */
    width: fit-content; /* Prevents it from taking full width */
    margin: 10px auto !important; /* Centers it and clears the desktop margin-right */
    justify-content: center;
    border-bottom: none !important; /* Removes the line you added to other links */
  }

  /* This class gets added and removed with the Javascript to show and hide the links*/
  .nav-links.mobile-active {
    display: flex;
  }

  /*Dash banner mobile*/
  .dash-banner {
    flex-direction: column;
  }

  .left-banner {
    width: 100%;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  }

  .right-banner {
    width: 100%;
    border-left: none;
  }
  /*Inbox*/
  .inbox-contact {
    flex-direction: column;
    text-align: center;
  }
}
