
html, body {
    scroll-behavior: smooth;
    font-size: 1em;
    height: 100%;
    margin: 0;
    padding: 0;
}

#sidebar {
    min-height: 100vh; /* Ensure full viewport height */
    margin: 0;
    padding: 0;
}

/* Sidebar and Page Content Integration */

/* Ensure the page content respects the sidebar width on large screens */
@media (min-width: 992px) {
    .page-content {
        margin-left: 220px; /* Matches the fixed sidebar width */
    }
}

/* Adjust page content to full width when the sidebar is collapsed on smaller screens */
@media (max-width: 991px) {
    .page-content {
        margin-left: 0; /* Full width on small screens */
    }
}

/* Keep the footer aligned with the sidebar */
.content-footer {
    margin-left: 220px; /* Aligns with the sidebar width */
}

@media (max-width: 991px) {
    .content-footer {
        margin-left: 0; /* Full width on small screens */
    }
}


h1 {
    font-size: 2.7em;
    font-family: monospace;
    letter-spacing: 4px;
    color: white;
}
h3 {
    font-size: 2em;
    font-family: monospace;
    letter-spacing: 4px;
    color: white;
}
.main-body {
    margin-top: 80px;
}

/*Buttons*/
.allBtns {
    color: var(--alternate);
    border: 1px solid var(--main);
    border-radius: 4px;
    padding: 0.7em;
    margin-top: 3em;
}

.allBtns:hover {
    color: white !important;
    background-color: var(--main);
    border: 1px solid var(--main);
    transition: 0.3s;
}

.btnGrps {
    color: var(--alternate);
    border: 1px solid var(--main);
    padding: 0.2em 0.2em 0.2em 0.2em;
    margin-bottom: 1em;
    margin-top: 1em;
    font-size: small;
}
.btnGrps:hover {
    color: white !important;
    background-color: var(--main);
    border: 1px solid var(--main);
    transition: 0.3s;
}

.btnSmall {
    background-color: white;
    width: auto;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

.btn-group button {
    /* border: 1px solid var(--main); */
    /* color: var(--alternate); White text */
    padding: 10px 24px; /* Some padding */
    cursor: pointer; /* Pointer/hand icon */
    float: left; /* Float the buttons side by side */
}

/* Clear floats (clearfix hack) */
.btn-group:after {
    content: "";
    clear: both;
    display: table;
}

.btn-group button:not(:last-child) {
    border-right: none; /* Prevent double borders */
}
.btn-group button:not(:first-child) {
    border-left: none; /* Prevent double borders */
}


/*-------Search bar-------*/

.search {
    width: 100%;
    position: relative;
    display: flex;
}

.searchTerm {
    width: 100%;
    border: 3px solid var(--main);
    border-right: none;
    padding: 5px;
    height: 2.2em;
    border-radius: 5px 0 0 5px;
    outline: none;
    color: #9dbfaf;
}

.searchTerm:focus {
    color: var(--main);
}

.searchButton {
    width: 40px;
    height: 1.75em;
    border: 1px solid var(--main);
    background: var(--main);
    text-align: center;
    color: #fff;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 20px;
}

/*Resize the wrap to see the search bar change!*/

.wrap {
    width: 34%;
    position: relative;
    right: 0em;
    float: right;
}
@media (max-width: 1112px) {
    .wrap {
        width: 40%;
    }
}
@media (max-width: 768px) {
    .wrap {
        width: 100%;
        margin-left: 2em;
    }
}
/*-------Table--------*/

table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    margin-top: 6em;
}

th {
    border: 1px solid black !important;
    text-align: left;
}

td {
    border: 1px solid black;
    text-align: left;
}

th {
    padding: 0.75rem;
}

.main-color {
    color: var(--main);
}

.alternate-color {
    color: var(--alternate);
}

.btnWhite {
    background-color: white;
    width: 200px;
    margin: 0.25em;
    margin-top: 2em;
}

.logo-bank {
    float: left;
    height: 70px;
    width: 70px;
    margin-left: 1em;
}
.heading {
    font-size: larger;
    margin-top: 1.8em;
    margin-left: 1.8em;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: white;
    border: 1px solid var(--alternate);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.add {
    border: 1px solid var(--alternate);
}
.edit {
    border: none;
    background-color: transparent;
    padding: 0px;
    width: 100%;
}

.editSelect {
    border: none;
    background-color: transparent;
    padding: 3px;
    width: 100%;
}

.editPrice {
    border: none;
    background-color: transparent;
    padding: 0px;
    width: 50%;
}

.editBox {
    background-color: transparent;
    padding: 1px;
    width: 100%;
}

.edit2 {
    border: none;
    background-color: transparent;
    padding: 2px;
    width: 100%;
}

.editDate {
    border: none;
    background-color: transparent;
    padding: 0px;
    width: 100%;
    font-size: small;
}

.padding {
    margin-top: 1.2em;
}
.padding-more {
    margin-top: 2.6em;
}

.select-css {
    display: block;
    font-family: sans-serif;
    color: rgba(0, 0, 0, 0.37);
    line-height: 1.3;
    padding: 0.2em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.123);
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0px;
    background-color: #fff;
}
.select-css::-ms-expand {
    display: none;
}
.select-css:hover {
    border-color: #888;
}
.select-css:focus {
    border-color: #aaa;
    box-shadow: 0 0 0 3px -moz-mac-focusring;
    color: #222;
    outline: none;
}
.select-css option {
    font-weight: normal;
}

