@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");

:root {
    --header-height: 3rem;
    --nav-width:68px;
    --first-color: #4723D9;
    --first-color-light: #AFA5D9;
    --white-color: #F7F6FB;
    --body-font: 'Nunito', sans-serif;
    --normal-font-size: 1rem;
    --z-fixed: 100
}

*,
::before,
::after {
    box-sizing: border-box
}

body {
    position: relative;
    margin: var(--header-height) 0 0 0;
    padding: 0 1rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: .5s
}

a {
    text-decoration: none
}

.header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 1rem;
    background-color: var(--white-color);
    z-index: var(--z-fixed);
    transition: .5s
}

 /* .header_toggle {
    color: var(--first-color);
    font-size: 1.5rem;
    cursor: pointer
}  */

 .header_toggle h4{
 text-align: right !important;
  
}  

.header_img {
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    align-items: center;
    overflow: hidden;
}

.header_img img {
    width: 40px
}

.l-navbar {
    position: fixed;
    top: 0;
    left: -40%;  
    width: var(--nav-width);
    height: 100vh;
    background-color: var(--first-color);
    padding: .5rem 1rem 0 0;
    transition: .5s;
    z-index: var(--z-fixed)
}

.nav {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    justify-content: space-between;
    overflow: scroll;
    list-style: none;
}

.nav_list{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.nav_list a{
    display: flex;
    flex-direction:row;
    justify-content: flex-start;
    padding: 5px 0px 5px 5px;
    margin-left: 10px;
    margin-right: 90px;
    text-decoration: none;
    color: #F7F6FB;
    font-size: 16px;
    text-align: left;
    
}

/* Target the scrollbar */
::-webkit-scrollbar {
    width: 2px; /* Set the width for vertical scrollbar */
    height: 5px; /* Set the height for horizontal scrollbar */
}


/* Style the scrollbar track */
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5); /* Background color of the track */
}

/* Style the scrollbar thumb */
::-webkit-scrollbar-thumb {
    background-color: transparent;
    transition: background-color 0.3s ease; /* Smooth transition */
    border-radius: 10px; /* Round edges of the scroll thumb */
    border: 2px solid #ffffff; /* Padding around the scroll thumb */
}

/* Optional: Style the scrollbar thumb on hover */
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Adjust the RGBA values as needed */
}

.dropdown-content{
    list-style: none;
    text-align: left;
    width: 100%;    
}


.dropdown-content li {
  width: 100%;
  list-style: none;

   
}

.dropdown-content li a{
    list-style: none;
    text-align: left;
    color: #ffffff;
    font-weight: 600;   
}


.nav_list .fas{
  
border: 1px solid transparent;
background-color: #9ff1f7;
width: 30px;
height: 30px;
border-radius: 50%;
margin-right: 10px;
padding: 5px;
    text-align: center;
    color: #000;
    

}


.nav_logo,
.nav_link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1.5rem
}

.nav_logo {
    margin-bottom: 2rem
}

.nav_logo-icon {
    font-size: 1.25rem;
    color: var(--white-color)
}

.nav_logo-name {
    color: var(--white-color);
    font-weight: 700
}

.nav_link {
    position: relative;
    color: var(--first-color-light);
    margin-bottom: 1.5rem;
    transition: .3s
}

.nav_link:hover {
    color: var(--white-color)
}

.nav_icon {
    font-size: 1.25rem
}

.show {
    left: 0
}

.body-pd {
    padding-left: calc(var(--nav-width) + 1rem)
}

.active {
    color: var(--white-color)
}

.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 32px;
    background-color: var(--white-color)
}

.height-100 {
    height: 100vh
}

@media screen and (min-width: 768px) {
    body {
        margin: calc(var(--header-height) + 1rem) 0 0 0;
        padding-left: calc(var(--nav-width) + 2rem)
    }

    .header {
        height: calc(var(--header-height) + 1rem);
        padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
    }

    .header_img {
        width: 40px;
        height: 40px
    }

    .header_img img {
        width: 45px
    }

    .l-navbar {
        left: 0;
        padding: 1rem 1rem 0 0
    }

    .show {
        width: calc(var(--nav-width) + 156px)
    }

    .body-pd {
        padding-left: calc(var(--nav-width) + 188px)
    }
}

/*-------------------------------------member list-------------------------------*/

/* Main Content Section */
#member-list {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#member-list h1, #member-list h2 {
    text-align: center;
    color: #ffffff;
    font-family: Arial, sans-serif;
    background-color: #4723D9;
    font-size: 30px;
    padding: 10px;

}

.member-form {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width:100%;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.form-group input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.member-form button {
    background-color: #4723D9;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.member-form button:hover {
    background-color: #4723D9;
}

/* Member List Table (same as before) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 16px;
}

table th {
    background-color: #4723D9;
    color: white;
    font-weight: bold;
}

table td {
    background-color: #fff;
    color: #333;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

table a {
    color: #4723D9;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

table button {
    padding: 6px 12px;
    background-color: #4723D9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

table button:hover {
    background-color: #0056b3;
}

/* Download Button */
form button[type="submit"] {
    width: fit-content;
    background-color: #4723D9;
    margin: 20px auto;
    color:#fff;
}

form button[type="submit"]:hover {
    background-color: #218838;
}

/*-----------------------------------attendance ----------------------*/
#meeting-attendance .card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full screen height */
    background-color: #f8f9fa; /* Optional background color */
}

#meeting-attendance .card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 300px; /* Adjust card width */
}

#meeting-attendance .card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

