﻿/* Global elements */
body {
    margin: 0px;
    font-family: Arial, sans-serif;
    font-size: 14px
}

.page-container {
    display: flex;
    width: 100%;
    min-height: 75vh;
    background-color: #f4f7fa;
    overflow: auto;
}

.page-container-modal {
    display: flex;
    justify-content: center;
}

main {
    flex-grow: 1;
    padding: 0 10px;
    margin: 0 auto;
    overflow: auto;
}
footer {
    display: flex;
    justify-content: space-between;
}
section {
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 24px;
}

h2 {
    margin-top: 15px;
}

h3 {
    margin: 0;
}

li {
    list-style: none; 
}

ul {
    list-style: none;
    padding: 10px;
    margin: 0;
}

a {
    color: #017f89;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

a:hover{
    text-decoration: underline;
}

p { 
    font-size: 14px 
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

button {
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    background-color: #017f89;
}

button:hover {
    background-color: #014b51;
}

/* Table */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 5px;

    margin-top: 10px;
    margin-bottom: 24px;
}

th {
    
    text-align: left;
    vertical-align: middle;
    background-color: #3b5462;
    font-weight: bold;
    color: #fff;
}

th, td {
    padding: 2px 5px;
    border: 1px solid #ccc;
}

tr {
    transition: background-color 0.2s;
}

tbody tr:nth-child(even) {
    background-color: #f4f7fa;
}

tbody tr:hover {
    background-color: #e0f7fa;
}

.text-col {
    min-width: 100px;
}

.longtext-col {
    min-width: 150px;
}

.description-col {
    min-width:250px;
}

.email-col {
    min-width: 150px;
}

.fullname-col {
    min-width: 200px;
}

.dietary-col {
    min-width: 120px;
}

/* Navigation Bar */
.nav-container {
    background-color: #f4f7fa;
}

.navigationbar {
    display: inline-block;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 4px;
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 6px; 
}



/* Navigation Bar Links */
.nav {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav li {
    display: flex;
    align-items: center;
    padding: 8px;
    transition: background-color 0.3s ease;
}

.nav li:hover {
    background-color: #e0f7fa;
}

.nav li a {
    display: flex;
    width: 100%;
    align-items: center;
    text-decoration: none;
    color: #000;
    cursor: pointer;
}

.nav li img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.nav li.responsive-links {
    display:none;
}

.nav li.logout {
    background-color: #e3e3e3;
}

.sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 251px;
    height: 74vh;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    margin-left: 10px;
    padding: 10px;
}

.sidebar-header {
    width: 230px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    text-align: center;
    margin-bottom: 5px
}

.sidebar-content {
    max-height: 0;
    overflow: hidden;
}

.sidebar-content.active {
    max-height: fit-content; 
    margin-top: 5px;
}

.full-page{
    background-color: #fff;
}

/* Toolbar */
.toolbar-container {
    display: flex;
    background-color: #f4f7fa;
    overflow: auto;
    padding: 0 10px;
}

.toolbar {
    display:flex;
    flex-grow: 1;
    justify-content:space-between;
    background-color: #fff;
    padding:5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.toolbar-buttons {
    display: flex;
}

.toolbar-buttons button{
    margin-right: 5px;
}

.searchbar {
    width: 280px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.modal-content {
    background-color: #fff;
    margin: 100px auto;
    padding: 20px;
    border: 1px solid #888;
    width: 278px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.large-modal {
    width: 600px;
    margin: 20px auto;
}

.modal.popup {
    overflow: hidden;
    display: block;
}

.confirm-button {
    background-color: #dc3545;
}

.confirm-button:hover {
    background-color: #c82333;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close:hover {
    color: #000;
}

.flash-success {
    animation: flashGreen 1s ease forwards;
}

@keyframes flashGreen {
    0% {
        background-color: #d4edda;
    }
    100% {
        background-color: transparent;
    }
}

@media (max-width: 800px) {
    main {
        padding: 0 5px;
    }

    .toolbar-container {
        padding: 0 5px;
    }

    .nav li.responsive-links {
        display: inline;
    }
}

@media (max-width: 660px) {
    .large-modal {
        width: 278px;
    }

    footer {
        display: block;
    }
}

@media (max-width: 480px) {
    .searchbar{
        padding: 5px;
        width: 150px;
    }

    button {
        padding: 5px 10px;
    }

}

