body {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 20px;
    background-color: #f9f9f9;
}

.intro #profileSection , .intro #outputSection , .intro #scenariosSection , .intro  #toolbar-nav , .intro #toolbar-actions { display:none;}

.single #intro { display: none;}
.single #profileSection , .single #outputSection , .single #scenariosSection , .intro  #toolbar-nav , .intro #toolbar-actions  { display:default;}

.single .couple { display:none;}
.brief .details {display: none;}

h1, h2 {
    color: #333;
}
.editable-button {
    padding: 4px;
    background-color: inherit;
    text-decoration: underline;
    font-size: large;
    color: black;
    border: none;
    cursor: pointer;
    }


.input-field {
    margin-bottom: 2px;
}

.input-field input {
    margin-right: 10px;
    padding: 4px;
    /*width: 200px;*/
    height: 24px;
    vertical-align: middle;
}
.rate-label {
    display: inline-block;
    /*max-width: 300px;*/
    text-align: right;
}
.rate-value {
    display: inline-block;
    width: 80px;
}
.item-amount { width: 120px;}
.item-from, .item-to { width: 60px;}
.groupDisplay ul { margin: 0;}
.group-button {
    padding: 4px;
    background-color: inherit;
    text-decoration: underline;
    font-size: large;
    color: black;
    border: none;
    cursor: pointer;
}
.groupEdit {display: inline;}
button {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    border: 1px #801900 solid;
    cursor: pointer;
}
.period {
    font-style: italic;
    font-weight: 600;
}
button:hover {
    background-color: #45a049;
}


.outputTable-container {
  max-height: 700px; /* Set desired height for scrollable area */
  overflow-y: auto; /* Allow vertical scrolling */
  overflow-x: auto ;
  border: 1px solid #ddd;
}

.outputTable-container table thead th {
  position: sticky;
  top: 0; /* Fixes the header to the top */
  z-index: 1; /* Ensures header stays above table content */
}


/*  ------------------------------ */
#monteCarlo_table td { text-align: center;}
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    position: relative;
    user-select: none; /* Disable text selection during drag */
}

th {
    background: #f4f4f4;
    cursor: pointer; /* Indicates draggable columns */
}

.resizer {
    position: absolute;
    right: 0;
    top: 0;
    width: 5px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
    touch-action: none;
}

.drag-over {
    border-left: 3px solid #00f; /* Highlight drop target */
}

/* ----------------------------------------- */
/* Styles for the Status Bar */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #444;
    z-index: 1000; /* Ensure it stays on top */
}

.status-bar span {
    display: inline-block;
}

#chartContainer {
    display: flex;
    justify-content: space-around; /* Space around the charts */
    width: 100%; /* Full-width container */
}
.centered td { text-align: center !important;}
.chart-wrapper {
    width: 45%; /* Adjust width as needed to fit both charts */
    /* height: 300px; /* Set height for each chart */
}
#profileSection td { 
    
    padding: 0 8px 0 8px;
}
canvas {
    width: 100% !important;
}
#outputChart1, #outputChart2 {
    width: 100%; /* Fit canvas within the wrapper */
    height: 100%;
    padding-bottom: 40px;
}
.note-amount { width: 10%;}
.inputGroup { border: 1px solid gray;}
/* Basic sidebar styling */
#right-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background-color: #333;
    padding-top: 20px;
    overflow-x: hidden;
    transition: width 0.3s;
    color: white;
}
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background-color: #333;
    padding-top: 20px;
    overflow-x: hidden;
    transition: width 0.3s;
    color: white;
}

#sidebar a {
    padding: 10px 15px;
    display: block;
    color: white;
    text-decoration: none;
}

#sidebar a:hover {
    background-color: #575757;
}

/* Toggle button for sidebar */
#sidebarToggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin: 10px;
}

/* Main content adjustment for sidebar */
#mainContent {
    margin-left: 20px; /*200px;*/
    padding: 20px;
    transition: margin-left 0.3s;
    overflow: auto;
}

/* Collapsed sidebar styling */
#sidebar.collapsed {
    width: 60px;
}

#mainContent.collapsed {
    margin-left: 70px;
}

/* Toolbar styling */

/* Toolbar styling */
#toolbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#toolbar-logo {
    font-size: 1.5em;
    font-weight: bold;
}

#toolbar-nav {
    /*display: flex; */
    flex: 1;
    gap: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

#toolbar-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

#toolbar-nav a:hover {
    text-decoration: underline;
}

#toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 40px
}

#toolbar-actions button {
    background-color: #444;
    border: none;
    color: white;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

#toolbar-actions button:hover {
    background-color: #555;
}


/* Adjustments for main content and sidebar */
#mainContent {
    padding-top: 40px; /* Offset for toolbar height */
}

#sidebar, .right-sidebar {
    top: 60px; /* Start sidebar below toolbar */
}
/* Popup content box */


/* Popup content box */
.popup-content {
    display: none; /* Start hidden */
    font-size: 1em;
    min-width: 25%;
    height: fit-content !important;
    background-color: rgba(255, 255, 255, 0.95); /* Lightly transparent white */
    background-color: #ebebe5;
    border: 2px solid #a9a9bd;

    padding: 5px;
    border-radius: 8px;
    width: 40%;
    max-width: 500px;
    position: fixed;
    top: 120px;
    left: 260px;
    transform: translate(-50%, -20%);
    z-index: 1000; /* Keep it on top */
}

/* Close button styling */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.rowSelected {
    border: 2px solid green;
    background-color: #f3f3ef;
}
.cellSelected { border: 2px solid blue;}

.card {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: box-shadow 0.3s ease;
  }
  
  .card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  
  .card h3 {
    margin-top: 0;
  }
  
  .card button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .card button:hover {
    background-color: #0056b3;
  }
  .card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
    
/* Optional button styling */
.icon-button {
    margin-left: 10px;
    display: inline;
    align-items: center;
    padding: 8px 12px;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .icon-button i {
    margin-right: 5px;
  }
  
  .icon-button:hover {
    background-color: #0056b3;
  }
  
/* -------------------- responsive */

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    gap: 20px;
  }
.editTable { overflow-x: auto;}
  .section {
    flex: 1 1 calc(30% - 20px); /* Responsive width for three sections */
    /*min-width: 300px; /* Minimum width for smaller screens */
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-sizing: border-box;
  }

  .section h2 {
    margin-top: 0;
    color: #0078D7;
  }

  .section ul {
    padding-left: 20px;
  }

  .section ul li {
    margin-bottom: 10px;
  }

  @media (max-width: 768px) {
    .section {
      flex: 1 1 100%; /* Full width on smaller screens */
    }
  }
