*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
}

/* sa login page nga design  */

/*  ga create og blue gradient color   */
body{

    min-height:100vh;

    margin:0;
    padding:0;

    overflow-x:hidden;

    background:
    radial-gradient(circle at top left, #1e5eff 0%, transparent 25%),
    radial-gradient(circle at bottom right, #1a4de8 0%, transparent 25%),
    linear-gradient(135deg, #021b79, #001449);

}

/*  center ang login card   */
.login-container{

    width:100%;
    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:20px;

}

/*  ga create og glassmorphism effect muragtranslucent glass  */
.login-card{
    width:420px;
    padding:40px;
    border-radius:20px;

    background:rgba(255,255,255,0.08);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,0.2);

    box-shadow:
    0 8px 32px rgba(0,0,0,0.3);
}

.logo{
    width:100px;
    height:100px;
    border-radius:50%;
    object-fit:cover;

    border:4px solid rgba(255,255,255,0.3);

    padding:5px;
    background:white;

    margin-bottom:20px;

    box-shadow:0 4px 15px rgba(0,0,0,0.3);
}

.title{
    color:#fff;
    text-align:center;
    font-size:38px;
    font-weight:700;
    line-height:1.2;
}

.subtitle{
    color:#d8d8d8;
    text-align:center;
    margin-top:10px;
    margin-bottom:30px;
}

.input-group-text{
    background:transparent;
    border:1px solid rgba(255,255,255,0.2);
    color:#fff;
}

.form-control{
    background:transparent;
    border:1px solid rgba(255,255,255,0.2);
    color:#fff;
    height:50px;
}

.form-control::placeholder{
    color:#ccc;
}

.form-control:focus{
    background:transparent;
    color:#fff;
    box-shadow:none;
    border-color:#4d8dff;
}

/* make the eye icon clickable  */
.toggle-password{
    cursor:pointer;
}


/*  ga create og blue gradient button  */
.login-btn{
    width:100%;
    height:50px;
    border:none;
    border-radius:12px;

    background:linear-gradient(to right, #2f80ed, #0052ff);

    color:#fff;
    font-weight:600;
    font-size:16px;

    transition:0.3s;
}

.login-btn:hover{
    transform:translateY(-2px);
    opacity:0.9;
}

.footer-text{
    margin-top:25px;
    text-align:center;
    color:#ccc;
    font-size:14px;
}

.back-arrow{
    color:#0d1ea8;
    text-decoration:none;
    font-size:28px;
    display:flex;
    align-items:center;
}

.back-arrow:hover{
    color:#09157c;
}

/* DASHBOARD TABLE */

.dashboard-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    margin-top:25px;
    overflow:hidden;
    border-radius:15px;
}

/* HEADER */

.dashboard-table thead{
    background:#1e40af;
    color:#fff;
}

.dashboard-table th{
    padding:18px 20px;
    text-align:left;
    font-size:15px;
    font-weight:600;
    white-space:nowrap;
}

/* BODY */

.dashboard-table td{
    padding:18px 20px;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    vertical-align:middle;
}

/* ROW HOVER */

.dashboard-table tbody tr:hover td{
    background:#f9fafb;
}

/* RESPONSIVE TEXT */

.dashboard-table td,
.dashboard-table th{
    word-break:break-word;
}

/* FIRST + LAST */

.dashboard-table tbody tr:last-child td{
    border-bottom:none;
}

/* STATUS */

.status{
    padding:7px 14px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
}

.pending{
    background:#fef3c7;
    color:#d97706;
}

.approved{
    background:#dbeafe;
    color:#2563eb;
}

.released{
    background:#dcfce7;
    color:#15803d;
}

.rejected{
    background:#fee2e2;
    color:#dc2626;
}
.request-container{
    background:#fff;
    padding:30px;
    border-radius:20px;
    margin-top:25px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
    overflow-x:auto;
}

.request-container h3{
    font-size:38px;
    color:#0d1ea8;
    margin-bottom:25px;
}

.account-btn{
    background:#7c3aed;
}

/* ========================================
   PROFILE PAGE
======================================== */

.profile-header{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:30px;
}

.profile-avatar{
    width:90px;
    height:90px;
    border-radius:50%;
    background:#2563eb;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:36px;
    font-weight:700;
}

.profile-info h2{
    margin-bottom:5px;
    color:#1e3a8a;
}

.profile-info p{
    color:#6b7280;
    margin:0;
}

/* ========================================
   FORM GRID
======================================== */

.form-grid{
    display:grid;
    grid-template-columns:repeat(
        auto-fit,
        minmax(300px,1fr)
    );
    gap:20px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    font-size:14px;
    font-weight:600;
    margin-bottom:8px;
    color:#374151;
}

.form-group input{
    width:100%;
    padding:14px;
    border:1px solid #d1d5db;
    border-radius:12px;
    background:#f9fafb;
    font-size:15px;
    outline:none;
}

.form-group input:focus{
    border-color:#2563eb;
}

/* =========================================
   RESIDENT PROFILE PAGE
========================================= */

.resident-profile-wrapper{
    max-width:1100px;
    margin:auto;
}

.resident-profile-card{
    width:100%;

    max-width:1400px;

    margin:0px auto;

    background:#ffffff;

    border-radius:30px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}
.resident-profile-cover{
    height:220px;

    background:
    linear-gradient(
        135deg,
        #0f172a,
        #1d4ed8,
        #2563eb
    );

    position:relative;
}

.resident-profile-avatar{
    width:150px;
    height:150px;
    border-radius:50%;

    background:#ffffff;

    position:absolute;
    bottom:-75px;
    left:50px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:60px;
    font-weight:700;

    color:#2563eb;

    border:6px solid #ffffff;

    box-shadow:0 5px 20px rgba(0,0,0,0.15);
}

.resident-profile-content{
    padding:120px 50px 50px;

    width:100%;
}

.resident-profile-name{
    margin-bottom:40px;
}

.resident-profile-name h2{
    font-size:38px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:8px;
}

.resident-profile-name p{
    color:#64748b;
    font-size:16px;
}

.resident-profile-grid{
    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:25px;

    margin-top:35px;
}
@media(max-width:1100px){

    .resident-profile-grid{

        grid-template-columns:
        repeat(2,1fr);

    }

}

@media(max-width:700px){

    .resident-profile-grid{

        grid-template-columns:1fr;

    }

}

.resident-profile-box{
    background:#f8fafc;

    border:1px solid #e2e8f0;

    border-radius:18px;

    padding:22px;
}

.resident-profile-box label{
    display:block;

    font-size:13px;

    font-weight:700;

    color:#64748b;

    margin-bottom:10px;

    text-transform:uppercase;

    letter-spacing:1px;
}

.resident-profile-box p{
    font-size:18px;
    font-weight:600;
    color:#0f172a;
    margin:0;
}

.resident-profile-buttons{
    margin-top:40px;
    display:flex;
    gap:15px;
}

.resident-btn-primary{
    background:#2563eb;
    color:#ffffff;
    padding:14px 24px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
}

.resident-btn-primary:hover{
    background:#1d4ed8;
    color:#ffffff;
}

.resident-btn-outline{
    border:2px solid #2563eb;
    color:#2563eb;
    padding:14px 24px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
}

.resident-btn-outline:hover{
    background:#eff6ff;
}

/* =========================================
   FIX PROFILE PAGE WIDTH + SCROLL
========================================= */



.main-content{
    width:100%;
    padding:30px;
}

.content-container{
    width:100%;
}

.resident-profile-wrapper{
    width:100%;
    max-width:1500px;
    margin:auto;
}

.resident-profile-card{
    width:100%;
    max-width:none;
}

/* FIX PROFILE TOPBAR OVERLAP */

.main-content{
    display:flex;
    flex-direction:column;
}

.topbar{
    position:relative;
    z-index:10;
}

.content-container{
    margin-top:20px;
}

.resident-profile-wrapper{
    margin-top:0;
}

.resident-profile-card{
    margin-top:0;
}
/* FIX CUT TOP SECTION */

.main-content{
    padding-top:30px !important;
}

.topbar{
    margin-bottom:30px;
}

.content-container{
    padding-top:0 !important;
}

/* FIX RESIDENT PROFILE PAGE */

body:has(.resident-profile-wrapper){
    display:block !important;
    align-items:unset !important;
    justify-content:unset !important;
    height:auto !important;
    overflow-y:auto !important;
}

body:has(.resident-profile-wrapper) .main-content{
    padding-top:30px !important;
}

body:has(.resident-profile-wrapper) .content-container{
    margin-top:20px !important;
}

/* CENTER RESIDENT PROFILE */

body:has(.resident-profile-wrapper) .main-content{
    width:calc(100% - 240px);
    margin-left:240px;
    padding:30px 40px;
}

body:has(.resident-profile-wrapper) .resident-profile-wrapper{
    display:flex;
    justify-content:center;
    width:100%;
}

body:has(.resident-profile-wrapper) .resident-profile-card{
    max-width:1250px;
}

/* =========================================
   RESIDENT FORM PAGES
========================================= */

body:has(.resident-form-wrapper){
    display:block !important;
    height:auto !important;
    overflow-y:auto !important;
    align-items:unset !important;
    justify-content:unset !important;
}

body:has(.resident-form-wrapper) .main-content{
    width:calc(100% - 240px);
    margin-left:240px;
    padding:30px 40px;
}

.resident-form-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
}

.resident-form-card{
    width:100%;
    max-width:1200px;

    background:#ffffff;

    border-radius:28px;

    overflow:hidden;

    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.resident-form-header{
    padding:45px 50px;

    background:
    linear-gradient(
        135deg,
        #0f172a,
        #1d4ed8,
        #2563eb
    );

    color:#ffffff;
}

.resident-form-header h1{
    font-size:42px;
    font-weight:700;
    margin-bottom:10px;
}

.resident-form-header p{
    font-size:16px;
    opacity:0.9;
}

.resident-form-body{
    padding:45px 50px;
}

.resident-form-grid{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:25px;
}

.resident-form-group{
    display:flex;
    flex-direction:column;
}

.resident-form-group label{
    font-size:14px;
    font-weight:700;

    color:#475569;

    margin-bottom:10px;
}

.resident-form-group input,
.resident-form-group select{
    width:100%;

    height:55px;

    padding:0 18px;

    border:1px solid #dbe2ea;

    border-radius:14px;

    background:#f8fafc;

    font-size:15px;

    color:#0f172a;

    outline:none;

    transition:0.3s;
}

.resident-form-group input:focus,
.resident-form-group select:focus{
    border-color:#2563eb;
    background:#ffffff;
}

.resident-form-buttons{
    margin-top:40px;

    display:flex;
    gap:15px;
}

.resident-save-btn{
    background:#2563eb;
    color:#ffffff;

    border:none;

    padding:15px 28px;

    border-radius:14px;

    font-weight:600;

    text-decoration:none;

    transition:0.3s;
}

.resident-save-btn:hover{
    background:#1d4ed8;
    color:#ffffff;
}

.resident-cancel-btn{
    border:2px solid #2563eb;

    color:#2563eb;

    padding:13px 28px;

    border-radius:14px;

    font-weight:600;

    text-decoration:none;

    transition:0.3s;
}

.resident-cancel-btn:hover{
    background:#eff6ff;
}

/* MOBILE */

@media(max-width:768px){

    body:has(.resident-form-wrapper) .main-content{
        width:100%;
        margin-left:0;
        padding:20px;
    }

    .resident-form-header{
        padding:35px 25px;
    }

    .resident-form-body{
        padding:35px 25px;
    }

}

/* =========================================
   IMPORT RESIDENTS PAGE
========================================= */

.page-title{
    font-size:42px;
    font-weight:700;
    color:#0d1ea8;
    margin-bottom:8px;
}

.page-subtitle{
    font-size:15px;
    color:#6b7280;
}

.import-header{
    margin-bottom:25px;
}

.import-header h2{
    font-size:34px;
    font-weight:700;
    color:#0d1ea8;
    margin-bottom:10px;
}

.import-header p{
    font-size:15px;
    color:#6b7280;
}

.table-container{
    background:#ffffff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.form-control{
    width:100%;
    height:55px;
    padding:12px 18px;

    border:1px solid #d1d5db;
    border-radius:14px;

    background:#f9fafb;
    color:#111827;

    font-size:15px;
}

.form-control:focus{
    border-color:#2563eb;
    background:#ffffff;
    box-shadow:0 0 0 4px rgba(37,99,235,0.1);
}

.button-group{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:15px;

    margin-top:30px;
}

.cancel-btn{
    width:120px;
    height:52px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid #d1d5db;
    border-radius:14px;

    background:#ffffff;
    color:#374151;

    text-decoration:none;
    font-weight:600;

    transition:0.3s;
}

.cancel-btn:hover{
    background:#f3f4f6;
}

.save-btn{
    min-width:190px;
    height:52px;

    border:none;
    border-radius:14px;

    background:#0d1ea8;
    color:#ffffff;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    font-size:15px;
    font-weight:600;

    cursor:pointer;

    transition:0.3s;
}

.save-btn:hover{
    background:#09157c;
}



