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

/* Body styling */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1e1e1e;
    animation: pms-fade-in 0.3s ease;
}

@keyframes pms-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Header styling */
header {
    background-color: #343a40;
    color: #fff;
    /*padding: 1rem 0;*/
}

.navbar {
    margin-bottom: 0;
}

.navbar-brand {
    color: #fff;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: #ddd;
    border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover {
    color: #bbb;
}

/* Active navbar tab */
.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link[aria-current="page"] {
    background-color: transparent;
    color: #d95d25 !important;
    border-bottom-color: #d95d25;
}

/* Main content styling */
.container {
    padding: 0.1rem;
}

h2 {
    margin-bottom: 1rem;
    color: #f0f0f0; /* Light color for headings */
}

/* Form styling */
form {
    margin-top: 1rem;
}

td > hr {
    margin: 0.26rem 0;
    width: 30px;
}

main.container a.btn {
    padding: 0.16rem;
}

form a.btn {
    padding: 0.16rem;
}

form button[type="submit"] {
    background-color: #4CAF50; /* Green button */
    color: #fff;
    border: none;
    /*padding: 0.5rem 1rem;*/
    border-radius: 0.25rem;
    cursor: pointer;
}

form button[type="submit"]:hover {
    background-color: #45a049; /* Lighter hover effect */
}

/* Footer styling */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
}

.btn-link {
    margin-top: 5px;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    color: #0000EE;
    text-decoration: underline;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

/* ---------------------------- */


.object-tooltip-container {
    position: relative;
    display: inline-block;
}

.object-tooltip {
    visibility: hidden;
    width: 200px; /* Adjust width as needed */
    background-color: #523535;
    color: #8cd08d;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    top: 100%; /* Adjust the position to make sure it is right below the link */
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    white-space: pre-wrap; /* Preserve whitespace and line breaks */
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* Prevent mouse events when hidden */
}

.object-tooltip-container:hover .object-tooltip,
.object-tooltip:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; /* Enable mouse events when tooltip is visible */
}

.object-tooltip::after {
    content: '';
    position: absolute;
    top: -5px; /* Ensure the triangle is at the top of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #f9f9f9 transparent; /* Arrow pointing down */
}

/* Fix for line gap in paragraphs */
.object-tooltip p {
    margin: 0; /* Remove default margin */
    padding: 2px 0; /* Optional small padding for spacing */
    line-height: 1.2; /* Adjust line height to reduce the gap between lines */
}
