body {
    padding: 0px;
    margin: 0px;
    background-color: #F8FAFC;
  font-family:  sans-serif;
}

.dashboard {
    z-index: 1;
}

/* Nav-bar */
.navbar {
    display: flex;
    justify-content: space-between;
    background-color: #2563EB;
    color: white;
    padding: 20px;
    align-items: center;
    position: sticky;
    top: 0px;
}

.navbar-title {
    font-weight: bold;
    font-size: xx-large;
}

.role {
    padding: 7px 20px;
}

/* body-content */
.body-content {
    margin: 20px;
}

/* Summary-cards */

.summary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: space-between;
    gap: 20px;

}

.summary-card {
    height: 60px;
    height: 100px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(11, 11, 11, 0.08);
    border-radius: 10px;
    background-color: white;
}
.summary-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.balance-value {
    font-size: xx-large;
}

.income-value,
.expenses-value {
    font-size: x-large;
}

.income-value {
    color: #16A34A;
}

.expenses-value {
    color: #DC2626;

}

.value {
    padding-top: 15px;

}

/* Charts */

.charts {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;


}

.chart {
    height: 250px;
    box-shadow: 0 4px 12px rgba(11, 11, 11, 0.08);
    border-radius: 10px;
    background-color: white;
    
}
.chart:hover {
     box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Category chart */
.category-heading,
.trend-heading {
    font-weight: bold;
    font-size: large;
}

.category-container {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-chart {
    padding: 20px;
}

.category-title {
    width: 45px;
}

.food-category,
.travel-category,
.shopping-category {
    display: flex;
    align-items: center;
}

.bar {
    margin-left: 30px;
    align-items: center;
    background-color: #2563EB;
    height: 25px;
}

/* Monthly trend */
.trend-info {
    display: flex;
    gap: 20px;
    /* margin-top: 20px;/ */
    padding: 10px;
    justify-content: center;
    height: 200px;
}

.trend-chart {
    padding: 20px;
}

.trendBar {
    width: 30px;

}

.trend {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    /* height: 200px; */
}


/* Insights */
.insights {
    height: 120px;
    box-shadow: 0 4px 12px rgba(11, 11, 11, 0.08);
    margin-top: 70px;
    padding: 20px;
    border-radius: 10px;
    background-color: white;
}

.no-insights{
    display: none;
}
.enable-No-insights .no-insights{
    display: initial;
    display: flex;
    justify-content: center;
    color: gray;
    height: 80px;
    align-items: center;
}
.insight-title {
    font-weight: bold;
    font-size: large;
}

.insight-info {
    margin-top: 20px;
}

/* Transactions */
.transactions {
    padding: 20px 40px;
    /* height: 300px; */
    margin-top: 70px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(11, 11, 11, 0.08);
    min-height: 200px;
}

.transactions-header {
    font-weight: bold;
    font-size: x-large;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.roleBased .addButton {
    display: initial;
}

.addButton {
    display: none;
    background-color: green;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
}

.addButton:hover {
    box-shadow: 0px 4px 7px gray;
    cursor: pointer;
}

.filters {
    display: flex;
    gap: 20px;
    margin: 20px 0px;
    align-items: center;
}

.dropdown {
    padding: 5px 10px;
}


/* Transaction Table */


.table-heading {
    font-weight: bold;
}

.transaction-table-heading {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.table-data {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    text-align: center;
    margin: 10px 0px;
}

/* Modal */

.overlay {
    display: none;
}

.toggle {
    display: initial;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;

}

.form-details {
    width: 450px;
    background-color: white;
    border-radius: 10px;


}

.form-heading {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

.form-fields {
    display: flex;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    align-items: center;
}

.form-field {
    display: flex;
    gap: 20px;
    text-align: center;
}

.form-input {
    width: 200px;
    height: 25px;
}

.form-title {
    width: 50px;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 10px 15px;
    border-radius: 10px;
    border: none;
    color: white;
}

.submit-button {
    background-color: green;
}

.cancel-button {
    background-color: rgb(84, 83, 83);
}

.btn:hover {
    box-shadow: 0px 4px 7px gray;
    cursor: pointer;
}

/* Responsive */

@media (max-width: 600px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .charts {
        grid-template-columns: 1fr;

    }

    .navbar-title {
        font-size: x-large;
        width: 150px;
    }
}