/* ================= RESET ================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f4f7fc;
    color:#333;
}

/* ================= 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{
    margin-top:5px;
    color:#ddd;
    font-size:15px;
}

.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;
}

.top-links a:hover{
    color:#ffb400;
}

/* ================= SEARCH ================= */

.search-box{
    display:flex;
}

.search-box input{
    width:260px;
    padding:12px;
    border:none;
    outline:none;
    border-radius:10px 0 0 10px;
}

.search-box button{
    padding:12px 24px;
    border:none;
    color:#fff;
    cursor:pointer;
    border-radius:0 10px 10px 0;
    font-weight:600;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
}

/* ================= NAVBAR ================= */

.navbar{
    background:#16215f;
    display:flex;
    align-items:center;
    padding:0 40px;
}

.navbar a{
    color:#fff;
    text-decoration:none;
    padding:18px 24px;
    font-weight:500;
    transition:.3s;
}

.navbar a:hover{
    color:#ffb400;
}

.add-btn{
    margin-left:auto;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
    border-radius:8px;
    padding:12px 20px !important;
    margin-top:8px;
    margin-bottom:8px;
}

/* ================= TITLE ================= */

.page-title{
    text-align:center;
    padding:40px 20px;
}

.page-title h2{
    font-size:38px;
    color:#1f2a7d;
    margin-bottom:10px;
}

.page-title p{
    color:#666;
    font-size:17px;
}

/* ================= FILTER ================= */

.filter-section{
    width:92%;
    margin:20px auto;
    display:flex;
    justify-content:flex-end;
    gap:20px;
}

.filter-section select{
    padding:12px 18px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:15px;
    outline:none;
    background:#fff;
}

/* ================= TABLE ================= */

.table-container{
    width:95%;
    margin:30px auto;
    background:#fff;
    border-radius:15px;
    overflow-x:auto;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

table{
    width:100%;
    border-collapse:collapse;
}

thead{
    background:#1f2a7d;
}

thead th{
    color:#fff;
    padding:18px;
    font-size:16px;
    text-align:center;
}

tbody tr:nth-child(even){
    background:#f8f9ff;
}

tbody tr:hover{
    background:#eef3ff;
}

tbody td{
    padding:15px;
    text-align:center;
    border-bottom:1px solid #e4e4e4;
    font-size:15px;
}

/* ================= PRODUCT IMAGE ================= */

.product-img{
    width:70px;
    height:70px;
    border-radius:10px;
    object-fit:cover;
    border:2px solid #ddd;
}

/* ================= STOCK ================= */

.stock{
    color:green;
    font-weight:600;
}

/* ================= BUTTON ================= */

.view-btn{
    display:inline-block;
    text-decoration:none;
    padding:10px 22px;
    color:#fff;
    border-radius:8px;
    font-weight:600;
    background:linear-gradient(135deg,#6d45ff,#ff4f7b,#ff8b3d);
    transition:.3s;
}

.view-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.2);
}

/* ================= FOOTER ================= */

footer{
    background:#0b1033;
    color:#fff;
    text-align:center;
    padding:35px 20px;
    margin-top:40px;
}

footer h3{
    font-size:28px;
    margin-bottom:10px;
}

footer p{
    color:#ddd;
    margin:5px 0;
}

/* ================= RESPONSIVE ================= */

@media(max-width:992px){

header{
    flex-direction:column;
    text-align:center;
    gap:20px;
}

.header-right{
    align-items:center;
}

.search-box{
    width:100%;
}

.search-box input{
    width:100%;
}

.navbar{
    flex-direction:column;
    padding:0;
}

.navbar a{
    width:100%;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,.1);
}

.add-btn{
    margin:15px;
    width:90%;
}

.filter-section{
    flex-direction:column;
}

.filter-section select{
    width:100%;
}

.table-container{
    width:98%;
}

table{
    min-width:1200px;
}

}

@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;
    }

    .page-title{
        padding:25px 15px;
    }

    .page-title h2{
        font-size:clamp(24px, 6vw, 32px);
    }

    .table-container{
        width:96%;
        margin:20px auto;
        border-radius:10px;
    }

    table{
        min-width:600px;
    }

    thead th, tbody td{
        padding:10px 8px;
        font-size:13px;
    }
}

/* 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;
}