/* =====================================
   GLOBAL
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins', sans-serif;
    background:#f4f6f9;
    color:#222;
}

a{
    text-decoration:none;
}

input,
select,
textarea,
button{
    font-family:'Poppins', sans-serif;
}

/* =====================================
   LOGIN PAGE
===================================== */

.login-body{
    background:linear-gradient(135deg,#0f172a,#1e293b);
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.login-container{
    width:100%;
    max-width:400px;
}

.login-card{
    background:#fff;
    border-radius:20px;
    padding:35px 25px;
    box-shadow:0 10px 40px rgba(0,0,0,0.2);
}

.login-top{
    text-align:center;
    margin-bottom:30px;
}

.login-top h1{
    color:#0f172a;
    font-size:32px;
    margin-bottom:5px;
}

.login-top p{
    color:#666;
    font-size:14px;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-size:14px;
    font-weight:500;
    color:#333;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:14px;
    border:1px solid #dcdcdc;
    border-radius:12px;
    outline:none;
    font-size:14px;
    background:#fff;
}

.form-group textarea{
    resize:none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#2563eb;
}

.login-btn{
    width:100%;
    border:none;
    background:#2563eb;
    color:#fff;
    padding:14px;
    border-radius:12px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.login-btn:hover{
    background:#1d4ed8;
}

.error-message{
    background:#fee2e2;
    color:#dc2626;
    padding:12px;
    border-radius:10px;
    margin-bottom:20px;
    text-align:center;
    font-size:14px;
}

/* =====================================
   DASHBOARD
===================================== */

.dashboard-container{
    padding:15px;
    padding-bottom:100px;
}

.top-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.top-header h2{
    font-size:24px;
    color:#111827;
}

.top-header p{
    font-size:13px;
    color:#777;
}

.logout-btn{
    background:#ef4444;
    color:#fff;
    padding:10px 14px;
    border-radius:10px;
    font-size:13px;
}

.dashboard-cards{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.card{
    background:#fff;
    border-radius:18px;
    padding:20px;
    box-shadow:0 3px 15px rgba(0,0,0,0.05);
}

.card h3{
    font-size:14px;
    color:#777;
    margin-bottom:10px;
}

.card h1{
    font-size:22px;
    color:#111827;
    word-break:break-word;
}

/* =====================================
   QUICK LINKS
===================================== */

.quick-links{
    margin-top:25px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.quick-btn{
    background:#2563eb;
    color:#fff;
    padding:15px;
    text-align:center;
    border-radius:14px;
    font-size:14px;
    font-weight:500;
    transition:0.3s;
}

.quick-btn:hover{
    background:#1d4ed8;
}

/* =====================================
   MOBILE NAVBAR
===================================== */

.mobile-navbar{
    position:fixed;
    bottom:0;
    left:0;
    width:100%;
    background:#fff;
    box-shadow:0 -3px 15px rgba(0,0,0,0.08);
    padding:12px 10px;
    z-index:999;
}

.menu-area{
    display:flex;
    justify-content:space-between;
    align-items:center;
    overflow-x:auto;
    gap:10px;
}

.menu-area a{
    color:#111827;
    font-size:13px;
    white-space:nowrap;
    padding:8px 12px;
    border-radius:10px;
}

.menu-area a:hover{
    background:#eff6ff;
    color:#2563eb;
}

/* =====================================
   PAGE CONTAINER
===================================== */

.page-container{
    padding:15px;
    padding-bottom:100px;
}

.page-title{
    margin-bottom:20px;
}

.page-title h2{
    font-size:24px;
    color:#111827;
}

.page-title p{
    font-size:13px;
    color:#777;
}

/* =====================================
   FORM CARD
===================================== */

.form-card{
    background:#fff;
    border-radius:18px;
    padding:20px;
    box-shadow:0 3px 15px rgba(0,0,0,0.05);
}

.submit-btn{
    width:100%;
    border:none;
    background:#16a34a;
    color:#fff;
    padding:14px;
    border-radius:12px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.submit-btn:hover{
    background:#15803d;
}

/* =====================================
   TABLE STYLE
===================================== */

.table-container{
    overflow-x:auto;
}

.data-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
    border-radius:15px;
    overflow:hidden;
}

.data-table th{
    background:#2563eb;
    color:#fff;
    padding:14px;
    font-size:14px;
    text-align:left;
}

.data-table td{
    padding:14px;
    border-bottom:1px solid #eee;
    font-size:13px;
}

.edit-btn{
    background:#f59e0b;
    color:#fff;
    padding:7px 12px;
    border-radius:8px;
    font-size:12px;
}

.delete-btn{
    background:#ef4444;
    color:#fff;
    padding:7px 12px;
    border-radius:8px;
    font-size:12px;
}

/* =====================================
   STATUS BADGES
===================================== */

.status-available{
    background:#dcfce7;
    color:#15803d;
    padding:5px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.status-sold{
    background:#fee2e2;
    color:#dc2626;
    padding:5px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

/* =====================================
   SUCCESS MESSAGE
===================================== */

.success-message{
    background:#dcfce7;
    color:#15803d;
    padding:14px;
    border-radius:12px;
    margin-bottom:20px;
    font-size:14px;
}

/* =====================================
   FOOTER
===================================== */

.footer{
    text-align:center;
    padding:18px 12px;
    margin-top:40px;
    margin-bottom:70px;
    font-size:13px;
    color:#6b7280;
    background:#ffffff;
    border-top:1px solid #e5e7eb;
}

.footer strong{
    color:#2563eb;
    font-weight:600;
}

/* =====================================
   RESPONSIVE
===================================== */

@media(max-width:480px){

    .dashboard-cards{
        grid-template-columns:1fr;
    }

    .quick-links{
        grid-template-columns:1fr;
    }

}