body { background-color: #f8f9fa;padding: 0 !important;}
.signup-container { max-width: 400px; margin-top: 100px; }


.container{
    padding-inline: 20px;
}
.dashboard-header{
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    z-index: 99;
    position: sticky;
    top: 0;
}
.dashboard-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dashboard-header .header-content h1{
    margin-bottom: 0;
    font-size: 30px;
}
.dashboard-header .btn.btn-danger {
    padding: 7px 25px;
    font-size: 16px;
    font-weight: 500;
}
.badge {
    padding: 8px 10px;
    line-height: 1;
    font-size: 12px;
    font-weight: 500;
}
.title-wrap{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.title-wrap * {
    margin-bottom: 0;
}
.title-wrap .title{
    font-size: 26px;
    font-weight: 600;
}
.resident-cards-wrapper{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
    counter-reset: count-numbers;
}
.resident-cards-wrapper .resident-card {
    border-radius: 8px;
    transition: 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.175);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.resident-cards-wrapper .resident-card:hover{
  box-shadow: none;
}
.resident-btn{
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1;
    background-color: #198754;
    border-radius: 6px;
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}
.resident-btn:hover{
    background-color: #157347;
}
.sticky-resident-title{
    position: sticky;
    top: 81px;
    background-color: #f8f9fa;
    z-index: 10;
    padding: 12px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.sticky-resident-title .title-wrap{
    margin-bottom: 0;
}
body.modal-open{
    overflow: hidden;
}
.custom-modal{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.3s ease-in-out;
}
.open-modal.custom-modal{
    opacity: 1;
    visibility: visible;
    pointer-events: visible;
    z-index: 999;
}
.custom-modal .modal-card{
    width: 100%;
    max-width: 550px;
    background-color: #ffffff;
    border-radius: 10px;
    max-height: calc(100dvh - 30px);
    overflow: auto;
}
.custom-modal .modal-title-wrapper {
    padding: 20px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.175);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
}
.custom-modal .modal-title-wrapper .title{
    margin-bottom: 0;
    font-size: 24px;
}
.custom-modal .modal-content{
    padding: 20px;
}
.input-wrapper{
    margin-bottom: 20px;
}
.custom-modal .modal-content .btn-success{
    min-width: 160px;
}
.custom-modal .cross-icon{
    position: relative;
    width: 26px;
    height: 26px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.custom-modal .cross-icon::before ,
.custom-modal .cross-icon::after{
    content: "";
    width: 2px;
    height: 100%;
    background-color: #000;
    display: block;
    position: absolute;
    left: 50%;  
    top: 0;
    transition: 0.3s ease-in-out;
}
.custom-modal .cross-icon::before{
    transform: rotate(45deg);
    
    transform-origin: left;
}
.custom-modal .cross-icon::after{
    transform-origin: right;
    transform: rotate(-45deg);  
}
.custom-modal .cross-icon:hover::before,
.custom-modal .cross-icon:hover::after{
    background-color: #dc3545;
}

@media (max-width:991px) {
    h1{
        font-size: 22px;
    }
    h2{
        font-size: 20px;
    }
    h3{
        font-size: 20px;
    }
    .resident-cards-wrapper{
        grid-template-columns: repeat(1,1fr);
    }
     .dashboard-header {
        padding: 15px 0;
        min-height: 64px;
    }
    .dashboard-header .header-content h1 {
        font-size: 22px;
    }   
    .dashboard-header .btn.btn-danger {
        padding: 7px 20px;
        font-size: 14px;    
        line-height: 1.2;
    }
    .title-wrap .title {
        font-size: 20px;
    }
    .resident-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
    .sticky-resident-title {
        top: 64px;
        padding: 10px 0;
    }
    .custom-modal .modal-title-wrapper .title {
        font-size: 20px;
    }
    .custom-modal .modal-title-wrapper {
        padding: 15px;
    }
    .custom-modal .modal-content {
        padding: 15px 15px 20px;
    }
    .custom-modal .cross-icon {
        width: 20px;
        height: 20px;
    }
}

