* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #0f172a;
    color: white;
}

/* ================= NAVBAR ================= */

.navbar {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: #111827;
    border-bottom: 1px solid #1f2937;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    color: #4f9cff;
}

.menu {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.menu a:hover {
    background: #1f2937;
}

/* ================= LOGIN BUTTON ================= */

.login-btn {
    background: #4f9cff;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: 0.25s;
}

.login-btn:hover {
    background: #3387ff;
}

/* ================= USER MENU ================= */

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #334155;
}

/* DROPDOWN */

.dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 230px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999;
}

.hidden {
    display: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
}

.user-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.dropdown a {
    display: block;
    padding: 8px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
}

.dropdown a:hover {
    background: #1f2937;
}

.logout {
    color: #ff4d4d;
}

/* ================= HERO ================= */

.hero {
    text-align: center;
    padding: 90px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    color: #9ca3af;
}

.hero-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 28px;
    background: #4f9cff;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.25s;
}

.hero-btn:hover {
    background: #3387ff;
    transform: translateY(-2px);
}

/* ================= HOME CARDS ================= */

.cards {
    width: 1200px;
    max-width: 95%;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #111827;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #1f2937;
    text-align: center;
}

.card h2 {
    color: #4f9cff;
    margin-bottom: 10px;
}

/* ================= INVENTORY GRID (ONLY USE ON INVENTORY PAGE) ================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 30px;
}

.item {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}

.item:hover {
    transform: translateY(-5px);
    border-color: #4f9cff;
}

.item img {
    width: 100px;
    margin-bottom: 10px;
}

.name {
    font-size: 13px;
    color: #d1d5db;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 34px;
    }

    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 10px;
    }
}