/* Import Google Fonts - sid*/
/* check font families and change accordingly */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Merriweather:wght@400;700&family=Montserrat:wght@400;700&family=Oswald:wght@400;700&display=swap');

/* Project Color palette - sid*/
:root {
    --nature-green: #4CAF50;
    --dark-green: #216925;
    --light-leaf-green: #8BC34A;
    --dark-brown: #5D4037;
    --dark-yellow: #FBC02D;
    --dark-orange: #F57C00;
    --dark-grey: #222222;
}

/* Define common styles, colors, and fonts */
/* needs code review */

html,body {
    font-family: 'Lato', Helvetica, sans-serif;
    background-color: #F5F5F5; /* Light Gray */
    color: #333;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container-fluid {
    padding: 0px !important;
    
}

/* Custom styles for the website and dashboard header and footer - sid */
header, footer {
    background-color: var(--dark-green); /* Dark Green */
    color: #fff;
    padding: 10px 0;
}

.dashboard-header {
    background-color: var(--dark-grey); 
    color: #fff;
    height: 70px;
}

.dashboard-footer {
    background-color: var(--dark-grey);
    color: #fff;
    padding: 10px 0;
}

/* Custom styles for Primary Button - sid */
.btn-primary {
    background-color: #4CAF50; /* Primary Green */
    border-color: #4CAF50;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary:hover {
    background-color: #388E3C; /* Dark Green */
    border-color: #388E3C;
}

/* needs code review */
header h1, footer p {
    margin: 0;
    text-align: center;
    font-family: 'Merriweather', serif;
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #4CAF50; /* Primary Green */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Custom styles for headings */
/* needs code review */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: #343a40;
}

/* Additional font usage */
/* needs code review */
.oswald-font {
    font-family: 'Oswald', sans-serif;
}

/* Custom styles for the sidebar - sid */
#sidebar {
    background-color: var(--dark-grey);    
    color: #fff;
    min-height: 100vh; /* Full height */
    padding-top: 20px;
    padding-left: 0;
    font-family: 'Montserrat', sans-serif;
    position: fixed;
    top: 60px; /* Adjust based on header height */
    left: 0;
    width: 200px; /* Adjust width as needed */
    height: calc(100vh - 60px); /* Adjust based on header height */
    overflow-y: auto;
    z-index: 1000;
}

#sidebar .nav-link {
    color: #fff;
}

#sidebar .nav-link.active {
    background-color: #4CAF50; /* Primary Green */
    color: #fff;
}

#sidebar .nav-link:hover {
    background-color: #5D4037; /* Dark Brown */
    color: #fff;
}

/* Custom Table Styles - sid*/
.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.custom-table th, .custom-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.custom-table th {
    background-color: var(--dark-brown);
    color: #fff; 
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
}

.custom-table tr:nth-child(even) {
    background-color: #f2f2f2; /* Light grey background */
}

.custom-table tr:hover {
    background-color: #ddd; /* Darker grey background on hover */
}

.custom-table td {
    font-family: 'Lato', sans-serif;
    font-size: 0.875rem;
    color: #333; /* Dark text */
}

.custom-table .btn {
    padding: 5px 10px;
    background-color: var(--dark-green);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 0.875rem;
}

.custom-table .btn:hover {
    background-color: var(--dark-orange);
}

.custom-table .btn-danger {
    background-color: #ee2c26; /* Bootstrap Danger Color */
    border-color: #ee2c26;
}

.custom-table .btn-danger:hover {
    background-color: #b91913; /* Bootstrap Darker Danger Color */
    border-color: #b91913;
}

/* Fixed Sidebar and Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

#content {
    margin-left: 200px; /* Adjust based on sidebar width */
    margin-top: 60px; /* Adjust based on header height */
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.container-fluid {
    padding: 20px;
}