/* Advanced Navigation Bar Styles */
.advanced-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(10, 13, 20, 0.95), rgba(17, 24, 39, 0.9));
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 240, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(225, 0, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.advanced-navbar {
    position: relative;
    padding: 0.8rem 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Advanced Logo */
.logo-section {
    flex-shrink: 0;
}

.advanced-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
}

.advanced-logo:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-3));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: logoShine 2s infinite;
}

@keyframes logoShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
    z-index: 1;
}

.logo-content {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.logo-accent {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
    justify-content: space-between;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.nav-link:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-color-1);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--accent-color-1);
    color: white;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle,
.fullscreen-btn {
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover,
.fullscreen-btn:hover {
    background: var(--accent-color-1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.btn-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-3));
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

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

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

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
}

/* Breadcrumb Section */
.breadcrumb-section {
    background: rgba(17, 24, 39, 0.5);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.breadcrumb-item:hover {
    color: var(--accent-color-1);
    background: rgba(0, 240, 255, 0.1);
}

.breadcrumb-item.active {
    color: var(--accent-color-1);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-secondary);
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Enhanced Tool Interface */
.tool-interface {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.tool-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color-1), var(--accent-color-2), transparent);
}

.tool-interface::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(225, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Enhanced Editor Panels */
.editor-panel {
    background: linear-gradient(145deg, var(--secondary-bg), rgba(30, 41, 59, 0.8));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.editor-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.02), rgba(225, 0, 255, 0.02));
    pointer-events: none;
    z-index: 0;
}

.editor-panel:hover {
    border-color: var(--accent-color-1);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-2px);
}

.panel-header {
    background: linear-gradient(135deg, var(--tertiary-bg), rgba(30, 41, 59, 0.9));
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
    z-index: 1;
}

.panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color-1), transparent);
}

/* Enhanced JSON Statistics */
.json-stats {
    background: linear-gradient(135deg, var(--tertiary-bg), rgba(30, 41, 59, 0.8));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.json-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(225, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stat-item {
    position: relative;
    z-index: 1;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === TOOL LAYOUT === */
.main-content {
    min-height: 100vh;
    padding: 120px 0 60px;
    position: relative;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.tool-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.tool-icon i {
    font-size: 2rem;
    color: white;
}

.tool-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* === EDITOR CONTAINER === */
.editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.editor-panel {
    background: var(--secondary-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all var(--transition-fast) ease;
}

.editor-panel:hover {
    border-color: var(--accent-color-1);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.2);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--tertiary-bg);
    border-bottom: 1px solid var(--card-border);
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-title i {
    color: var(--accent-color-1);
}

.panel-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    font-size: 0.9rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--accent-color-1);
    color: white;
    border-color: var(--accent-color-1);
    transform: translateY(-2px);
}

.panel-content {
    height: 400px;
    position: relative;
}

.json-textarea {
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    border: none;
    color: var(--text-primary);
    font-family: 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 1.5rem;
    resize: none;
    outline: none;
    tab-size: 2;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}

.json-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.json-textarea:focus {
    box-shadow: inset 0 0 0 2px var(--accent-color-1);
}

/* Syntax highlighting for output */
.json-textarea[readonly] {
    background: var(--secondary-bg);
    cursor: default;
}

/* === ACTION BUTTONS === */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-medium) cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
}

.btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-3));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 7px 30px rgba(0, 240, 255, 0.5);
}

.btn-success {
    background: linear-gradient(45deg, #10b981, #22c55e);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    box-shadow: 0 7px 30px rgba(16, 185, 129, 0.5);
}

.btn-warning {
    background: linear-gradient(45deg, #f59e0b, #f97316);
    color: white;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 7px 30px rgba(245, 158, 11, 0.5);
}

.btn-info {
    background: linear-gradient(45deg, #3b82f6, #6366f1);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-info:hover {
    box-shadow: 0 7px 30px rgba(59, 130, 246, 0.5);
}

.btn-danger {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 7px 30px rgba(239, 68, 68, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--tertiary-bg);
    border-color: var(--accent-color-1);
}

/* === STATUS AREA === */
.status-area {
    margin-bottom: 1.5rem;
}

.status-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast) ease;
    border: 2px solid transparent;
}

.status-message.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(34, 197, 94, 0.1));
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.status-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.status-message.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    color: var(--accent-color-1);
    border-color: rgba(59, 130, 246, 0.3);
}

/* === JSON STATISTICS === */
.json-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: var(--tertiary-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color-1);
}

/* === RESPONSIVE DESIGN === */

