@import "slider.css";
@import "modal.css";
@import "triangle.css";
body {
    font-family: Arial, sans-serif;
    margin: 40px;
    padding-bottom: 10vh; /* Prevents content from being hidden under the log div */
}

header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

header img {
    height: 50px;
    margin-right: 20px;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #ffffff;
    color: rgb(148, 148, 148);
    text-align: left;
  }
  

.controls {
    display: flex;
    gap: 20px; /* Space between the divs */
    align-items: flex-end; /* Aligns children to the bottom */
}

form, .control-panel {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distributes space to push buttons to the bottom */
    height: 100%; /* Ensures divs take full height for alignment */
}

form div, .control-panel div {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input, button {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;  /* Makes padding and border part of the width */
}

button {
    background-color: #4472C4;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:not(:first-child) {
    margin-top: 10px;  /* Adds space between multiple buttons */
}

button:hover {
    background-color: #7F9ED7;
}

#log {
    white-space: pre-line;
    background: #f4f4f4;
    border: 1px solid #ddd;
    margin-top: 20px;
    
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10vh; /* 25% of the viewport height */
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    color: white;
    overflow-y: auto; /* Allows scrolling inside the log div */
    z-index: 1000; /* Ensures it stays on top of other content */
    padding: 10px;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.5);

}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


.header h1, .header p {
    margin: 0;
    padding: 10px;
    background-color: #e9ecef;
}

.main-content {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.problem, .solution, .effect {
    width: 30%;
    border: 2px solid #000;
    padding: 10px;
    background-color: #f8f9fa;
}


.icon-button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px; /* Adjust padding to suit your design */
    display: inline-block; /* This makes the button only as big as its content */
    color: #444; /* Default icon color, change as needed */
    font-size: 1.5em; /* Adjust the size of the icon */
}

.icon-button:hover {
    color: #555; /* Slightly darker on hover */
}

.icon-button[title]:hover::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateX(10px) translateY(-50%);
    white-space: nowrap;
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    font-size: 0.75em; /* Size of the tooltip text */
}

.user-info-button-container {
    position: fixed; /* or absolute, depending on your needs */
    top: 10px; /* adjust as needed */
    right: 10px; /* adjust as needed */
}


/* Sidebar styling */
.sidebar {
    height: 100vh;
    width: 200px;
    position: fixed;
    left: 0;
    top: 0;
    background: #333;
    color: white;
    padding: 20px 0;
}

.sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    display: block;
    transition: background 0.3s;
}

.sidebar a.active, .sidebar a:hover {
    background: #4472C4; /* Use the same blue as buttons */
}

/* Content area styling */
.content {
    margin-left: 200px; /* Same as sidebar width */
    padding: 20px;
    overflow: auto;
}

/* Section and table styling */
.content section {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.content section.active-section {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f9f9f9;
}

.role-controls button {
    margin-right: 10px;
    background-color: #4472C4;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
}

.role-table {
    overflow-x: auto; /* Allows table scrolling */
}

.role-table table {
    width: 100%;
    border-collapse: collapse;
}

.role-table th, .role-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.role-table th {
    background-color: #f9f9f9;
    cursor: pointer; /* Indicates interactivity */
}

.cy {
    width: 100%;
    height: 100vh;
    border: 1px solid black;
}

.heatmap-cell {
    stroke: gray;
    stroke-width: 1px;
}
.tooltip {
    position: absolute;
    background: white;
    border: 1px solid gray;
    padding: 5px;
    font-size: 12px;
    pointer-events: none;
}
.axis-label {
    font-size: 12px;
    text-anchor: middle;
}
.y-axis-label {
    font-size: 14px;
    text-anchor: end;
}
.header-text {
    font-size: 14px;
    font-weight: bold;
    text-anchor: middle;
}
.threshold-line {
    stroke: red;
    stroke-width: 2px;
}