/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f5f7ff;
    color:#333;
    overflow-x:hidden;
}

/* ===========================
   HEADER
=========================== */

header{
    background:#0b1033;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
    flex-wrap:wrap;
}

.logo h1{
    font-size:42px;
    font-weight:700;
}

.logo span{
    color:#ffb400;
}

.logo p{
    font-size:15px;
    margin-top:5px;
    color:#ddd;
}

.header-right{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:15px;
}

.top-links{
    display:flex;
    gap:20px;
}

.top-links a{
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.top-links a:hover{
    color:#ffb400;
}

.search-box{
    display:flex;
}

.search-box input{
    width:260px;
    padding:12px;
    border:none;
    outline:none;
    border-radius:8px 0 0 8px;
}

.search-box button{
    padding:12px 25px;
    border:none;
    cursor:pointer;
    color:#fff;
    font-weight:600;
    border-radius:0 8px 8px 0;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
}

.search-box button:hover{
    opacity:.9;
}

/* ===========================
   NAVBAR
=========================== */

.navbar{
    background:#16215f;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
}

.navbar a{
    color:#fff;
    text-decoration:none;
    padding:16px 28px;
    font-weight:500;
    transition:.3s;
}

.navbar a:hover{
    color:#ffb400;
}

/* ===========================
   TITLE
=========================== */

.title{
    text-align:center;
    padding:45px 20px;
}

.title h2{
    font-size:42px;
    color:#1f2a7d;
    font-weight:700;
}

/* ===========================
   NUKKAD LIST
=========================== */

.nukkad-list{
    width:92%;
    max-width:1400px;
    margin:0 auto 50px;
}

/* ===========================
   CARD
=========================== */

.nukkad-card{
    display:grid;
    grid-template-columns:300px 1fr 220px;
    gap:30px;
    align-items:center;

    background:#fff;
    margin-bottom:30px;
    padding:20px;

    border-radius:18px;
    box-shadow:0 8px 18px rgba(0,0,0,.08);

    transition:.3s;
}

.nukkad-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 30px rgba(0,0,0,.15);
}

/* ===========================
   IMAGE
=========================== */

.image{
    width:100%;
}

.image img{
    width:100%;
    height:190px;
    object-fit:cover;
    border-radius:15px;
    display:block;
}

/* ===========================
   DETAILS
=========================== */

.details{
    display:flex;
    flex-direction:column;
    justify-content:center;
    margin-left:40px;
}

.details h3{
    font-size:25px;
    color:#1f2a7d;
    margin-bottom:12px;
}

.details p{
    font-size:16px;
    color:#666;
    line-height:28px;
}

/* ===========================
   STATS
=========================== */

.stats{
    background:#f8f9ff;
    padding:18px;
    border-radius:15px;
    border:1px solid #ddd;
}

.stats p{
    padding:10px 0;
    border-bottom:1px solid #ddd;
    font-weight:600;
    font-size:15px;
}

.stats p:last-child{
    border:none;
}

/* ===========================
   FOOTER
=========================== */

footer{
    background:#0b1033;
    color:white;
    text-align:center;
    padding:30px;
}

footer h3{
    margin-bottom:10px;
}

footer p{
    color:#ddd;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:1100px){

    header{
        flex-direction:column;
        text-align:center;
        gap:20px;
    }

    .header-right{
        align-items:center;
    }

    .search-box{
        width:100%;
        justify-content:center;
    }

    .search-box input{
        width:100%;
        max-width:350px;
    }

    .navbar{
        flex-direction:column;
    }

    .navbar a{
        text-align:center;
        border-bottom:1px solid rgba(255,255,255,.1);
    }

    .nukkad-card{
        grid-template-columns:1fr;
        text-align:center;
    }

    .details{
        margin-left:0;
    }

    .image img{
        height:250px;
    }

    .stats{
        width:100%;
    }
}

@media(max-width:600px){
    header{
        padding:18px 16px;
    }

    .logo h1{
        font-size:clamp(24px, 7vw, 32px);
    }

    .logo p{
        font-size:13px;
    }

    .top-links{
        flex-wrap:wrap;
        justify-content:center;
        gap:12px;
    }

    .title{
        padding:25px 15px;
    }

    .title h2{
        font-size:clamp(24px, 6vw, 32px);
    }

    .nukkad-list{
        width:95%;
        margin-bottom:30px;
    }

    .nukkad-card{
        padding:16px 14px;
        gap:18px;
    }

    .details h3{
        font-size:22px;
    }

    .details p{
        font-size:14px;
        line-height:24px;
    }

    .card-actions{
        justify-content:center;
        flex-wrap:wrap;
    }

    .card-actions button{
        flex:1;
        min-width:110px;
    }
}


/* ===========================
   ADD NUKKAD BUTTON
=========================== */

.add-nukkad-btn{
    display:inline-block;
    margin-top:20px;
    padding:14px 35px;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
    color:#fff;
    text-decoration:none;
    font-weight:600;
    font-size:16px;
    border-radius:10px;
    transition:.3s;
}

.add-nukkad-btn:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(0,0,0,.2);
}

/* ===========================
   CARD ACTION BUTTONS
=========================== */

.card-actions{
    grid-column:1/-1;
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:5px;
}

.card-actions button{
    border:none;
    padding:10px 22px;
    font-size:14px;
    font-weight:600;
    color:#fff;
    cursor:pointer;
    border-radius:8px;
    transition:.3s;
}

.btn-edit{
    background:#1f2a7d;
}

.btn-edit:hover{
    background:#16215f;
}

.btn-delete{
    background:#e53e3e;
}

.btn-delete:hover{
    background:#c53030;
}

.card-actions button:hover{
    transform:translateY(-2px);
    box-shadow:0 5px 12px rgba(0,0,0,.15);
}

/* ===========================
   LOADING & EMPTY STATES
=========================== */

.loading-message,
.empty-message,
.error-message{
    text-align:center;
    padding:60px 20px;
    font-size:18px;
    color:#666;
}

.error-message{
    color:#e53e3e;
}
/* Profile section */
.nav-auth-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* User icon + Abhijeet */
.nav-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
}

/* User icon */
.nav-profile-icon i {
    color: #ffb400;
    font-size: 20px;
}

/* Profile + Logout buttons */
.nav-auth-btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Links */
.profile-btn,
.logout-btn {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* Hover */
.profile-btn:hover,
.logout-btn:hover {
    color: #ffb400 !important;
}