/* styles.css */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
}

h1, h2, h3 {
    color: #2e7d32;
    margin-top: 20px;
}
h4, h5, h6 {
    color: #000000;
    margin-top: 20px;
}

p {
    margin: 10px 0;
}
a {
    color: #2e7d32;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin: 20px 0;
    padding-left: 20px;
}

/* Buttons */
button {
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    cursor: pointer;
}

button:hover {
    background-color: #1b5e20;
}
button:active{
    background-color: #1b5e20;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #e8f5e9;
}


/* Custom login form styling */
.login-form {
    max-width: 100%;
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
}

.login-form .form-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.login-form button[type="submit"] {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

.login-form input:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background-color: #f8f9fa;
  padding: 1rem;
  min-width: 250px;
  max-width: 250px;
}

.main-content {
  flex: 1;
  padding: 1rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

/* custom-theme.css */
:root {
  --bs-primary: #2e7d32;
  --bs-secondary: #1b5e20;
  --bs-success: #38c172;
  --bs-info: #6cb2eb;
  --bs-warning: #ff9800;
  --bs-danger: #e3342f;
  --bs-light: #f8f9fa;
  --bs-dark: #343a40;
  --animate-delay: 0.5s;
  --animate-duration: 0.5s;
  --bs-table-color-state: #1b5e20;
}
.btn-primary {
    --bs-btn-color: #fff; 
    --bs-btn-bg: rgb(73, 130, 5); 
    --bs-btn-border-color: rgb(73, 130, 5); 
    --bs-btn-hover-color: #fff; 
    --bs-btn-hover-bg: rgb(63, 112, 4);
    --bs-btn-hover-border-color: rgb(57, 102, 3); 
    --bs-btn-focus-shadow-rgb: 73, 130, 5; 
    --bs-btn-active-color: #fff; 
    --bs-btn-active-bg: rgb(57, 102, 3); 
    --bs-btn-active-border-color: rgb(51, 92, 3); 
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); 
    --bs-btn-disabled-color: #fff; 
    --bs-btn-disabled-bg: rgb(73, 130, 5); 
    --bs-btn-disabled-border-color: rgb(73, 130, 5); 
}
.btn-outline-primary {
    --bs-btn-color: rgb(73, 130, 5);
    --bs-btn-border-color: rgb(73, 130, 5);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgb(73, 130, 5);
    --bs-btn-hover-border-color: rgb(73, 130, 5);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgb(73, 130, 5);
    --bs-btn-active-border-color: rgb(73, 130, 5);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: rgb(73, 130, 5);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: rgb(73, 130, 5);
    --bs-gradient: none;
}

.egn-nav{
    background-color: #f8f9fa;
}


.nav-egn {
  --bs-nav-egn-border-radius: var(--bs-border-radius);
  --nav-egn-bg: #e8f9ea;
  --nav-egn-bg-unfilled: #f8e9da;
  --nav-egn-bg-submitted: #e8f8da;
  --nav-egn-active-color: #f8f9fa;
  --nav-egn-active-bg: #2e7d32;
  background-color: #f8f9fa;
}
.nav-egn .nav-link{
    border-radius: var(--bs-nav-egn-border-radius);
    background-color: var(--nav-egn-bg);
}
.nav-egn .nav-link{
    border-radius: var(--bs-nav-egn-border-radius);
    background-color: var(--nav-egn-bg);
    &.unfilled{
        background-color: var(--nav-egn-bg-unfilled);
    }
    &.submitted{
        background-color: var(--nav-egn-bg-submitted);
    }
}
.nav-egn .nav-link.active{
    background-color: var(--nav-egn-active-bg);
}

td input.form-control, select.form-control {
    height: 40px !important;
    line-height: 40px !important;
}
td input.form-control, select.form-control {
    padding: 10px;
    margin: 0px;
    height: 40px;
    box-sizing: border-box;
}

.long-label .form-label {
    display: inline-block;
    width: 120%;
    margin-right: 30px;
    text-align: right;
}
div.lodng-label label.form-label{
    display: inline-block;
    width: 120%;
    margin-right: 30px;
    text-align: right;  
}

.big-checkbox {width: 24px; height: 24px;}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before {
    background-color: green!important;
}
  
.custom-checkbox .custom-control-input:checked:focus ~ .custom-control-label::before {
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 255, 0, 0.25)
}
.custom-checkbox .custom-control-input:focus ~ .custom-control-label::before {
box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0, 0, 0, 0.25)
}
.custom-checkbox .custom-control-input:active ~ .custom-control-label::before {
background-color: #C8FFC8; 
}

/* Change the background and border color of the checked checkbox */
.form-check-input:checked {
background-color: green; /* Set the green color for the background */
border-color: green;     /* Set the green color for the border */
}

/* Optional: Change the focus ring color when the checkbox is checked */
.form-check-input:checked:focus {
box-shadow: 0 0 0 0.25rem rgba(0, 128, 0, 0.25); /* Adjust green color and transparency */
}
table thead th {
    text-align: center;
    vertical-align: middle;
}
ul.errorlist{
    color: red;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* 50% transparent */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}