/* ===========================
   GOOGLE FONT
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#eef3ff;
    color:#222;
    min-height:100vh;
}

/* ===========================
   VARIABLES
=========================== */

:root{

--primary:#4F46E5;
--secondary:#6D28D9;
--success:#10B981;
--danger:#EF4444;
--warning:#F59E0B;

--dark:#1E293B;
--white:#ffffff;
--light:#F8FAFC;

--shadow:0 10px 30px rgba(0,0,0,.08);

--radius:16px;

}

/* ===========================
SCROLLBAR
=========================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#ddd;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,#4F46E5,#7C3AED);
    border-radius:20px;
}

/* ===========================
LOGIN BACKGROUND
=========================== */

.login-page{

    display:flex;
    justify-content:center;
    align-items:center;

    min-height:100vh;

    background-image:url("https://images.unsplash.com/photo-1560448204-e02f11c3d0e");
    background-size:cover;
    background-position:center;
}

/* Dark Overlay */

.login-page::before{

content:"";

position:absolute;

top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,.45);

}

/* ===========================
LOGIN CARD
=========================== */

.login-box{

position:relative;

width:400px;

background:rgba(255,255,255,.15);

backdrop-filter:blur(18px);

padding:45px;

border-radius:20px;

box-shadow:0 15px 40px rgba(0,0,0,.25);

color:white;

z-index:10;

animation:fadeIn 1s ease;

}

.login-box h1{

text-align:center;

font-size:34px;

margin-bottom:15px;

font-weight:700;

}

.login-box p{

text-align:center;

margin-bottom:30px;

}

/* ===========================
FORM
=========================== */

.input-group{

margin-bottom:20px;

}

.input-group label{

display:block;

margin-bottom:8px;

font-weight:600;

}

.input-group input{

width:100%;

padding:15px;

border:none;

outline:none;

border-radius:10px;

background:white;

font-size:15px;

transition:.3s;

}

.input-group input:focus{

box-shadow:0 0 0 3px rgba(79,70,229,.35);

transform:scale(1.02);

}

/* LOGIN BUTTON */

.btn{

width:100%;

padding:15px;

border:none;

border-radius:10px;

cursor:pointer;

background:linear-gradient(135deg,#4F46E5,#7C3AED);

color:white;

font-size:17px;

font-weight:600;

transition:.35s;

}

.btn:hover{

transform:translateY(-3px);

box-shadow:0 15px 25px rgba(79,70,229,.35);

}
/* ===========================
   DASHBOARD LAYOUT
=========================== */

.wrapper{
    display:flex;
    min-height:100vh;
}

/* ===========================
   SIDEBAR
=========================== */

.sidebar{
    width:260px;
    background:linear-gradient(180deg,#4F46E5,#312E81);
    color:#fff;
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    padding:25px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);

    overflow-y:auto;
    overflow-x:hidden;
}

.sidebar h2{
    text-align:center;
    margin-bottom:35px;
    font-size:28px;
    font-weight:700;
}

.sidebar ul{
    list-style:none;
    padding:0;
    margin:0;
}

.sidebar ul li{
    margin:18px 0;
}

.sidebar ul li a{
    text-decoration:none;
    color:#fff;
    display:block;
    padding:14px 18px;
    border-radius:12px;
    transition:.3s;
    font-weight:500;
}

.sidebar ul li a:hover{
    background:rgba(255,255,255,.18);
    padding-left:28px;
}

.sidebar ul li a.active{
    background:#fff;
    color:#4F46E5;
    font-weight:600;
}

/* Sidebar scrollbar */

.sidebar::-webkit-scrollbar{
    width:6px;
}

.sidebar::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.35);
    border-radius:10px;
}

.sidebar::-webkit-scrollbar-track{
    background:transparent;
}

/* ===========================
   MAIN CONTENT
=========================== */

.main-content{
    margin-left:260px;
    width:calc(100% - 260px);
    padding:35px;
}

/* ===========================
   NAVBAR
=========================== */

