
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;

}


.profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #444;
  margin: 0 auto 10px auto;
  display: block;
  transition: width 0.3s ease, height 0.3s ease;
}

.profile-trigger {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.profile-trigger:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.profile-name {
  color: #f0f0f0;
  font-size: 14px;
}

.sidebar.collapsed .profile-picture {
  width: 50px;
  height: 50px;
  margin-top: 10px;
}

.sidebar.collapsed .profile-name {
  display: none;
}

.profile-upload-form {
  margin: 0 auto 15px auto;
  width: 100%;
  text-align: center;
}

.profile-upload-form input[type="file"] {
  color: #f0f0f0;
  font-size: 12px;
  width: 100%;
  max-width: 180px;
  cursor: pointer;
}

.profile-upload-input {
  display: none;
}

.profile-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2a2a2a;
  color: #f0f0f0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.profile-upload-button:hover {
  background: #1f1f1f;
}

.profile-dropdown {
  margin: 0 auto 15px auto;
  width: 100%;
  text-align: center;
}

.profile-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #f0f0f0;
  font-size: 14px;
  user-select: none;
  list-style: none;
}

.profile-dropdown-toggle::-webkit-details-marker {
  display: none;
}

.profile-settings-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.profile-settings-modal.is-open {
  display: flex;
}

.profile-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.profile-settings-dialog {
  position: relative;
  background: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  width: min(420px, calc(100% - 32px));
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.profile-settings-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.2), rgba(0, 0, 0, 0));
  margin-bottom: 16px;
}

.profile-settings-avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  padding: 3px;
  background: #0f0f0f;
  border: 1px solid rgba(0, 188, 212, 0.35);
  position: relative;
}

.profile-settings-picture {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.profile-settings-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-settings-name {
  font-size: 18px;
  font-weight: 600;
}

.profile-settings-subtitle {
  font-size: 12px;
  color: rgba(240, 240, 240, 0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-settings-dialog h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.profile-settings-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.profile-settings-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(28, 33, 38, 0.18);
  background: #e9ecef;
  color: #1c2126;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.profile-settings-tab i {
  font-size: 14px;
}

.profile-settings-tab.is-active {
  background: #e9ecef;
  color: #1c2126;
  border-color: rgba(28, 33, 38, 0.18);
}

.profile-settings-tab:hover {
  background: #ffffff;
  color: #1c2126;
}

.terms-markdown {
  white-space: pre-wrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #1c2126;
  background: #f7f7f8;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(28, 33, 38, 0.12);
}

.profile-settings-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #f0f0f0;
  font-size: 18px;
  cursor: pointer;
}

.profile-settings-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #cfcfcf;
}

.profile-settings-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.profile-upload-inline {
  position: absolute;
  bottom: -6px;
  right: -6px;
  margin: 0;
  width: auto;
}

.profile-upload-icon {
  width: 32px;
  height: 32px;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: #00bcd4;
  color: #0f0f0f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.profile-upload-icon:hover {
  background: #00a6bd;
}

.profile-settings-label {
  font-size: 13px;
  color: #cfcfcf;
}

.profile-settings-input {
  background: #121212;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #f0f0f0;
  padding: 10px 12px;
}

.profile-settings-input:focus {
  outline: none;
  border-color: rgba(0, 188, 212, 0.7);
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.25);
}

.profile-settings-save {
  align-self: flex-start;
  background: #00bcd4;
  border: none;
  border-radius: 8px;
  color: #0f0f0f;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
}

.profile-settings-save:hover {
  background: #00a6bd;
}

.profile-settings-note {
  font-size: 11px;
  color: rgba(240, 240, 240, 0.6);
}

body.profile-settings-open {
  overflow: hidden;
}

.profile-dropdown[open] .profile-dropdown-toggle {
  opacity: 0.9;
}

.profile-dropdown .profile-upload-form {
  margin-top: 10px;
}

.sidebar.collapsed .text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0;
}

/*================= TO DO, make ride and general dashboard use same styles =========================*/


.sidebar,
.sidebar a,
.sidebar .logout-btn {
    font-family: 'Montserrat', sans-serif !important;
}

.sidebar {
  background-color: #00bcd4;
  width: 250px;
  height: 100vh;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #333;
  z-index: 1030;
  transition: width 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}

.sidebar.collapsed {
  width: 70px;
  padding: 20px 10px;
  padding-top: 60px;
}

.sidebar a {
  color: #f0f0f0;
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 16px;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 5px;
  transition: background 0.2s;
  position: relative;
  white-space: nowrap;
}

.sidebar.collapsed a {
  justify-content: center;
  padding: 10px;
}

.sidebar.collapsed a span,
.sidebar.collapsed .logout-btn span {
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar.collapsed .text-center > div:not(:first-child) {
  display: none;
}

.sidebar.collapsed .text-white {
  display: none;
}

.sidebar.collapsed .profile-dropdown {
  display: none;
}


.sidebar a:hover {
  background-color: #2a2a2a;
  text-decoration: none;
}

.sidebar a i {
  margin-right: 10px;
  font-size: 16px !important;
  min-width: 20px;
  text-align: center;
}

.sidebar.collapsed a i {
  margin-right: 0;
  font-size: 20px !important;
}

.sidebar.collapsed a:hover::after {
  content: attr(data-label);
  position: absolute;
  left: 75px;
  background-color: #1e1e1e;
  color: #f0f0f0;
  padding: 8px 12px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 1050;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


.sidebar .logout-btn:hover {
  background-color: #a2191f !important;
  color: #fff !important;
  border-color: #a2191f !important;
  border: none !important;
}

.sidebar .logout-btn {
    font-size: 16px !important;
    margin-top: auto !important;
    border: none;
    background-color: #1e1e1e;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar.collapsed .logout-btn {
    justify-content: center;
    padding: 10px;
}

.sidebar.collapsed .logout-btn i {
    margin-right: 0;
}
