.header {
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 50px;
}

.w3-container {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.w3-bar {
    padding: 0 !important;
    display: flex;
    align-items: center;
    height: 100%;
    overflow: visible;
    width: 100%;
    justify-content: space-between;
}

.w3-bar>* {
    display: flex;
    align-items: center;
    height: 100%;
}

.w3-bar-item {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 8px;
}

.w3-padding-small {
    padding: 0 !important;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.header.sticky {
    position: fixed;
    animation: slideDown 0.3s ease;
    height: auto;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header-brush-glow {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translate(-50%, 50%) rotate(-5deg);
    width: 800px;
    height: 150px;
    background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(0, 255, 0, 0.12) 30%,
            rgba(0, 255, 0, 0.05) 60%,
            transparent 80%);
    filter: blur(30px);
    opacity: 0.6;
    pointer-events: none;
}

.header-brush-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%) rotate(15deg);
    width: 600px;
    height: 120px;
    background: radial-gradient(ellipse at center,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(0, 255, 0, 0.08) 40%,
            rgba(0, 255, 0, 0.03) 70%,
            transparent 90%);
    filter: blur(25px);
    opacity: 0.5;
}

.logo,
.w3-bar-item.logo {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.logo img {
    height: 38px;
    width: auto;
    margin: 6px 0;
}

.main-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    height: 100%;
}

.right-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 4px 12px;
    margin: auto 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    height: 32px;
}

.nav-link:hover {
    color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    transform: translateY(-1px);
}

.app-links-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
}

.app-links-container>* {
    margin: auto 0;
}

.w3-bar-item.logo {
    padding-left: 0;
}

/* Special left menu items with neon effect */
.left-menu .nav-link {
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.2);
    backdrop-filter: blur(5px);
    font-weight: 600;
}

.left-menu .nav-link:hover {
    color: #4fff4f;
    background: rgba(0, 255, 0, 0.15);
    border-color: rgba(0, 255, 0, 0.3);
    box-shadow:
        0 0 20px rgba(0, 255, 0, 0.2),
        inset 0 0 10px rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

.w3-right .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.w3-right .nav-link i {
    font-size: 16px;
}

/* Mobile menu button */
.w3-button {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.w3-button:hover {
    color: #00ff00;
    border-color: rgba(0, 255, 0, 0.4);
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.15);
}

/* Mobile menu */
.mobile-menu {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 0, 0.15);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu .nav-link {
    display: block;
    padding: 12px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu .nav-link:last-child {
    border-bottom: none;
}

/* Special app link styling improvements */
.special-app-link {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px !important;
    margin-left: 12px !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 255, 0, 0.2);
    background: rgba(0, 255, 0, 0.1);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(0, 255, 0, 0.05);
    backdrop-filter: blur(5px);
}

.archi-clarity-link {
    background: linear-gradient(135deg,
            rgba(0, 255, 0, 0.1) 0%,
            rgba(0, 200, 0, 0.15) 100%);
}

.archi-enhance-link {
    background: linear-gradient(135deg,
            rgba(0, 255, 0, 0.1) 0%,
            rgba(0, 200, 0, 0.15) 100%);
    border-color: rgba(0, 255, 0, 0.2);
}

.special-app-link:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 255, 0, 0.3);
    box-shadow:
        0 0 20px rgba(0, 255, 0, 0.2),
        inset 0 0 15px rgba(0, 255, 0, 0.1);
}

.archi-clarity-link:hover,
.archi-enhance-link:hover {
    background: linear-gradient(135deg,
            rgba(0, 255, 0, 0.15) 0%,
            rgba(0, 200, 0, 0.2) 100%);
}

.app-name {
    font-weight: 600;
    letter-spacing: 0.4px;
    font-size: 14px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.special-app-link:hover .app-name {
    color: #4fff4f;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.7);
}

/* Dropdown improvements */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    border: none;
    padding: 6px 14px;
    margin: auto 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
}

.dropbtn:hover,
.dropdown:hover .dropbtn {
    color: #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.15);
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 180px;
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.15);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    right: 0;
    overflow: hidden;
}

.dropdown-content a {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 3px 8px;
    background: linear-gradient(to bottom, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.15));
    border-radius: 12px;
    font-size: 0.9em;
    border: 1px solid rgba(76, 175, 80, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.credit-badge i {
    color: #4CAF50;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .header {
        height: 45px;
    }

    .logo img {
        height: 24px;
        margin: 6px 0;
    }

    .special-app-link {
        height: 32px;
        padding: 0 12px !important;
        margin-left: 10px !important;
    }

    .app-name {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .w3-container {
        padding: 0 10px;
    }
}