.navbar{
    background:#fff;
    padding:18px 25px;
    border-radius:16px;
    box-shadow:var(--shadow);
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.navbar h1{
    font-size:28px;
    color:var(--dark);
}

.profile{
    display:flex;
    align-items:center;
    gap:12px;
}

.profile img{
    width:48px;
    height:48px;
    border-radius:50%;
    border:3px solid #4F46E5;
}

.profile span{
    font-weight:600;
}

/* ===========================
   DASHBOARD CARDS
=========================== */

.card-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:25px;
    margin-bottom:35px;
}

.card{
    background:#fff;
    border-radius:18px;
    padding:25px;
    box-shadow:var(--shadow);
    transition:.35s;
    position:relative;
    overflow:hidden;
}

.card:hover{
    transform:translateY(-8px);
}

.card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:6px;
    height:100%;
    background:linear-gradient(#4F46E5,#7C3AED);
}

.card h3{
    font-size:17px;
    color:#666;
}

.card h2{
    margin-top:12px;
    font-size:34px;
    color:#222;
}

.card p{
    margin-top:8px;
    color:#777;
}

/* Different Card Colors */

.card.rooms{
    border-top:5px solid #4F46E5;
}

.card.tenants{
    border-top:5px solid #10B981;
}

.card.payments{
    border-top:5px solid #F59E0B;
}

.card.complaints{
    border-top:5px solid #EF4444;
}

/* ===========================
   TABLE
=========================== */

.table-container{
    background:#fff;
    padding:25px;
    border-radius:18px;
    box-shadow:var(--shadow);
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
}

table thead{
    background:#4F46E5;
    color:#fff;
}

table th{
    padding:16px;
    text-align:left;
}

table td{
    padding:15px;
    border-bottom:1px solid #eee;
}

table tbody tr:hover{
    background:#F8FAFC;
}

/* ===========================
   BUTTONS
=========================== */

.btn-primary{
    background:#4F46E5;
    color:#fff;
    padding:12px 20px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
}

.btn-primary:hover{
    background:#312E81;
}

.btn-success{
    background:#10B981;
    color:#fff;
    padding:12px 20px;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

.btn-success:hover{
    background:#059669;
}

.btn-danger{
    background:#EF4444;
    color:#fff;
    padding:12px 20px;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

.btn-danger:hover{
    background:#DC2626;
}

/* ===========================
   FORM DESIGN
=========================== */

.form-box{
    background:#fff;
    padding:30px;
    border-radius:18px;
    box-shadow:var(--shadow);
}

.form-box input,
.form-box select,
.form-box textarea{
    width:100%;
    padding:14px;
    margin-top:12px;
    margin-bottom:20px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
    transition:.3s;
}

.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus{
    border-color:#4F46E5;
    box-shadow:0 0 10px rgba(79,70,229,.2);
}

/* ===========================
   SEARCH BAR
=========================== */

.search-box{
    display:flex;
    margin-bottom:20px;
}

.search-box input{
    flex:1;
    padding:14px;
    border:1px solid #ddd;
    border-radius:10px 0 0 10px;
}

.search-box button{
    width:70px;
    border:none;
    background:#4F46E5;
    color:#fff;
    border-radius:0 10px 10px 0;
    cursor:pointer;
}

.search-box button:hover{
    background:#312E81;
}
/* ===========================
   STATUS BADGES
=========================== */

.badge{
    display:inline-block;
    padding:6px 14px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
}

.badge-success{
    background:#D1FAE5;
    color:#065F46;
}

.badge-danger{
    background:#FEE2E2;
    color:#991B1B;
}

.badge-warning{
    background:#FEF3C7;
    color:#92400E;
}

.badge-primary{
    background:#E0E7FF;
    color:#3730A3;
}

/* ===========================
   ALERT BOXES
=========================== */

.alert{
    padding:15px 20px;
    border-radius:10px;
    margin-bottom:20px;
    font-weight:500;
}

.alert-success{
    background:#D1FAE5;
    color:#065F46;
}

.alert-danger{
    background:#FEE2E2;
    color:#991B1B;
}

.alert-warning{
    background:#FEF3C7;
    color:#92400E;
}

/* ===========================
   MODAL
=========================== */

.modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.6);
    justify-content:center;
    align-items:center;
    z-index:999;
}

