/* ============================================
   APP NAVIGATION ONLY
   Completely isolated from existing navbar styles
   ============================================ */
:root {
    --blue: #2F80ED;
    --orange: #C75300;
}
.no-mobile {
    display: contents; /* This makes the wrapper "disappear" in the layout flow */
}

/* ============================================
    NAVBAR STYLES (From nav.css)
    ============================================ */

.no-mobile {
    display: contents;
}

.navbar {
    background: #000000;
    border-bottom: 1px solid #333333;
    padding: 12px 0;
    position: relative;
    z-index: 1100;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container-xxl {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

/* Mobile toggle button */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.navbar-toggler:focus {
    outline: none;
}

/* Simple hamburger icon */
.navbar-toggler-icon {
    width: 24px;
    height: 2px;
    background: #ffffff;
    position: relative;
    display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #ffffff;
    left: 0;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

/* Navigation collapse container */
.navbar-collapse {
    display: flex;
    align-items: center;
}

/* Navigation list */
.navbar-nav {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 0;
    display: block;
    position: relative;
}

.nav-link:hover {
    color: var(--orange);
    text-decoration: none;
}

.nav-link.active {
    color: var(--orange);
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-toggler {
        display: flex;
    }
    
    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        border-bottom: 1px solid #333333;
        padding: 20px;
        flex-direction: column;
         z-index: 900;
    }
    
    .navbar-collapse.show {
        display: flex;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 18px 24px;
        background: #404040;
        border-radius: 12px;
        text-align: left;
        font-size: 18px;
        font-weight: 500;
        transition: all 0.2s ease;
        color: #ffffff;
        text-decoration: none;
    }
    
    .nav-link:hover {
        background: #555555;
        color: #ffffff;
        text-decoration: none;
    }
    
    .nav-link.active {
        background: var(--orange);
        color: #ffffff;
    }
}

/* App Menu Bar */
.app-menu-bar {
    background: #1a1a1a;
    border-bottom: 1px solid #404040;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 900;
    position: relative;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.app-menu-bar .menu-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-menu-bar .menu-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.app-menu-bar .menu-separator {
    color: #404040;
    font-weight: 300;
}

.tutorial-btn {
    background: var(--accent-orange);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
}

.tutorial-btn:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-1px);
}

.app-menu-bar .menu-item {
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #adb5bd;
    text-decoration: none;
    margin: 0;
    border: none;
    background: none;
}

.app-menu-bar .menu-item:hover {
    background: #2d2d2d;
    color: #ffffff;
    text-decoration: none;
}

/* App Icons Navigation */
.app-menu-bar .app-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.app-menu-bar .app-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    background: #2d2d2d;
    border: 1px solid #404040;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
    margin: 0;
    padding: 0;
}

.app-menu-bar .app-icon:hover {
    color: var(--orange);
    background: rgba(199, 83, 0, 0.1);
    border-color: var(--orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(199, 83, 0, 0.15);
    text-decoration: none;
}

#image-resizer .nav-image-resizer,
#image-compressor .nav-image-compressor,
#metadata-remover .nav-metadata-remover,
#typescale .nav-typescale,
#placeholder-text .nav-placeholder-text,
#placeholder-images .nav-placeholder-images,
#html-minifier .nav-html-minifier,
#css-minifier .nav-css-minifier,
#js-minifier .nav-js-minifier,
#base64 .nav-base64  {
    color: white;
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(199, 83, 0, 0.25);
}

#image-resizer .nav-image-resizer:hover,
#image-compressor .nav-image-compressor:hover,
#metadata-remover .nav-metadata-remover:hover,
#typescale .nav-typescale:hover,
#placeholder-text .nav-placeholder-text:hover,
#placeholder-images .nav-placeholder-images:hover,
#html-minifier .nav-html-minifier:hover,
#css-minifier .nav-css-minifier:hover,
#js-minifier .nav-js-minifier:hover,
#base64 .nav-base64:hover {
    background: #d65900;
    border-color: #d65900;
}

/*.app-menu-bar .app-icon.active {
    color: white;
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 4px 12px rgba(199, 83, 0, 0.25);
}

.app-menu-bar .app-icon.active:hover {
    background: #d65900;
    border-color: #d65900;
} */

.app-menu-bar .app-icon i {
    font-size: 14px;
}

/* Tooltip for app icons */
.app-menu-bar .app-icon::after {
    content: attr(title);
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #ffffff;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    border: 1px solid var(--orange);
    box-shadow: 0 4px 12px rgba(199, 83, 0, 0.2);
    z-index: 1600;
    pointer-events: none;
}

.app-menu-bar .app-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -36px;
}

/* ============================================
    MODAL STYLES
    ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    width: 90vw;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-strong);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    background: var(--bg-secondary);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* ============================================
   RESPONSIVE APP NAVIGATION
   ============================================ */

@media (max-width: 768px) {
    .app-menu-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .app-menu-bar .menu-left {
        gap: 12px;
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }
    
    .no-mobile {
        display: none;
    }
    
    .app-menu-bar .app-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }
    
    .app-menu-bar .app-icon i {
        font-size: 12px;
    }
    
    .app-menu-bar .menu-separator {
        display: inline-block;
    }
    
    .app-menu-bar .menu-title {
        white-space: nowrap;
    }
    
    .app-menu-bar .menu-item {
        white-space: nowrap;
    }
    .navbar {
        z-index: 1100; /* Keep this lower than app-menu-bar */
    }
}

@media (max-width: 640px) {
    .app-menu-bar {
        padding: 0 12px;
        height: 48px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
    }
    
    .app-menu-bar .menu-left {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: auto;
        flex-wrap: nowrap;
    }
    
    .app-menu-bar .menu-title {
        font-size: 14px;
        white-space: nowrap;
    }
    
    .app-menu-bar .menu-item {
        padding: 4px 8px;
        font-size: 13px;
        white-space: nowrap;
    }
    
    .app-menu-bar .menu-separator {
        display: inline-block;
    }
    
    .app-menu-bar .app-icon:nth-child(n+7) {
        display: flex;
    }
}

    .site-footer {
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        padding: 20px 0;
        margin-top: 20px;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        text-align: center;
    }

    .footer-content p {
        margin: 0;
        font-size: 12px;
        color: var(--text-secondary);
    }

    .footer-content a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .footer-content a:hover {
        color: var(--accent-hover);
        text-decoration: underline;
    }

    @media (max-width: 768px) {
        .site-footer {
            padding: 16px 0;
            margin-top: 24px;
        }
        
        .footer-content {
            padding: 0 16px;
        }
        
        .footer-content p {
            font-size: 12px;
        }
    }