:root {
    --background: #e6f2ff; /* Light blue-grey background */
    --accent: #0077b3; /* Blue accent color */
    --color: #333; /* Default text color */
    --input-background: #f5f5f5; /* Light grey background for input fields */
    /* Common variables */
    --dull: #666; /* Dull text color */
    --error: #e74c3c; /* Error color */
    --highlight: rgba(0, 0, 0, 0.05); /* Highlight color */
    --menu-background: #f2f2f2; /* Light grey background for menu */
}

/* Dark mode variables (only defined when dark mode is active) */
.dark-mode {
    --background: #1a1a1a; /* Dark background color */
    --accent: #1e90ff; /* Dark blue accent color */
    --color: #ccc; /* Slightly darker text color */
    --input-background: #333; /* Dark grey background for input fields */
    --menu-background: #2a2a2a; /* Dark mode background color for menu */
    --link: #6bb6ff; /* Unvisited hyperlink color */
    --visited-link: #9e9e9e; /* Visited hyperlink color */
}


body {
    margin: 0;
    padding: 0;
    font-family: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
    height: 100vh;
    width: 100%;
    background: var(--background);
    color: var(--color);
}


h1 {
    font-size: 4em;
    margin: 32px 0;
}

.hidden {
    position: absolute;
    left: -1000%;
    top: -1000%;
    height: 0;
    width: 0;
    pointer-events: none;
    opacity: 0;
}

.formWrapper {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formWrapper .btn {
    text-align: left;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.loginform {
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    padding: 30px;
}

.loginform h1 {
    margin: 0 auto 15px auto;
    font-size: 2em;
    text-align: center;
}

.inputblock {
    position: relative;
    display: block;
    padding: 15px 0;
    clear: both;
}

.inputblock input {
    width: 100%;
    padding: 7px;
    box-sizing: border-box;
    display: block;
    background-color: var(--input-background); /* Set the background color for input fields */
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: inherit;
    border: 0;
    margin-top: 2px;
    border-bottom: 1px solid var(--color);
}

.inputblock label {
    display: block;
    font-size: 13px;
    color: var(--dull);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 10px 10px;
    font-size: 16px;
    border: 2px solid var(--color);
    border-radius: 2px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: background .3s, color .3s;
}

.btn:hover, .btn:active {
    border: 0;
    padding: 12px 22px;
    background: var(--color);
    color: var(--background);
}

.btn:active {
    box-shadow: inset 0 0 4px 5px rgba(0,0,0,.1);
}

.errcontainer {
    font-size: 14px;
    opacity: 1;
    transition: opacity .3s;
}

.err {
    margin: 5px 0;
    color: var(--error);
}

.err ul {
    list-style-type: none;
    margin: 0;
    padding-inline-start: 2em;
}

form a {
    position: relative;
    margin: 0;
    line-height: 1.4em;
    display: inline-block;
    color: var(--dull);
    text-decoration: none;
    transition: color .3s;
}

.errorcontainer a {
    display: inline;
    line-height: normal;
    text-decoration: underline;
    color: inherit;
}

form a:before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 1px;
    background: var(--dull);
    width: 0px;
    transform: translateX(-50%);
    transition: width .5s;
}

form a:hover:before {
    width: 100%;
}

form a:hover {
    color: var(--color);
}

.no-padding-margin {
    padding: 0;
    margin: 0;
    width: 100%;
}

.loader {
    height: 64px;
    width: 64px;
    position: fixed;
    top: calc(50% - 32px);
    left: calc(50% - 32px);
    border: 2px solid var(--highlight);
    border-left: 2px solid var(--color);
    border-radius: 50%;
    animation: loader 1.5s linear infinite;
}

@keyframes loader {
    to {
        transform: rotate(360deg);
    }
}

/* Tabble stuff */
table {
    border-collapse: collapse;
    width: 100%;
}

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

th {
    background-color: var(--highlight);
}
/* Links */
a {
    color: var(--accent); /* Default hyperlink color */
    text-decoration: none;
}

a:hover {
    text-decoration: underline; /* Add underline on hover */
}

a:visited {
    color: var(--visited-link); /* Visited hyperlink color */
}






/* Styles for compact form */
#compact-form {
    display: grid;
    grid-template-columns: max-content auto;
    gap: 10px;
}

#compact-form label {
    margin-right: 10px;
}

#compact-form input[type="text"],
#compact-form textarea,
#compact-form input[type="number"] {
    width: 200px;
}

#compact-form input[type="checkbox"] {
    margin-top: 5px;
}

.compact-form input[type="text"],
.compact-form textarea,
.compact-form input[type="email"],
.compact-form input[type="date"] {
    width: 200px; /* Adjust the width as needed */
  background-color: #fcfcfc  /* Light grey background color */
 
}
/* -----------Menu stuff
  

    /* Container styles */
    .container {
        position: relative; /* Position relative for absolute positioning of menu */
        display: flex;
        height: 100vh; /* Full height of the viewport */
    }

    /* Top div styles */
    .top-div {
        height: 40px;
        width: 100%;
        background-color: var(--highlight);
        padding: 10px;
    }

    /* Menu toggle button styles */
    .menu-toggle {
        position: absolute; /* Position menu toggle button */
        top: 40px; /* 40px from top */
        left: 0; /* Flush against left edge */
        cursor: pointer;
        padding: 10px;
    }

    /* Menu styles */
    .menu {
        position: absolute; /* Position menu */
        top: 40px; /* 40px from top */
        left: 0; /* Flush against left edge */
        width: 0; /* Initially collapsed */
        height: 100%; /* Full height of the viewport */
        overflow-x: hidden; /* Hide overflowing content */
        transition: width 0.3s ease; /* Smooth transition for opening/closing */
        background-color: #ccc; /* Example background color */
    }

    /* Menu open state */
    .menu-open .menu {
        width: 200px; /* Expanded width */
    }
.menu-open .content {
    margin-left: 20px; /* Adjusted based on menu width */
}
    /* Menu list styles */
    .menu ul {
        list-style: none;
        padding: 0;
    }

    .menu li {
        margin-bottom: 10px;
    }

    /* Menu button styles */
    .menu button {
        margin-top: 10px;
    }
/* Content styles */
.content {
    position: absolute; /* Position content */
    top: 40px; /* 40px from top */
    left: 30px; /* Take remaining width */
    bottom: 0; /* Take remaining height */
    padding: 10px;
    overflow-y: auto; /* Enable vertical scrolling if content overflows */
    transition: margin-left 0.3s ease; /* Smooth transition for left position */
}

/* Adjust content margin when menu is open */
.menu-open .content {
    margin-left: 200px; /* Adjusted based on menu width */
}

