/* EasyTrashMail - Header/Navigation Styles */

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* Force logo text visibility with gradient */
.navbar .logo-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    opacity: 1 !important;
    font-weight: 700 !important;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

/* Inline Status Dot next to logo */
.inline-status-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    margin-left: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.inline-status-link:hover {
    background: rgba(34, 197, 94, 0.1);
}

.inline-status-link .status-dot {
    margin: 0;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    padding: 0;
}

.logo-icon img {
    width: 24px;
    height: 24px;
    filter: none;
    border-radius: 4px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: none;
    opacity: 1 !important;
}

.logo-text:hover {
    background: linear-gradient(135deg, #1d4ed8, #7c3aed, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    display: none;
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn.status {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.nav-btn.back {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), rgba(100, 116, 139, 0.1));
    color: #475569;
    border: 2px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 2px 8px rgba(148, 163, 184, 0.15);
    font-weight: 600;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

.nav-btn.back::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-btn.back:hover::before {
    left: 100%;
}

.nav-btn.back:hover {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(100, 116, 139, 0.2));
    color: #334155;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 163, 184, 0.3);
    border-color: rgba(148, 163, 184, 0.5);
}

.nav-btn.back:active {
    transform: translateY(0);
}

.nav-btn.back svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.nav-btn.back:hover svg {
    transform: scale(1.1) translateX(-2px);
}

.nav-btn.login {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-btn.login:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Dashboard Button Styles */
.nav-btn.dashboard {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-btn.dashboard:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280; /* Default gray */
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.status-dot.online {
    background: #22c55e; /* Green for online */
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-dot.offline {
    background: #ef4444; /* Red for offline */
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        min-height: 3.5rem;
    }

    .nav-container {
        padding: 0.5rem 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        max-width: 100%;
        min-height: 2.5rem;
    }
    
    .logo-section {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 50%;
        margin-right: auto;
        gap: 0.5rem;
    }

    .logo-icon {
        width: 2rem;
        height: 2rem;
    }

    .logo-icon img {
        width: 20px;
        height: 20px;
    }

    .logo-text {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: none;
        opacity: 1 !important;
    }

    /* Inline status dot mobile styles */
    .inline-status-link {
        padding: 0.25rem;
        margin-left: 0.15rem;
    }

    .inline-status-link .status-dot {
        width: 7px;
        height: 7px;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        gap: 0.4rem;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .nav-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: auto;
        flex-shrink: 0;
        gap: 0.35rem;
    }

    /* Hide button text on mobile, show only icon */
    .nav-btn.home,
    .nav-btn.back {
        padding: 0.4rem 0.6rem;
        min-width: auto;
        justify-content: center;
        height: auto;
    }

    .nav-btn.home svg,
    .nav-btn.back svg {
        width: 14px;
        height: 14px;
    }

    .nav-btn.home span,
    .nav-btn.home::after,
    .nav-btn.back span,
    .nav-btn.back::after {
        display: none;
    }

    .nav-btn .status-dot {
        width: 6px;
        height: 6px;
    }
    
    .nav-btn svg {
        width: 14px;
        height: 14px;
        margin: 0;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .logo-section {
        max-width: 55%;
        gap: 0.4rem;
    }
    
    .logo-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .logo-icon img {
        width: 18px;
        height: 18px;
    }
    
    .logo-text {
        font-size: 0.85rem;
        background: linear-gradient(135deg, #3b82f6, #8b5cf6, #06b6d4);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: none;
        opacity: 1 !important;
    }

    .inline-status-link {
        padding: 0.2rem;
        margin-left: 0.1rem;
    }

    .inline-status-link .status-dot {
        width: 6px;
        height: 6px;
    }
    
    .nav-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
    }

    .nav-btn.home,
    .nav-btn.back {
        padding: 0.35rem 0.5rem;
        min-width: auto;
        border-radius: 0.5rem;
    }

    .nav-btn.home svg,
    .nav-btn.back svg {
        width: 13px;
        height: 13px;
    }

    /* Keep Login button text visible but compact */
    .nav-btn.login {
        padding: 0.35rem 0.6rem;
    }
    
    .nav-links {
        gap: 0.3rem;
    }
}

/* Ultra small devices (iPhone SE, small Android phones) */
@media (max-width: 360px) {
    .nav-container {
        padding: 0.4rem 0.5rem;
        gap: 0.3rem;
    }

    .logo-section {
        max-width: 55%;
        gap: 0.3rem;
    }

    .logo-text {
        font-size: 0.75rem;
    }

    .logo-icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .logo-icon img {
        width: 16px;
        height: 16px;
    }

    .inline-status-link {
        padding: 0.2rem;
        margin-left: 0.1rem;
    }

    .inline-status-link .status-dot {
        width: 5px;
        height: 5px;
    }

    .nav-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
    }

    .nav-btn.home,
    .nav-btn.back {
        padding: 0.3rem 0.45rem;
        min-width: auto;
        border-radius: 0.5rem;
    }

    .nav-btn.home svg,
    .nav-btn.back svg {
        width: 12px;
        height: 12px;
    }

    .nav-btn.login {
        padding: 0.3rem 0.5rem;
    }

    .nav-links {
        gap: 0.2rem;
    }

    .nav-btn .status-dot {
        width: 5px;
        height: 5px;
    }
}

@media (min-width: 1024px) {
    .logo-subtitle {
        display: block;
    }
}

/* Home Button Styles - Beautiful Design */
.nav-btn.home {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.nav-btn.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.nav-btn.home:hover::before {
    left: 100%;
}

.nav-btn.home:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.nav-btn.home:active {
    transform: translateY(0);
}

.nav-btn.home svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-btn.home:hover svg {
    transform: scale(1.1);
}