.modal-content{
    width:500px;
    background:#fff;
    border-radius:18px;
    padding:30px;
    animation:zoomIn .4s;
}

.close{
    float:right;
    cursor:pointer;
    font-size:28px;
    font-weight:bold;
}

/* ===========================
   LOADER
=========================== */

.loader{
    width:60px;
    height:60px;
    border:6px solid #ddd;
    border-top:6px solid #4F46E5;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin:auto;
}

/* ===========================
   FOOTER
=========================== */

.footer{
    margin-top:40px;
    background:#fff;
    text-align:center;
    padding:20px;
    border-radius:16px;
    box-shadow:var(--shadow);
    color:#666;
}

/* ===========================
   ANIMATIONS
=========================== */

@keyframes fadeIn{

0%{
opacity:0;
transform:translateY(30px);
}

100%{
opacity:1;
transform:translateY(0);
}

}

@keyframes zoomIn{

0%{
transform:scale(.7);
opacity:0;
}

100%{
transform:scale(1);
opacity:1;
}

}

@keyframes spin{

0%{
transform:rotate(0deg);
}

100%{
transform:rotate(360deg);
}

}

@keyframes float{

0%{
transform:translateY(0);
}

50%{
transform:translateY(-8px);
}

100%{
transform:translateY(0);
}

}

/* ===========================
   HOVER EFFECTS
=========================== */

.card:hover{
    animation:float .8s ease;
}

button:hover{
    transform:translateY(-2px);
}

input:hover,
textarea:hover,
select:hover{
    border-color:#4F46E5;
}

/* ===========================
   UTILITIES
=========================== */

.text-center{
    text-align:center;
}

.mt-1{
    margin-top:10px;
}

.mt-2{
    margin-top:20px;
}

.mt-3{
    margin-top:30px;
}

.mb-1{
    margin-bottom:10px;
}

.mb-2{
    margin-bottom:20px;
}

.mb-3{
    margin-bottom:30px;
}

.p-1{
    padding:10px;
}

.p-2{
    padding:20px;
}

.p-3{
    padding:30px;
}

.rounded{
    border-radius:16px;
}

.shadow{
    box-shadow:var(--shadow);
}

/* ===========================
   IMAGE STYLING
=========================== */

img{
    max-width:100%;
    display:block;
}

.avatar{
    width:70px;
    height:70px;
    border-radius:50%;
    border:4px solid white;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
}

.hero-image{
    width:100%;
    height:280px;
    object-fit:cover;
    border-radius:20px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:992px){

.sidebar{
    width:90px;
}

.sidebar h2{
    display:none;
}

.sidebar ul li a{
    text-align:center;
    padding:14px;
}

.main-content{
    margin-left:90px;
    width:calc(100% - 90px);
}

}

@media(max-width:768px){

.navbar{
    flex-direction:column;
    gap:15px;
}

.card-container{
    grid-template-columns:1fr;
}

.main-content{
    padding:20px;
}

.table-container{
    overflow-x:auto;
}

.login-box{
    width:90%;
    padding:30px;
}

}

@media(max-width:500px){

.sidebar{
    display:none;
}

.main-content{
    margin-left:0;
    width:100%;
}

.navbar h1{
    font-size:22px;
}

.card h2{
    font-size:26px;
}

.btn,
.btn-primary,
.btn-success,
.btn-danger{
    width:100%;
}

}

/* ===========================
   EXPENSE PAGE
=========================== */

.expense-summary{
    margin-bottom:25px;
}

.expense-summary-card{
    background:#fff;
    border-radius:18px;
    padding:25px;
    box-shadow:var(--shadow);
    display:flex;
    align-items:center;
    gap:20px;
    border-top:5px solid #EF4444;
    transition:.35s;
}

.expense-summary-card:hover{
    transform:translateY(-5px);
}