#meeting-attendance h3{
    background-color: #4723D9 !important;
    text-align: center;
    padding: 10px;
    color: #f2f2f2;
}

#meeting-attendance .card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

#meeting-attendance .card-link:hover {
    background-color: #0056b3;
}

/*------------------------------member attendance----------------*/
.meeting_attendance{
    width: 100%;

}
.meeting_attendance form {
    background-color: #e2dede;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
}

.meeting_attendance form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.meeting_attendance form input[type="text"],
form input[type="date"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.meeting_attendance form button {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.meeting_attendance form button:hover {
    background-color: #218838;
}

/* Meeting card styling */
.meeting-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meeting-card-container .card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin-bottom: 20px;
}

.meeting-card-container .card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
}

.meeting-card-container .card p {
    color: #555;
    margin-bottom: 10px;
}

.meeting-card-container .card a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.meeting-card-container .card a:hover {
    background-color: #0056b3;
}

.meeting-card-container .card form input[type="text"],
.card form input[type="date"] {
    margin-bottom: 10px;
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.meeting-card-container .card form button {
    background-color: #ffc107;
    color: #333;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.meeting-card-container .card form button:hover {
    background-color: #e0a800;
}

.meeting-card-container .card form a {
    color: red;
    display: inline-block;
    margin-top: 10px;
}

/* Table styling */
.meeting-card-container table {
    width: 100%;
    max-width: 800px;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.meeting-card-container table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.meeting-card-container table th {
    background-color: #007bff;
    color: white;
}

.meeting-card-container table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.meeting-card-container table input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.meeting-card-container table button {
    padding: 10px 15px;
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.meeting-card-container table button:hover {
    background-color: #138496;
}


/*-------------------------------------income-list-------------------------*/

/*------------------------------------login-----------------------------*/
/* Reset some default styles */


.login-container {

    position: relative; /* Positioning for centering */
    margin-top: 250px;

}

.login-container .admin-login{
    width: 600px; /* Set width */
    background-color: white; /* Background color for the form */
    padding: 30px; /* Padding for the form */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Shadow effect */
  
    position: absolute; /* Positioning for centering */
    top: 50%; /* Positioning from the top */
    left: 50%; /* Positioning from the left */
    transform: translate(-50%, -50%); /* Center the form */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.login-container h2 {
    text-align: center; /* Center the heading */
    margin-bottom: 20px; /* Space below the heading */
}

.login-container .error {
    color: red; /* Color for error messages */
    text-align: center; /* Center the error message */
    margin-bottom: 15px; /* Space below the error message */
}

.login-container label {
    display: block; /* Make labels block-level */
    margin-bottom: 5px; /* Space below labels */
    font-weight: bold; /* Bold font for labels */
}

.login-container input[type="text"],
input[type="password"] {
    width: 100%; /* Full width for inputs */
    padding: 10px; /* Padding for inputs */
    margin-bottom: 20px; /* Space below inputs */
    border: 1px solid #ccc; /* Border for inputs */
    border-radius: 4px; /* Rounded corners for inputs */
    font-size: 16px; /* Font size for inputs */
}

.login-container input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #007BFF; /* Change border color on focus */
    outline: none; /* Remove outline */
}

.login-container .btn {
    width: 100%; /* Full width for button */
    padding: 10px; /* Padding for button */
    background-color: #007BFF; /* Background color for button */
    color: white; /* Text color for button */
    border: none; /* Remove border */
    border-radius: 4px; /* Rounded corners for button */
    font-size: 16px; /* Font size for button */
    cursor: pointer; /* Pointer cursor for button */
}

.login-container .btn:hover {
    background-color: #0056b3; /* Darker background on hover */
}


/*-----------------------settings css----------------------------*/
/* General styles for the section */
#settings {
    padding: 10px; 

}

.income-member{
    
    display: flex;
    flex-direction:row; 
    justify-content:space-between;
    margin: 0 auto;
    flex-wrap: wrap;
    width: 100%;
}



.income-member .income_type{
  border: 2px solid rgb(3, 85, 44);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 40px;
}

.income-member .income_type h3{
    color: #035824;
    text-align: center;
    font-size: 18px;
}
  


/* Style each form */
#settings form {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column; /* Use flexbox to align items horizontally */
    align-items: center; /* Align items vertically centered */
    justify-content: center; /* Add space between label and button */
    width: 300px;

   
}


#settings input {
   /* Input takes up 2 parts of the available space */
    padding: 8px;
    font-size: 14px;
    width: 100%; /* Full width input for flexibility */
    margin-bottom: 20px;    

}

#settings button {
    margin-left: 20px;
    padding: 8px 12px;
    background-color: #007bff; /* Customize the button color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#settings button:hover {
    background-color: #0056b3; /* Darken button on hover */
}

/* Responsive adjustment */
@media (max-width: 768px) {
    #settings form {
        flex-direction: column; 
        width: 100%;
    }

    #settings label,
    #settings input,
    #settings button {
        margin: 10px 0; /* Add margin around form elements for spacing */
    }
}

    #income .filter-year{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 20px;
        align-items: center;
    }
  
    #income .filter-start-end{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 20px;
        align-items: center;

    }

    #income .member-payment{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 20px;
        margin-bottom: 10px;

    }

    #income .income-form{
        border: 1px solid black;
        padding: 15px;
    }

    #income button{
        color: #ffff;
        padding: 10px;
    }

    #income .label-income-member{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 20px;
        margin-bottom: 10px;
        align-items: center;
    }



   #income .label-balance-receive{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 10px;
   }

   #income .label-payment-paid{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
    margin-bottom: 10px;
    align-items: center;
   }

  