:root {
  --user-theme: #ff85a2;
  --bg-dark: #2b2d42;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  background-color: #f0f3f5;
  color: #4a4a4a;
  overflow-x: hidden;
  width: 100%;
}

/* Navbar Layout System */
.navbar {
  background-color: var(--bg-dark);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 100;
}

.nav-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  font-weight: 900;
  font-size: 24px;
  color: #3db4f2;
}

.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links a,
.nav-btn,
.nav-icon-btn {
  color: #bcbedc;
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-icon-btn {
  font-size: 18px;
}

.nav-links a.active,
.nav-btn:hover,
.nav-icon-btn:hover {
  color: #fff;
}

/* Header Embedded Search Box Container */
.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px 8px;
  width: 250px;
}

.header-search-wrap input {
  background: none;
  border: none;
  color: #fff;
  outline: none;
  padding: 4px 8px;
  font-size: 13px;
  width: 100%;
}

.header-search-wrap input::placeholder {
  color: #bcbedc;
}

.header-search-wrap button {
  background: none;
  border: none;
  cursor: pointer;
}

.header-search-results {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  list-style: none;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  z-index: 200;
  padding: 5px;
}

.header-search-results.active {
  display: block;
}

/* Badge Element Configuration */
.badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #e63946;
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 10px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
}

/* Profile Layout Configurations */
.banner {
  height: 220px;
  background-color: var(--user-theme);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-color 0.3s ease;
  width: 100%;
}

.profile-bar-container {
  background-color: #ffffff;
  min-height: 70px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #e5e8ed;
  width: 100%;
}

.profile-bar {
  width: 100%;
  max-width: 1000px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.avatar-container {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  position: relative;
  bottom: 35px;
  z-index: 10;
}

.user-titles-wrap {
  display: flex;
  flex-direction: column;
}

.profile-social-counts {
  font-size: 12.5px;
  color: #777;
  margin-top: -4px;
  font-weight: 500;
}

.main-avatar {
  width: 95px;
  height: 95px;
  border-radius: 8px;
  background-color: #ffffff;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: all 0.2s ease;
}

.main-avatar.transparent-avatar {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 120px;
  height: 120px;
}

.username {
  font-size: 22px;
  color: #333;
  margin-bottom: 4px;
}

/* Content Grid Positioning Constraints */
.content-container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 25px;
  width: 100%;
}

.card {
  background: #ffffff;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  max-width: 100%;
}

.bio-card {
  border-top: 4px solid var(--user-theme);
  word-wrap: break-word;
  overflow: hidden;
}

.bio-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

.ribbon-text {
  background-color: #fce8ed;
  color: var(--user-theme);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
}

.bio-text {
  font-size: 13.5px;
  margin-top: 15px;
  line-height: 1.6;
}

/* Lists and Dynamic Interaction Layout Buttons */
.list-input-group {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

input[type="text"],
textarea {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
}

button {
  background-color: var(--user-theme);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.custom-list {
  list-style: none;
  margin-top: 10px;
}

.custom-list li {
  background: #f8f9fa;
  padding: 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--user-theme);
  border-radius: 0 4px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

/* Search Row Results Component */
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: #f7f7f9;
}

.search-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #333;
}

.search-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
}

/* Modal Windows Configuration elements */
.settings-btn {
  background-color: var(--user-theme, #ff85a2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  transition: opacity 0.2s;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 15px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-box label {
  font-size: 12px;
  font-weight: bold;
  color: #666;
  margin-bottom: -4px;
}

.modal-box textarea,
.modal-box input[type="file"],
.modal-box input[type="color"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.cancel-btn {
  background: #e5e8ed;
  color: #4a4a4a;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.save-btn {
  background: var(--user-theme, #ff85a2);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* Authentication Display Box */
.auth-box {
  background: white;
  width: 90%;
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.auth-box h2 {
  margin-bottom: 20px;
  color: #333;
}

.auth-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.auth-switch {
  margin-top: 20px;
  font-size: 13px;
  color: #666;
}

.auth-switch span {
  color: var(--user-theme, #ff85a2);
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  display: inline-block;
  padding: 2px 5px;
}

/* Mobile Adaptability Rules */
@media (max-width: 768px) {
  .banner {
    height: 140px;
  }

  .header-search-wrap {
    width: 140px;
  }

  .profile-bar-container {
    min-height: auto;
    padding-bottom: 15px;
  }

  .profile-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .avatar-container {
    flex-direction: column;
    align-items: center;
    bottom: 45px;
    gap: 6px;
    margin-bottom: -35px;
  }

  .main-avatar {
    width: 85px;
    height: 85px;
  }

  .main-avatar.transparent-avatar {
    width: 110px;
    height: 110px;
  }

  .content-container {
    grid-template-columns: 1fr;
    margin: 15px auto;
    padding: 0 15px;
  }

  .list-input-group {
    flex-direction: column;
  }

  .modal-box {
    width: 95%;
  }
}