.expense-icon{
    width:60px;
    height:60px;
    border-radius:15px;
    background:#FEE2E2;
    color:#EF4444;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:25px;
}

.expense-summary-card p{
    color:#777;
    font-size:14px;
    margin:0;
}

.expense-summary-card h2{
    font-size:30px;
    margin:3px 0;
    color:#222;
}

.expense-summary-card span{
    color:#999;
    font-size:13px;
}


/* ===========================
   EXPENSE FORM
=========================== */

.expense-form-container{
    background:#fff;
    padding:28px;
    border-radius:18px;
    box-shadow:var(--shadow);
    margin-bottom:30px;
}

.expense-section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
}

.expense-section-header h2{
    color:var(--dark);
    font-size:21px;
}

.expense-section-header h2 i{
    color:#4F46E5;
    margin-right:8px;
}

.expense-section-header p{
    color:#777;
    margin-top:5px;
    font-size:14px;
}

.expense-header-icon{
    width:50px;
    height:50px;
    border-radius:14px;
    background:#E0E7FF;
    color:#4F46E5;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
}

.expense-form{
    margin-top:25px;
}

.expense-form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:22px;
}

.expense-field label{
    display:block;
    font-weight:600;
    color:#374151;
    margin-bottom:8px;
}

.expense-field label i{
    color:#4F46E5;
    margin-right:6px;
}

.expense-field input,
.expense-field select{
    width:100%;
    padding:14px 15px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
    background:#fff;
    font-size:14px;
    transition:.3s;
}

.expense-field input:focus,
.expense-field select:focus{
    border-color:#4F46E5;
    box-shadow:0 0 10px rgba(79,70,229,.15);
}

.expense-input-wrapper{
    display:flex;
    align-items:center;
    border:1px solid #ddd;
    border-radius:10px;
    overflow:hidden;
    transition:.3s;
}

.expense-input-wrapper:focus-within{
    border-color:#4F46E5;
    box-shadow:0 0 10px rgba(79,70,229,.15);
}

.expense-input-wrapper span{
    padding-left:15px;
    font-weight:600;
    color:#4F46E5;
}

.expense-input-wrapper input{
    border:none;
    box-shadow:none;
}

.expense-input-wrapper input:focus{
    box-shadow:none;
}

.expense-form-footer{
    margin-top:25px;
    padding-top:20px;
    border-top:1px solid #eee;
    display:flex;
    justify-content:flex-end;
}

.expense-submit{
    min-width:170px;
}


/* ===========================
   EXPENSE HISTORY
=========================== */

.expense-history{
    margin-bottom:30px;
}

.expense-count{
    background:#E0E7FF;
    color:#3730A3;
    padding:7px 14px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    white-space:nowrap;
}

.expense-category{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:6px 12px;
    background:#F1F5F9;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
    color:#475569;
}

.expense-category i{
    color:#4F46E5;
}

.expense-amount{
    color:#EF4444;
    white-space:nowrap;
}

.expense-empty{
    color:#999;
    font-style:italic;
    font-size:13px;
}

.expense-empty-state{
    text-align:center;
    padding:55px 20px;
}

.expense-empty-icon{
    width:70px;
    height:70px;
    margin:0 auto 18px;
    border-radius:50%;
    background:#EEF2FF;
    color:#4F46E5;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
}

.expense-empty-state h3{
    color:#334155;
    margin-bottom:6px;
}

.expense-empty-state p{
    color:#888;
    font-size:14px;
}


/* ===========================
   EXPENSE RESPONSIVE
=========================== */

@media(max-width:768px){

    .expense-form-grid{
        grid-template-columns:1fr;
    }

    .expense-section-header{
        align-items:flex-start;
    }

    .expense-header-icon{
        display:none;
    }

    .expense-form-footer{
        justify-content:stretch;
    }

    .expense-submit{
        width:100%;
    }

}

