@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #FAFAFA;
}

label {
    margin-bottom: 10px;
    font-size: 18px;
}

input {
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #000000;
    background-color: #f1f1f1;
}

select {
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #000000;
    background-color: #f1f1f1;
}

button {
    padding: 10px;
    background-color: #76A33A;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s ease-in-out;
}

.font-bold {
    font-weight: 600 !important;
}

button:hover {
    background-color: #952735;
}

.text-red {
    color: #952735 !important;
}

.text-green {
    color: #76A33A !important;
}

.card {
    box-shadow: 3px 3px 4px #f1f1f1;
    width: 33%;
    display: inline-block;
    border: 1px solid #e8e8e8;
    padding: 15px;
    transition: .3s;
    margin-bottom: 5px;
}

.card h2 {
    margin-bottom: 10px;
}

.card p {
    font-size: 18px;
}

.card:hover {
    box-shadow: 3px 3px 14px #d1d0d0;
}

a {
    text-decoration: none;
    color: #76A33A;
    font-size: 18px;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #952735;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.form-check input {
    margin-bottom: 0;
    width: 15px;
    height: 15px;
}

.form-check input:active~label {
    background-color: rgb(248, 255, 227);
}

.form-check label:active {
    background-color: rgb(247, 255, 223);
}

.form-check label {
    margin-bottom: 0;
    user-select: none;
}


#parentContainer {
    display: flex;
}

#main {
    width: 100%;
}

.container {
    max-width: 1200px;
    padding: 10px;
    margin: 0 auto;
}

/* alerts  */

.alert {
    margin: 10px 0px;
    padding: 12px;
    border-radius: 5px;
    font-size: .9rem;
    font-weight: 300;
}

.alert:hover {
    cursor: pointer;
}

.alert:before {
    padding-right: 12px;
}

.alert:after {
    content: '\f00d';
    font-family: 'FontAwesome';
    float: right;
    padding: 3px;
}

.alert-info {
    color: #00529B;
    background-color: #BDE5F8;
    border: 1px solid darken(#BDE5F8, 15%);
}

.alert-info:before {
    content: '\f05a';
    font-family: 'FontAwesome';
}

.alert-warn {
    color: #9F6000;
    background-color: #FEEFB3;
    border: 1px solid darken(#FEEFB3, 15%);
}

.alert-warn:before {
    content: '\f071';
    font-family: 'FontAwesome';
}

.alert-error {
    color: #8a0209;
    background-color: #ffd7d7;
    border: 1px solid darken(#FFBABA, 15%);
}

.alert-error:before {
    content: '\f057';
    font-family: 'FontAwesome';
}

.alert-success {
    color: #4F8A10;
    background-color: #DFF2BF;
    border: 1px solid darken(#DFF2BF, 15%);
}

.alert-success:before {
    content: '\f058';
    font-family: 'FontAwesome';
}

/* footer  */
footer {
    background-color: #fafafa;
    box-shadow: 0 0 10px rgba(34, 34, 34, 0.105);
    padding: 10px;
}

footer p {
    text-align: center;
}

footer a {
    font-size: 16px;
}

/* =================== */
/* authentication css  */
/* =================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.form-container {
    width: 600px;
    margin: 0 auto;
    padding: 50px;
    background-color: #fafafa;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(34, 34, 34, 0.105);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 36px;
    color: #76A33A;
}

.auth-container form {
    display: flex;
    flex-direction: column;
}


.auth-container p {
    text-align: center;
    margin: 8px;
}




/* =================== */
/* sidebar  */
/* =================== */

#sidebar {
    max-width: 300px;
    width: 100%;
    min-height: 100vh;
    background-color: #76A33A;
}

#sidebar .logo {
    position: relative;
    width: 230px;
    margin-bottom: 20px;
}

#sidebar .logo img {
    width: 100%;
}

#sidebar nav {
    overflow: auto;
    height: 76vh;
}

#sidebar nav ul {
    margin: auto;
    list-style-type: none;
}

#sidebar nav ul li a {
    padding: 10px 20px;
    display: inline-block;
    width: 100%;
    color: #ffffffe2;
    transition: color .3s ease;
}

#sidebar nav ul li a:hover {
    color: #ffffff;
    background-color: #952735;
}

/* =================== */
/* topbar */
/* =================== */

#topbar {
    background-color: #FAFAFA;
    height: 80px;
    padding: 0 1rem;
    width: 100%;
    box-shadow: 0 0 10px rgba(34, 34, 34, 0.105);
}

#topbar nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#topbar nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 80px;
}

#topbar nav ul li a {
    padding: 5px;
    color: black;
    display: inline-block;
}

#menuIcon {
    display: none;
}

#closeContianer {
    position: absolute;
    top: 10px;
    right: -60px;
    display: none;
}

/* CSS for the close button */
.close-button {
    background-color: #c24152;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
}

/* Style the button on hover */
.close-button:hover {
    background-color: #a12b3b;
}

@media screen and (max-width: 900px) {
    #sidebar {
        position: fixed;
        left: -100%;
        transition: .3s ease;
    }

    footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    #menuIcon {
        display: block;
        cursor: pointer;
        padding: 10px;
    }

    #menuIcon div {
        width: 35px;
        height: 3px;
        background-color: black;
        margin: 6px 0;
    }

    #closeContianer {
        position: absolute;
        top: 10px;
        right: -60px;
        display: block;
    }

    .card {
        box-shadow: 3px 3px 4px #f1f1f1;
        width: 100%;
        display: inline-block;
        border: 1px solid #e8e8e8;
        padding: 15px;
        transition: .3s;
        margin-bottom: 5px;
    }

    #topbar nav ul li a {
        font-size: 14px;
    }
}