:root {
    --main-bg-color: navy;
    --main-text-color: white;
    --accent-color: gray;
    --page-bg-color: #f0f0f0; /* Very light gray background */
}

body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin: 0;
    padding: 0;
    background-color: var(--page-bg-color);
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.sidebar {
    width: 250px;
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(0); /* Default state for large screens */
    transition: transform 0.3s;
}


/* Styles to show the sidebar when it's supposed to be visible */
.sidebar.visible {
    transform: translateX(0);
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
    overflow: auto;
}

table {
    width: 100%;
    table-layout: fixed;
}

th, td {
    word-wrap: break-word;
    padding: 8px;
    border: 1px solid #ccc;
    vertical-align: top;
}

th.details, td.details {
    width: 50%; /* Adjust as needed */
}

th.small-col, td.small-col {
    width: 10%; /* Adjust based on your content */
}

input[type="text"], textarea {
    width: 100%;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    height: 80px; /* Set an initial height */
}

th, td {
    border: 1px solid var(--accent-color);
    padding: 8px;
    text-align: left;
}

tr:nth-child(even) {
    background-color: var(--accent-color);
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    position: relative; /* For nested dropdowns */
}

nav ul li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: var(--main-text-color);
    background-color: var(--main-bg-color); /* Dark background for nav items */
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--accent-color);
}

/* Nested dropdowns */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 150px;
    z-index: 1000;
}

nav ul li:hover ul {
    display: block;
}

nav ul li ul li {
    display: block;
}


.button {
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    border: none;
    padding: 15px 30px;
    margin: 10px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s;
}

.button:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
    cursor: pointer;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.menu-button {
    display: none;  /* Hide by default */
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 1001;
    padding: 10px 15px;
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}