@media(max-width:500px){

    .expense-form-container{
        padding:20px;
    }

    .expense-summary-card{
        padding:20px;
    }

    .expense-summary-card h2{
        font-size:25px;
    }

    .expense-summary{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
    margin-bottom:25px;
}

.income-card{
    border-top:5px solid #10B981;
}

.income-icon{
    background:#D1FAE5;
    color:#10B981;
}

.net-card{
    border-top:5px solid #4F46E5;
}

.net-icon{
    background:#E0E7FF;
    color:#4F46E5;
}

@media(max-width:900px){

    .expense-summary{
        grid-template-columns:1fr;
    }

}

}

/* ===========================
   EXPENSE FILTER
=========================== */

.expense-filter-box{
    background:#F8FAFC;
    border:1px solid #E2E8F0;
    padding:20px;
    border-radius:14px;
    margin-bottom:20px;
}

.expense-filter-form{
    display:flex;
    align-items:flex-end;
    gap:15px;
    flex-wrap:wrap;
}

.expense-filter-form > div{
    flex:1;
    min-width:200px;
}

.expense-filter-form label{
    display:block;
    font-size:13px;
    font-weight:600;
    color:#475569;
    margin-bottom:7px;
}

.expense-filter-form label i{
    color:#4F46E5;
    margin-right:5px;
}

.expense-filter-form input,
.expense-filter-form select{
    width:100%;
    padding:12px;
    border:1px solid #D1D5DB;
    border-radius:10px;
    background:#fff;
    outline:none;
}

.expense-filter-form input:focus,
.expense-filter-form select:focus{
    border-color:#4F46E5;
    box-shadow:0 0 8px rgba(79,70,229,.15);
}

.expense-clear-btn{
    padding:12px 18px;
    border-radius:10px;
    background:#E2E8F0;
    color:#334155;
    text-decoration:none;
    font-weight:500;
    white-space:nowrap;
}

.expense-clear-btn:hover{
    background:#CBD5E1;
}

@media(max-width:768px){

    .expense-filter-form{
        flex-direction:column;
        align-items:stretch;
    }

    .expense-filter-form > div{
        min-width:100%;
    }

    .expense-filter-form button,
    .expense-clear-btn{
        width:100%;
        text-align:center;
    }

}

/* =================================================
   MOBILE SIDEBAR
   ================================================= */

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {

    /* Sidebar hidden outside screen */
    .sidebar {
        width: 220px;
        position: fixed;
        left: -220px;
        top: 0;
        height: 100vh;
        z-index: 9999;
        transition: left 0.3s ease, width 0.3s ease;
    }

    /* Open sidebar */
    .sidebar.active {
        left: 0;
    }

    /* Main content on phone */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }

    /* Hamburger button */
    .menu-toggle {
        display: flex;

        position: fixed;
        top: 15px;
        left: 15px;

        width: 42px;
        height: 42px;

        align-items: center;
        justify-content: center;

        border: none;
        border-radius: 10px;

        background: #4F46E5;
        color: #fff;

        cursor: pointer;
        font-size: 22px;

        z-index: 10001;
    }

    .menu-toggle:hover {
        background: #312E81;
    }

    /* =================================================
       COLLAPSED SIDEBAR
       ================================================= */

    .sidebar.collapsed {
        left: 0;
        width: 70px !important;
    }

    .sidebar.collapsed h2 {
        font-size: 0;
        text-align: center;
        margin-bottom: 35px;
    }

    .sidebar.collapsed h2 i {
        font-size: 22px;
    }

    .sidebar.collapsed li a {
        font-size: 0;
        text-align: center;
        padding: 14px;
    }

    .sidebar.collapsed li a i {
        font-size: 20px;
        margin: 0;
    }

}

/* =================================================
   SYSTEM OWNER DESKTOP FIX
   ================================================= */

@media (min-width: 769px) {

    .sidebar {
        width: 260px;
        left: 0;
    }

    .sidebar h2 {
        display: block;
        font-size: 28px;
        text-align: center;
    }

    .sidebar h2 i {
        font-size: inherit;
    }

    .sidebar h2 span {
        display: inline;
    }

    .menu-toggle {
        display: none !important;
    }

}

/* ===========================
   END OF FILE
=========================== */