/* ======================================================
   RESPONSIEVE CSS + COLLAPSIBLE TASKBAR
   ====================================================== */

/* ====================== CONTAINER ====================== */
#container {
  width: auto;
  max-width: 1200px;
  height: auto;
  margin: 20px auto;
  display: grid;
  gap: 20px;
  grid-template-areas:
    "taskbar header header"
    "taskbar main sidebar"
    "taskbar footer footer";
  grid-template-columns: 200px 1fr 350px;
  grid-template-rows: auto auto 50px;
}

#container.fullscreen {
  grid-template-areas:
    "taskbar header"
    "taskbar main"
    "taskbar footer";
  grid-template-columns: 200px 1fr;
  grid-template-rows: 60px auto 50px;
}

#container.fullscreen .profiles {
  --numcolumns: 6;
}

/* ====================== TASKBAR ====================== */
#container #taskbar {
  width: auto;
  height: auto;
  padding: 20px;
  position: fixed;
  top: 20px;
  bottom: 20px;
  grid-area: taskbar;
  z-index: 100;
  background: #4B72AA;
  color: white;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Taskbar text/content */
#container #taskbar p {
  text-align: center;
}

#container #taskbar h2 {
  margin-bottom: 15px;
  text-align: center;
}

#container #taskbar h3 {
  position: relative;
  text-align: center;
  color: #000;
}

#container #taskbar h3:hover code {
  left: auto;
  right: 0px;
}

#container #taskbar h3:hover code:before {
  content: '\f061';
}

#container #taskbar h3 code {
  position: absolute;
  top: 5px;
  left: 0px;
}

#container #taskbar nav {
  position: sticky;
  top: 20px;
  text-align: right;
}

#container #taskbar nav ul {
  margin-top: 20px;
  list-style: none;
  font-size: calc(var(--base-font-size) + 2px);
}

#container #taskbar nav ul li.spread {
  height: 10px;
  display: block;
}

#container #taskbar nav ul li a {
  position: relative;
  display: inline-block; 
  text-decoration: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#container #taskbar nav ul li a:hover {
  transform: translateX(-5px);
}

#container #taskbar nav ul li a.active {
  color: #FFF;
}

#container #taskbar nav ul li h3 a {
  display: block;
}

#container #taskbar nav ul li h3 a:hover {
  margin: 0px;
}

#container #taskbar nav ul li.active {
  color: #FFF;
}

/* ====================== HEADER ====================== */
#container #header {
  height: 60px;
  grid-area: header;
  position: relative;
  overflow: hidden;
  background-color: #F19620;
}

#container #header .after {
  width: auto;
  height: 30px;
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  content: '';
  background-image: radial-gradient(#F4AE52 1.5px, transparent 1.5px);
  background-size: 5px 5px;
}

/* ====================== USER ====================== */
#container #user {
  height: 50px;
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 0px;
  z-index: 800;
  display: grid;
  grid-template-areas: "name avatar";
  text-align: right;
}

#container #user #user-name {
  height: 40px;
  line-height: 40px;
  margin-right: 20px;
  grid-area: name;
}

#container #user #user-shortcuts a {
  height: 40px;
  line-height: 40px;
  margin-left: 20px;
  display: inline-block;
  text-decoration: none;
  font-size: calc(var(--base-font-size));
  color: #000;
}

#container #user #user-avatar {
  width: 40px;
  height: 40px;
  grid-area: avatar;
}

#container #user #user-avatar img {
  width: 40px;
  height: 40px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
              rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
              rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
}

/* ====================== TABS ====================== */
#container #tabs {
  display: flex;
  position: absolute;
  top: 10px;
  left: 10px;
}

#container #tabs a {
  height: 40px;
  line-height: 40px;
  padding: 0 20px;
  display: inline-block;
  position: relative;
  text-decoration: none;
  color: #000;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#container #tabs a:hover {
  top: -5px;
  transform: translateY(-5px);
}

#container #tabs .active {
  color: #FFF;
  font-weight: bold;
}

#container #tabs .tab-count {
    position: absolute;
    top: 0px;
    right: 0px;
    background: linear-gradient(145deg, #ff5a5a, #d90000);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    line-height: 14px;
    text-align: center;
    display: none;          /* standaard verborgen */
    vertical-align: middle;
}

/* ====================== Alphabet ====================== */

#alphabet-letters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

#alphabet-letters:hover .active {
  background: transparent;
}

#alphabet-letters li {
  text-align: center;
  border-radius: 50%;
}

#alphabet-letters .active,
#alphabet-letters li:hover {
  background: #F19620;
}

#alphabet-letters a {
  padding: 10px;
  display: block;
}

/* ====================== VISITOR ====================== */
#container #visitor {
  height: 60px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 800;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#container #visitor a {
  height: 60px;
  line-height: 60px;
  margin-left: 20px;
  display: inline-block;
  position: relative;
	text-decoration: none;
  color: #000;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#container #visitor a.active {
	color: #FFF;
}

#container #visitor a:hover {
  top: -2px;
  transform: translateY(-2px);
}