/* Mobile Navigation Media Queries */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, rgba(10, 13, 20, 0.98), rgba(17, 24, 39, 0.95));
        backdrop-filter: blur(25px);
        border-top: 1px solid rgba(0, 240, 255, 0.2);
        box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
        z-index: 999;
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        animation: mobileMenuSlide 0.3s ease;
    }
    
    .nav-menu.mobile-open {
        display: flex !important;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .nav-link {
        padding: 1rem 1.5rem;
        justify-content: flex-start;
        width: 100%;
        background: rgba(30, 41, 59, 0.5);
        border: 1px solid var(--card-border);
        border-radius: 12px;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 1rem;
        box-shadow: none;
        border: none;
        background: rgba(17, 24, 39, 0.8);
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        align-items: stretch;
    }
    
    .nav-actions .btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .theme-toggle,
    .fullscreen-btn {
        width: 100%;
        height: 50px;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .theme-toggle::after,
    .fullscreen-btn::after {
        content: attr(title);
        font-size: 0.9rem;
        margin-left: 0.5rem;
    }
}

@media (max-width: 1024px) {
    .editor-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tool-title {
        font-size: 2.5rem;
    }
    
    .action-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .logo-content {
        display: none;
    }
    
    .logo-icon {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 120px 0 40px;
    }
    
    .tool-interface {
        padding: 1.5rem;
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .tool-title {
        font-size: 2rem;
    }
    
    .tool-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .panel-content {
        height: 300px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .json-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .stat-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.8rem 1rem;
        background: rgba(30, 41, 59, 0.5);
        border-radius: 8px;
    }
    
    .breadcrumb-section {
        padding: 0.8rem 0;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-wrapper {
        padding: 0 1rem;
    }
    
    .floating-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 100px 0 40px;
    }
    
    .tool-interface {
        margin: 0 0.5rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .tool-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .tool-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .editor-container {
        gap: 1rem;
    }
    
    .panel-header {
        padding: 0.8rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .panel-title {
        font-size: 1rem;
    }
    
    .panel-actions {
        align-self: flex-end;
    }
    
    .json-textarea {
        padding: 1rem;
        font-size: 13px;
        line-height: 1.4;
    }
    
    .action-buttons {
        gap: 0.8rem;
        padding: 0 0.5rem;
    }
    
    .btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.8rem;
        max-width: none;
    }
    
    .json-stats {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .stat-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-wrapper {
        padding: 0 0.5rem;
    }
    
    .advanced-navbar {
        padding: 0.6rem 0;
    }
    
    .breadcrumb-section {
        padding: 0.6rem 0;
    }
    
    .breadcrumb-item {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .floating-actions {
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .floating-btn {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        padding: 1.5rem 1rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .theme-toggle,
    .fullscreen-btn {
        height: 45px;
        font-size: 0.9rem;
    }
}

/* === LOADING STATES === */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === COPY FEEDBACK === */
.copy-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-color-1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    z-index: 10000;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20%, 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Advanced Features Styles */
.validation-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    animation: slideIn 0.3s ease;
}

.validation-indicator.valid {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.validation-indicator.invalid {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

/* Line Numbers */
.line-numbers {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: var(--tertiary-bg);
    border-right: 1px solid var(--card-border);
    padding: 1.5rem 0;
    font-family: 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    overflow: hidden;
    user-select: none;
}

.line-number {
    padding: 0 0.5rem;
    text-align: right;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.json-textarea {
    padding-left: 70px !important;
}

/* Header Scroll Effects */
.advanced-header {
    transition: all 0.3s ease;
}

.advanced-header.scrolled {
    background: linear-gradient(135deg, rgba(10, 13, 20, 0.98), rgba(17, 24, 39, 0.95));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.advanced-header.scrolled .logo-icon {
    transform: scale(0.9);
}

/* Context Menu */
.context-menu {
    backdrop-filter: blur(20px);
    animation: contextMenuIn 0.2s ease;
}

@keyframes contextMenuIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Mobile Navigation */
@keyframes mobileMenuSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Desktop Navigation Visibility */
@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 992px) {
    .nav-wrapper {
        justify-content: space-between;
    }
    
    .logo-section {
        flex: 1;
    }
    
    .nav-menu {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .dropdown-toggle::after {
        content: '';
        margin-left: auto;
    }
    
    .nav-dropdown {
        width: 100%;
    }
    
    .dropdown-item {
        padding: 0.8rem 1.5rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
}

/* Enhanced Button Animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Advanced Panel Animations */
.editor-panel {
    animation: panelFadeIn 0.6s ease;
}

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

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-3));
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.6);
}

/* Advanced Status Messages */
.status-message {
    position: relative;
    overflow: hidden;
}

.status-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: statusShine 2s infinite;
}

@keyframes statusShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Advanced Tooltips */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-bg);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(1px);
    border: 5px solid transparent;
    border-top-color: var(--secondary-bg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* Performance Optimizations */
.panel-content {
    contain: layout;
    will-change: scroll-position;
}

.json-textarea {
    contain: layout style;
    will-change: contents;
}

/* Dark/Light Theme Transitions */
* {
    transition: 
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

/* Print Styles */
@media print {
    .advanced-header,
    .action-buttons,
    .floating-actions {
        display: none !important;
    }
    
    .tool-interface {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .json-textarea {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .advanced-header {
        background: #000;
        border-bottom: 2px solid #fff;
    }
    
    .nav-link:hover {
        background: #fff;
        color: #000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .logo-icon::before,
    .status-message::before {
        animation: none !important;
    }
}
