/* This file contains CSS styles for the web application. */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

header {
    background: #35424a;
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
}

h1 {
    margin: 0;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    margin-right: auto;
    margin-left: auto;
}

nav {
    background: #35424a;
    color: #ffffff;
    padding: 10px;
}

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

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
}

/* Updated footer styles */
footer {
    background: #35424a;
    color: #ffffff;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    margin-top: auto; /* Push to the bottom */
    z-index: 1000;
}

/* Main content area */
main {
    flex: 1; /* Take up available space */
}

/* Wrapper for the main layout - updated to properly use flexbox */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar styles - using a pseudo-element to create the full-height background */
#sidebar {
    position: relative;
}

#sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background-color: #212529;
    z-index: -1;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th, .table td {
    border: 1px solid #dddddd;
    text-align: left;
    padding: 8px;
}

.table th {
    background-color: #35424a;
    color: white;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}