.sidebar-footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    display: flex;
    border-top: 1px solid #242424a9;
    background-color: var(--main);
}

.sidebar-footer > span {
    flex-grow: 1;
    text-align: left;
    height: 30px;
    line-height: 30px;
    position: relative;
    margin-left: 20px;
    color: white;
}
.active > i {
    color: var(--alternate) !important;
}
.active > span {
    color: var(--main);
}
.imgClm {
    position: relative;
    width: 4em;
    height: 4em;
    padding: 0px !important;
}
.p0 {
    padding: 0px !important;
}

.wrapBtns {
    display: inline-block;
    position: relative;
    width: 64%;
}

@media (max-width: 774px) {
    .wrapBtns {
        margin-top: 20px;
        width: 100% !important;
    }
}
@media (max-width: 1112px) {
    .wrapBtns {
        width: 59%;
    }
}

.upperBtns {
    display: grid;
    grid-template-areas: "header header header";
    position: relative;
}

.upperBtns input[type="button"] {
    padding: 0em;
    height: 2.2em;
    width: auto;
    margin-top: 0px;
}
.chartContainer {
    width: 700px;
    height: 700px;
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 20px;
}

.table table tr {
    border: 1px solid;
    border-color: black;
}

.table table tr td {
    border: 1px solid;
    border-color: black;
    padding: 5px;
}

.table table tr:first-child {
    background-color: var(--alternate);
}

.table table tr:nth-child(odd):not(:first-child) {
    background-color: var(--tableColor);
}

a {
    color: black !important;
    text-decoration: none !important;
}
a:hover {
    color: black !important;
    text-decoration: none !important;
}

.nav-item:hover { /* Change background color on hover */
    background-color: rgba(0, 0, 0, 0.1);
}
/* Default style for icons */
.nav-link i {
    transition: color 0.3s ease;
}

.nav-link {
    transition: background-color 0.3s ease;
    font-weight: bold;
    border-radius: 5px;
}

/* Profile */
.nav-link.profile i {
    color: #4CAF50; /* Green */
}
.nav-link.profile:hover i {
    color: #388E3C; /* Darker green */
}

/* Edit Profile */
.nav-link.edit-profile i {
    color: #FF9800; /* Orange */
}
.nav-link.edit-profile:hover i {
    color: #F57C00; /* Darker orange */
}

/* Employees */
.nav-link.employees i {
    color: #03A9F4; /* Light Blue */
}
.nav-link.employees:hover i {
    color: #0288D1; /* Darker Blue */
}

/* Parties */
.nav-link.parties i {
    color: #9C27B0; /* Purple */
}
.nav-link.parties:hover i {
    color: #7B1FA2; /* Darker Purple */
}

/* Products */
.nav-link.products i {
    color: #FF5722; /* Deep Orange */
}
.nav-link.products:hover i {
    color: #E64A19; /* Darker Deep Orange */
}

/* Stock */
.nav-link.stock i {
    color: #8BC34A; /* Light Green */
}
.nav-link.stock:hover i {
    color: #689F38; /* Darker Light Green */
}

/* Bill */
.nav-link.bill i {
    color: #673AB7; /* Indigo */
}
.nav-link.bill:hover i {
    color: #512DA8; /* Darker Indigo */
}

/* Payments */
.nav-link.payments i {
    color: #FFC107; /* Amber */
}
.nav-link.payments:hover i {
    color: #FFA000; /* Darker Amber */
}

/* Expense */
.nav-link.expense i { 
    color: #4CAF50; /* Green */
}
.nav-link.expense:hover i {
    color: #388E3C; /* Darker Green */
}

/* Party Payments */
.nav-link.party-payments i {
    color: #FFC107; /* Amber */
}
.nav-link.party-payments:hover i {
    color: #FFA000; /* Darker Amber */
}


/* Delete */
.nav-link.delete i {
    color: #F44336; /* Red */
}
.nav-link.delete:hover i {
    color: #D32F2F; /* Darker Red */
}

/* Cashbook */
.nav-link.cashbook i {
    color: #2196F3; /* Blue */
}
.nav-link.cashbook:hover i {
    color: #1976D2; /* Darker Blue */
}

/* Stats */
.nav-link.stats i {
    color: #f8e21c; /* Yellow */
}
.nav-link.stats:hover i {
    color: #FBC02D; /* Darker Yellow */
}

/* Settings */
.nav-link.settings i {
    color: #9E9E9E; /* Grey */
}
.nav-link.settings:hover i {
    color: #757575; /* Darker Grey */
}

/* Logs */
.nav-link.logs i {
    color: #3F51B5; /* Indigo */
}
.nav-link.logs:hover i {
    color: #303F9F; /* Darker Indigo */
}

/* Logout */
.nav-link.logout i {
    color: #E91E63; /* Pink */
}
.nav-link.logout:hover i {
    color: #C2185B; /* Darker Pink */
}

.color-main {
    background-color: var(--main) !important;
}

.color-alternate {
    background-color: var(--alternate) !important;
}

.nav-item.active {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

.text-main {
    color: var(--main) !important;
}

.text-alternate {
    color: var(--alternate) !important;
}

.profile-divider {
    border-bottom: 2px solid #ccc;
    margin: 1rem 0;
}

.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
}

.form-control {
    font-size: small !important;
}

.form-select {
    font-size: small !important;
}

main {
    overflow-y: scroll;
}