* {
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* NAVBAR */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.6rem 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* CONTAINER */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo img {
    height: 45px;
    object-fit: contain;
}

/* COMPANY INFO */
.company-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.company-info a.active {
    background: #007BFF;
    color: white;
    text-decoration: none;
}

.company-info a:not(.active) {
    color: #007BFF;
    text-decoration: none;
}

#p_number {
    color: black;
    text-decoration: none;
}

/* DESKTOP LINKS */
.nav-links a {
    margin-left: 1rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #007BFF;
}

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 110%;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    min-width: 160px;
    padding: 0.4rem 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

[x-cloak] {
    display: none !important;
}

.dropdown-menu a,
.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    color: #333;
    text-align: left;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background-color: #f5f5f5;
}

.dropdown [x-show="dropdownOpen"] {
    display: block;
}

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem;
    background: #fff;
    border-top: 1px solid #eee;
    gap: 0.5rem;

    /* animacja */
    animation: slideDown 0.25s ease;
}

.mobile-menu a,
.mobile-menu button {
    padding: 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #f8f9fa;
    font-weight: 500;
    border: none;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
    background: #e9ecef;
}

/* ANIMACJA */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ACTIVE */
.active-link {
    color: #007BFF !important;
    font-weight: 600;
}

.admin-btn {
    background-color: #007BFF;
    color: white !important;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
}

.admin-btn:hover {
    background-color: #0056b3;
}

.active-admin {
    box-shadow: 0 0 0 2px #0056b3 inset;
}

@media (max-width: 640px) {

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .mobile-menu[x-show="open"] {
        display: flex;
    }

    .logo img {
        height: 40px;
    }

    .company-info {
        display: none;
    }
}