:root {
  --primary-color: #1e90ff;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --shadow: 0 2px 4px rgba(0,0,0,0.1);
  --error-color: #e74c3c;
  --nav-bg: #fff;
  --nav-active: #1e90ff;
  --nav-button-bg: transparent;
  --nav-button-hover: #f0f0f0;
  --sidebar-bg: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  
}

html, body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, Roboto, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
  margin:0;
  height:100%;
  /* overflow:auto; */
  /* overflow:hidden; */
  overflow-y:auto;
  overflow-x:hidden;
  /* display:flex; */
  /*overscroll-behavior: none; /* prevents body scroll */
}
#app {
  height:calc(100vh - 70px);
  margin-top:70px;
  width:100vw;
  /* overflow:auto; */
  /*Skeleton safe*/
  opacity: 0;
  transition: opacity 0.25s ease;
}



.hidden{display:none;}
ul {
  list-style: none;
}



.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  min-width: 200px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.notification-item {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #eee;
}

.notification-item:hover {
  background: var(--bg-color);
}






.message {
  padding: 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.message.error {
  background: var(--error-color);
  color: #fff;
}


/*holds all comments*/
.comments-container{
  display:block;
  padding:4px;
}
/*foreach row of comments*/
.comment-row{
  display:block;
  padding-top:5px;
  padding-bottom:5px;
}
.individual-comment-container {
  padding:10px 10px 5px 10px;
  border-radius:6px;
  background-color:rgba(0,0,0,0.05);
}
.individual-comment-container ol {
  display:flex;
  gap:5px;
  list-style:none;
  margin:0;
  padding:0;
}
.comment-avatar {
  display:block;
  
}
.comment-avatar img {
  border-radius: 50%;
  position:relative;
  height:50px;
  width:50px;
}
.comment {
  width:100%;
}
.comment-name-row {
  display:flex;
  flex: 1 1;
  justify-content: space-between;
  padding-bottom:5px;
}
.commenter-name{
  text-decoration:none;
  cursor:pointer;
  color: #3d3d3d;
  font-size:14px;
}
.commenter-name:hover {
  text-decoration: none;
  cursor: pointer;
  color: rgb(1, 80, 145);
}
.comment-manage{
  align-items:center;
}
.comment-text-container{
  display:flex;
}
.comment-text {
  white-space:break-spaces;
  font-size:small;
}
.comment-time{
  white-space:nowrap;
  margin-left:auto;
}
.comment-icon{
  font-size:18px;
  cursor: pointer;
  padding-left:5px;
  color:#666;
}
.comment-icon:hover{
  color:rgb(193, 33, 33);
}
.comment-icon:active{
  color:red;
}
.icon-active {
  color:#28a745;
}

.comment-badge {
  position:relative;
  top:-15px;
  left:15px;
  padding:2px 5px;
  background-color: #75cd1cc8;
  color:white;
  font-size:10px;
  font-weight:lighter;
  border-radius:8px;
  text-align:center;
}



/******************
*     SNACKBAR    *
*******************/

#snackbar-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

/* Base snackbar style */
.snackbar {
  min-width: 250px;
  max-width: 400px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(120%);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.snackbar.show {
  opacity: 1;
  transform: translateX(0);
}

.snackbar button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-left: 12px;
  opacity: 0.8;
}
.snackbar button:hover { opacity: 1; }

/* Snackbar types (light theme) */
.snackbar.success { background: #4caf50; color: #fff; }
.snackbar.info    { background: #2196f3; color: #fff; }
.snackbar.warning { background: #ff9800; color: #fff; }
.snackbar.alert,
.snackbar.error   { background: #f44336; color: #fff; }

/* Dark theme */
@media (prefers-color-scheme: dark) {
  .snackbar.success { background: #388e3c; color: #e0f2f1; }
  .snackbar.info    { background: #1976d2; color: #e3f2fd; }
  .snackbar.warning { background: #f57c00; color: #fff3e0; }
  .snackbar.alert,
  .snackbar.error   { background: #d32f2f; color: #ffebee; }
}

/*loading placeholder*/
/* Shared shimmer and base */
#skeleton {
  position: fixed;
  inset: 80px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: flex-start;
  background: #f3f3f3;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.skeleton-wrapper,
.skeleton-feed,
.skeleton-profile,
.skeleton-logbook,
.skeleton-activity {
  width: 100%;
  max-width: 1200px;
  opacity:0.9;
}
.skeleton-user-box {
  position: relative;
  overflow: hidden;
}

.skeleton-line,
.skeleton-header,
.skeleton-block,
.skeleton-avatar,
.skeleton-map,
.skeleton-info,
.skeleton-profile-header,
.skeleton-profile-stats,
.skeleton-profile-awards,
.skeleton-logbook,
.skeleton-chart {
  background: #e0e0e0;
  border-radius: 8px;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150px;
  width: 150px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

/* Feed skeleton */
.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.skeleton-line {
  height: 25px;
  border-radius: 6px;
  margin: 8px 0;
}
.skeleton-lines {
  flex: 1;
}
.skeleton-line.short {
  width: 60%;
}
.skeleton-card{
  padding-bottom:50px!important;
}
.skeleton-block {
  height: 250px;
  border-radius: 8px;
  margin-top: 10px;
}
/* Activity skeleton */
.skeleton-activity {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skeleton-map {
  height: 50vh;
  border-radius: 12px;
}
.skeleton-info {
  height: 60px;
}
.skeleton-chart {
  height: 150px;
}
.skeleton-profile-header{
  height: 166px;
  border-radius: 7px;
  margin: 8px 20px;
}
.skeleton-profile-stats{
  height: 260px;
  border-radius: 6px;
  margin: 8px 20px;
}
.skeleton-profile-awards{
  height: 290px;
  border-radius: 6px;
  margin: 8px 20px;
}
.skeleton-logbook-content {
  height: 75vh;
  border-radius: 6px;
  margin: 8px 20px;
}