/* ====================== MAIN ====================== */
#container #main {
  padding: 20px 20px 0px 20px;
  grid-area: main;
  position: relative;
  overflow: hidden;
  background: #FFF;
}

#container #main p,
#container #main h1,
#container #main h2 {
  margin-bottom: 10px;
}

#container #main h3 {
  margin-bottom: 10px;
}

#container #main ol.list, 
#container #main ul.list {
margin-left: 1.5em;
}
#container #main .list li {
margin-bottom: 0.5em;
}

#container #main section {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: auto;
  margin: 0 auto;
}

#container #main section[rel="three"] {
  grid-template-rows: auto auto auto;
  grid-template-columns: 1fr 1fr 1fr;
}

#container #main label {
  cursor: pointer;
  cursor: hand;
}

/* ====================== SIDEBAR ====================== */
#container #sidebar {
  grid-area: sidebar;
  padding: 20px;
  position: relative;
  background: #AEC1DB;
}

#container #sidebar section {
  position: sticky;
  top: 20px;
  bottom: 20px;
}

#container #sidebar dl dt,
#container #sidebar dl dd {
  width: auto;
}

#container #sidebar nav {
	margin-bottom: 20px;
  position: sticky;
  top: 20px;
  bottom: 20px;
}
#container #sidebar nav h2 {
	margin-top: 0;
}
#container #sidebar nav a {
	display: block;
	text-decoration: none;
	margin: 3px 0;
}
#container #sidebar nav a:hover {
	text-decoration: underline;
}

/* ====================== FOOTER ====================== */
#container #footer {
  grid-area: footer;
  line-height: 50px;
  display: flex;
  justify-content: center;
  background: #404040;
}

#container #footer * {
  color: #FFF;
}

/* ====================== PROFILES ====================== */
#container .profiles {
  --numcolumns: 4;
  --gap: 20px;
  --size: calc(100vw / var(--numcolumns));
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(var(--numcolumns), 1fr);
  grid-template-rows: auto;
  gap: var(--gap);
  list-style: none;
}

#container .profiles a,
#container .profiles li {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


#container .profiles span {
  margin-top: 10px;
  display: block;
  font-size: calc(var(--base-font-size));
  text-align: center;
}

#container .profiles img {
  width: 100%;
  max-height: 100%;
  display: block;
  object-fit: cover;
}

#pagination {}

#pagination button.previous { 
	float:left;
}

#pagination button.next { 
	float:right;
}

/* ====================== FRIENDS ====================== */
#container #friends h2 {
  display: none;
}

#container #friends-list {
  --numcolumns: 5;
  --gap: 20px;
  --size: calc(100vw / var(--numcolumns));
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(var(--numcolumns), 1fr);
  grid-template-rows: auto;
  gap: var(--gap);
  list-style: none;
}

#container #friends-list a,
#container #friends-list li {
  display: block;
}

#container #friends-list span {
  margin-top: 10px;
  display: block;
  font-size: calc(var(--base-font-size));
  text-align: center;
}

#container #friends-list img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ==============================
   REGISTRATION
================================= */

#registrationForm {
    width: 100%;
    max-width: 550px;
    padding: 20px;
	margin: 0px auto 20px auto;
    background: #e6e6e6;
    border-radius: 10px;
}

#registrationForm fieldset {
    border: none;
    padding: 20px;
	margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    display: grid;
    gap: 10px;
}

#registrationForm dl {
    display: grid;
    gap: 20px;
    grid-template-columns: 120px 1fr;
    align-items: center;
    margin: 0;
}

#registrationForm dt {
    margin-bottom: 0;
    font-weight: bold;
}

#registrationForm dd {
    margin: 0;
	position: relative;
}

#registrationForm .error-message {
display: none;
  color: #b71c1c;
}

#registrationForm .password-popup {
    display: none;
    position: absolute;
    top: 100%;       /* direct onder input */
    left: 0;
    width: 100%;
    margin-top: 5px; /* kleine ruimte onder input */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.85em;
    z-index: 10;
}

#registrationForm .password-popup ul {
list-style: none;
padding: 0;
margin: 0;
}

#registrationForm .password-popup li {
margin-bottom: 4px;
color: red;
}

#registrationForm .password-popup li.valid {
color: green;
}

#registrationForm .custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.95em;
  user-select: none;
  position: relative;
}

#registrationForm .custom-checkbox input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}

#registrationForm .custom-checkbox .checkmark {
  height: 20px;
  width: 20px;
  margin-right: 10px;
  position: relative;
  border-radius: 3px;
  border: 1px solid #707070;
  background: linear-gradient(
    to bottom,
    #f2f2f2 0%,
    #ebebeb 42%,
    #dddddd 47%,
    #cfcfcf 100%
  );
  transition: all 0.1s ease-in;
}

#registrationForm .custom-checkbox:hover .checkmark {
  background: linear-gradient(
    to bottom,
    #eaf6fd 0%,
    #d9f0fc 42%,
    #bee6fd 47%,
    #bce5fc 58%,
    #a7d9f5 100%
  );
  border: 1px solid #3C7FB1;
  box-shadow: 0 0 3px #A7D9F5;
}

