/* Google Font Import - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  /* ===== Colors ===== */
  --body-color: #E4E9F7;
  --sidebar-color: #FFF;
  --primary-color: #695CFE;
  --primary-color-light: #F6F5FF;
  --toggle-color: #DDD;
  --text-color: #707070;
  --text-color-container: #2b2b2b;
  --text-error: red;
  

  /* ====== Transition ====== */
  --tran-02: all 0.2s ease;
  --tran-03: all 0.3s ease;
  --tran-04: all 0.3s ease;
  --tran-05: all 0.3s ease;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--body-color);
  transition: var(--tran-05);
}

::selection {
  background-color: var(--primary-color);
  color: #fff;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 275px;
  padding: 10px 14px;
  background: var(--sidebar-color);
  transition: var(--tran-05);
  z-index: 100;
}

.sidebar li {
  height: 50px;
  list-style: none;
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.sidebar header .image,
.sidebar .icon {
  min-width: 60px;
  border-radius: 6px;
}

.sidebar .icon {
  min-width: 60px;
  border-radius: 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.sidebar .text,
.sidebar .icon {
  color: var(--text-color);
  transition: var(--tran-03);
}

.sidebar .text {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 1;
}

.sidebar header {
  position: relative; 
}

.sidebar header .image-text {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.sidebar header .logo-text {
  display: flex;
  flex-direction: column;
}

header .image-text .name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 600;
}

.sidebar header .image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar header .image img {
  width: 40px;
  border-radius: 6px;
}

.sidebar .menu {
  margin-top: 40px;
}

.sidebar li a {
  list-style: none;
  height: 100%;
  background-color: transparent;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--tran-03);
}

.sidebar li a:hover {
  background-color: var(--primary-color);
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text {
  color: var(--sidebar-color);
}

.sidebar .menu-bar {
  height: calc(100% - 55px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: scroll;
}

.menu-bar::-webkit-scrollbar {
  display: none;
}

.sidebar .menu-bar .mode {
  border-radius: 6px;
  background-color: var(--primary-color-light);
  position: relative;
  transition: var(--tran-05);
}

/* ==== Sidebar END ==== */

.container, .error-container {
  position: absolute;
  top: 0;
  height: 100vh;
  background-color: var(--body-color);
  margin: 10px;
  color: var(--text-color-container);
}

.container {
  left: 300px;
  width: calc(100% - 300px);
}

.container.nonav {
  display: flex; 
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  left: 0px;
  height: 100vh;
  width: 100%;
}

.container h2 {
  font-size: 25px;
  font-weight: 500;
  margin: 10px 0px;
}

/* ==== Form ==== */
form input,
form select {
  font-size: 16px;
  border-radius: 8px;
  padding: 5px 5px;
  /*margin: 4px 0;*/  
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin: 10px;
}

.form-group-gh {
  display: flex;
  flex-direction: row;
  margin: 10px;
  gap: 10px;
}

label {
  font-size: 16px;
  font-weight: 500;
}

input {
  box-sizing: border-box;
}

select {
  background-color: white;
}

.btn {
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 16px;
  color: var(--primary-color-light);
  border: none;
  cursor: pointer;
}

.btn-edit {
  background-color: orange;
}

.btn-delete, .btn-toggleError {
  background-color: red;
}

.btn-toggleError {
  margin: 20px 0px;
}

.btn-new,
.btn-update {
  background-color: var(--primary-color);
}

.btn-new-member {
  background-color: green;
}

.btn-login {
  font-size: 20px;
  font-weight: 500;
  border-radius: 8px;
  padding: 5px 20px;
  background-color: var(--primary-color);
  color: var(--primary-color-light);
}

.btn-cancel {
  /* font-size: 20px;*/
  font-weight: 500;
  border-radius: 8px;
  padding: 5px 20px;
  background-color: red;
  color: var(--primary-color-light);
}

.btn-toggle {
  background-color: var(--primary-color);
  color: var(--primary-color-light);
  cursor: pointer;
}

.btn-toggle-all {
  border: 2px solid;
  border-color: var(--primary-color-light);
}

a:link {
  text-decoration: none;
}
/* ==== END Form ==== */



/*==== Tables ====*/
table {
  border-collapse: collapse;
}

thead tr th:first-child {
  border-top-left-radius: 10px;
}

thead tr th:last-child {
  border-top-right-radius: 10px;
}

.dropdownTable thead tr th:first-child {
  border-top-left-radius: 0px;
}

.dropdownTable thead tr th:last-child {
  border-top-right-radius: 0px;
}

th {
  background-color: var(--primary-color);
  color: var(--primary-color-light);
  font-weight: 400;
 }

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #101010;
}

.dropdownTable th {
  background-color: gray;
  color: var(--primary-color-light);
  font-weight: 300;
  padding: 5px 10px;
}

td.align_right {
  text-align: right;  /* Align text to the left */
}

.dropdownTable {
  font-size: 14px;
}

.dropdownTable .btn .btn-edit,
.dropdownTable .btn .btn-delete {
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 14px;
  color: var(--primary-color-light);
  border: none;
}

td a.btn,
.btn {
  white-space: nowrap; /* Zorgt ervoor dat de tekst niet afbreekt */
}

/* Ensure family members row is hidden initially */
.family-members {
  display: none;
}


/*==== END Tables ====*/

/* ==== Validation ==== */
.is-invalid + .invalid-feedback,
.is-invalid.invalid-feedback {
  font-size: 15px;
  color: var(--text-error);
}
/* ==== END Validation ==== */

/* ERROR */
.debug-info {
  background-color: var(--primary-color-light);
  padding: 1em;
  border: 1px solid var(--text-color);
  white-space: pre-wrap;
}
/**************************/

/* Dashboard summary */
.dashboard-summary {
  display: flex;
  gap: 1rem; /* space between blocks */
  flex-wrap: wrap; /* wrap if screen too small */
  margin-right: 30px;
}

.dashboard-summary > div {
  flex: 1; /* all blocks same width */
  min-width: 200px;
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--primary-color-light);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}
/**************************/

/* Signalen */
td.signal-bullish {
  background: #04ee33;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
}
td.signal-bearish {
  background: #cc2323;
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
}
/**********************/

/* Loading overlay styling during scanner run*/
/*
#loadingOverlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 24px;
    text-align: center;
    padding-top: 20%;
    z-index: 9999;
}
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px; height: 60px;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}
*/

/* Overlay achtergrond */
#loadingOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    text-align: center;
    padding-top: 20%;
    color: #fff;
    font-family: Arial, sans-serif;
}

/* Spinner animatie */
.spinner {
    margin: 0 auto 20px auto;
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #00bfff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Tekst */
#loadingOverlay p {
    font-size: 18px;
    font-weight: bold;
}




/* Signal row styling */
.signal-bullish {
    background-color: #e6ffed;
    color: #2e7d32;
}
.signal-bearish {
    background-color: #ffe6e6;
    color: #c62828;
}
/******************************************/