#registrationForm .custom-checkbox input:focus + .checkmark {
  background: linear-gradient(
    to bottom,
    #eaf6fd 0%,
    #d9f0fc 42%,
    #bee6fd 47%,
    #bce5fc 58%,
    #a7d9f5 100%
  );
  border: 1px solid #3C7FB1;
  box-shadow: 0 0 3px #A7D9F5;
}

#registrationForm .custom-checkbox:active .checkmark {
  box-shadow:
    inset 0 -1px 6px rgba(0, 0, 0, 0.2),
    inset 0 -0.7em #BEE6FD,
    0 0 3px #A7D9F5;
}

#registrationForm .custom-checkbox input:checked + .checkmark {
  background: linear-gradient(
    to bottom,
    #eaf6fd 0%,
    #d9f0fc 42%,
    #bee6fd 47%,
    #bce5fc 58%,
    #a7d9f5 100%
  );
  border: 1px solid #3C7FB1;
}

#registrationForm .custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

#registrationForm .custom-checkbox input:checked + .checkmark::after {
  display: block;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ==============================
   LOGIN
================================= */

#loginForm {
    width: 100%;
    max-width: 550px;
    padding: 20px;
	margin: 0px auto 20px auto;
    background: #e6e6e6;
    border-radius: 10px;
}

#loginForm fieldset {
    border: none;
    padding: 20px;
	margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    display: grid;
    gap: 10px;
}

#loginForm dl {
    display: grid;
    gap: 20px;
    grid-template-columns: 120px 1fr;
    align-items: center;
    margin: 0;
}

#loginForm dt {
    margin-bottom: 0;
    font-weight: bold;
}

#loginForm dd {
    margin: 0;
	position: relative;
}

/* ==============================
   FORGET PASSWORD
================================= */

#forgotPasswordForm {
    width: 100%;
    max-width: 550px;
    padding: 20px;
	margin: 0px auto 20px auto;
    background: #e6e6e6;
    border-radius: 10px;
}

#forgotPasswordForm fieldset {
    border: none;
    padding: 20px;
	margin-bottom: 20px;
    background: #fff;
    border-radius: 10px;
    display: grid;
    gap: 10px;
}

#forgotPasswordForm dl {
    display: grid;
    gap: 20px;
    grid-template-columns: 120px 1fr;
    align-items: center;
    margin: 0;
}

#forgotPasswordForm dt {
    margin-bottom: 0;
    font-weight: bold;
}

#forgotPasswordForm dd {
    margin: 0;
	position: relative;
}

#forgotPasswordForm .error-message {
display: none;
}

/* ==============================
   NOTIFICATION
================================= */

.notification {
  position: relative;
  border: 2px solid #00acc1;
  padding: 20px;
  margin-bottom: 20px;
  width: auto;
  color: #007c91;
  border-radius: 5px; 
  background-color: #e0f7fa;
}

.notification-success {
  position: relative;
  border: 2px solid #43a047;
  padding: 20px;
  margin-bottom: 20px;
  width: auto;
  color: #2e7d32;
  border-radius: 5px; 
  background-color: #e8f5e9;
}

.notification-error {
  position: relative;
  border: 2px solid #e53935;
  padding: 20px;
  margin-bottom: 20px;
  width: auto;
  color: #b71c1c;
  border-radius: 5px; 
  background-color: #ffebee;

}

.notification-loading {
  position: relative;
  border: 2px solid #FFD700;
  padding: 20px 20px 20px 50px;
  margin-bottom: 20px;
  width: auto;
  color: #FF5900;
  border-radius: 5px; 
  background-color: #FFEB7A;
}

.notification-loading::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 3px solid #FF5900;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}


#menu {
  height: 50px;
  margin: 0 0 20px 0;
  list-style: none;
  border-bottom: 5px solid #E6E6E6;
}

#menu li {
  display: inline-block;
}

#menu a {
  height: 50px;
  line-height: 40px;
  padding: 0 20px;
  display: block;
  border: 5px solid transparent;
  border-bottom-width: 0;
  text-decoration: none; 
  background: transparent;
  color: inherit;
  border-radius: 6px 6px 0 0;
}

#menu a.active {
  background: #FFF;
  border-color: #E6E6E6;
  border-bottom-width: 0;
  text-decoration: none;
}
	
/* ====================== TASKBAR TOGGLE (RESPONSIVE) ====================== */
#taskbar-toggle {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  background: #4B72AA;
  color: #FFF;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

/* Tablet / mobiele schermen */
@media (max-width: 900px) {

  #taskbar-toggle {
    display: block;
  }

  #container {
    grid-template-areas:
      "header"
      "main"
      "sidebar"
      "footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  #container #taskbar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 200px;
    height: 100%;
    transition: left 0.3s ease;
    z-index: 1500;
  }

  body.taskbar-open #container #taskbar {
    left: 0;
  }

  /* Overlay als taskbar open is */
  body.taskbar-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1400;
  }
}

/* Mobiel */
@media (max-width: 600px) {
  #container {
    margin: 10px;
    gap: 10px;
  }

  #container #friends-list {
    --numcolumns: 2;
  }
}
