

:root {
    /* Professional Green Color Scheme */
    --primary-color: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --secondary-color: #1F2937;
    --background-color: #ffffff;
    --main-background-color: #f9fafb;
    --text-color: #111827;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #10B981;
    --success-light: #D1FAE5;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --info-color: #3B82F6;
}





* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f1f1f1;
    color: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* W3Schools Style Header */
.w3-top {
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

.w3-bar {
    width: 100%;
    overflow: hidden;
    background-color: var(--w3-dark);
    color: white;
    padding: 0;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}

.w3-bar .w3-button {
    background-color: inherit;
    color: inherit;
    border: none;
    padding: 8px 16px;
    font-size: 15px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    outline: 0;
    transition: background-color 0.3s;
}

.w3-bar .w3-button:hover {
    background-color: rgba(255,255,255,0.1);
}

.w3-bar .w3-logo {
    font-size: 18px;
    font-weight: bold;
    padding: 12px 24px;
    float: left;
}

.w3-bar .w3-right {
    float: right;
}

.w3-dropdown-hover {
    position: relative;
    display: inline-block;
}

.w3-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--w3-white);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border: 1px solid var(--border-color);
}

.w3-dropdown-hover:hover .w3-dropdown-content {
    display: block;
}

.w3-dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.w3-dropdown-content a:hover {
    background-color: var(--w3-light-gray);
}

/* Legacy header for compatibility */
header {
    background-color: var(--w3-dark);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.logo i {
    font-size: 1.5rem;
}

.controls {
    position: absolute;
    right: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.color-picker {
    position: relative;
    display: flex;
    align-items: center;
}

.color-picker label {
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: none;
    border: none;
}

.color-picker label:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.color-picker label:active {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.2);
}

.color-picker label i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.color-picker label:hover i {
    transform: scale(1.1);
}

.color-picker input[type="color"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    cursor: pointer;
}

.btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.2);
}

.btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Theme toggle specific styles */
#theme-toggle {
    position: relative;
}

#theme-toggle i {
    transition: transform 0.5s ease;
}

#theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Fullscreen toggle specific styles */
#fullscreen-toggle {
    position: relative;
}

#fullscreen-toggle i {
    transition: transform 0.3s ease;
}

.btn.small {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
}

/* W3Schools Style Main Container */
.w3-main {
    margin-left: 0;
    margin-top: 43px;
    padding: 0;
    transition: margin-left 0.3s ease;
}

.w3-main.w3-shift {
    margin-left: 250px;
}

.w3-container {
    padding: 0.01em 16px;
}

.w3-content {
    max-width: 1200px;
    margin: auto;
}

/* Legacy main container */
.main-container {
    flex: 1;
    padding: 1rem;
    margin-top: 60px;
    background-color: var(--main-background-color);
}

@media (max-width: 992px) {
    .w3-main.w3-shift {
        margin-left: 0;
    }
}

.editor-container {
    display: flex;
    gap: 2rem;
    height: calc(100vh - 180px);
    max-width: 1600px;
    margin: 0 auto;
}

.editor-section, .preview-section {
    flex: 1;
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.section-header {
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.page-title i {
    font-size: 0.8rem;
}

#preview-title {
    font-family: 'Fira Code', monospace;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Consistent textarea styles */
textarea {
    flex: 1;
    width: 100%;
    height: 400px;
    min-height: 400px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-wrap: normal;
}

/* Remove specific textarea styles since we have common styles now */
.editor-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.preview-section {
    flex: 1;
    background: var(--background-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.browser-window {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.browser-header {
    background: #f1f3f4;
    border-bottom: 1px solid #dadce0;
    padding: 8px;
}

.browser-tabs {
    display: flex;
    padding: 0 8px;
    background: #f1f3f4;
    border-bottom: 1px solid #dadce0;
}

.browser-tab {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dadce0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 12px;
    min-width: 200px;
    cursor: pointer;
    position: relative;
    margin-right: 4px;
}

.browser-tab.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    z-index: 1;
}

.tab-favicon {
    margin-right: 8px;
    color: #5f6368;
    font-size: 14px;
}

.tab-title {
    flex: 1;
    font-size: 12px;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-close {
    margin-left: 8px;
    color: #5f6368;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
}

.browser-tab:hover .tab-close {
    opacity: 1;
}

.browser-controls {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid #dadce0;
}

.browser-buttons {
    display: flex;
    gap: 4px;
    margin-right: 8px;
}

.browser-btn {
    background: none;
    border: none;
    color: #5f6368;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.browser-btn:hover {
    background-color: rgba(95, 99, 104, 0.1);
}

.browser-address {
    flex: 1;
    margin: 0 8px;
}

.address-bar {
    display: flex;
    align-items: center;
    background: #f1f3f4;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.address-bar i {
    margin-right: 8px;
    color: #5f6368;
}

.browser-content {
    flex: 1;
    overflow: hidden;
    background: #fff;
    position: relative;
}

#php-output {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
    background: #fff !important;
    color: #202124;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* JavaScript output styles */
#js-output {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
    background: #fff !important;
    color: #202124;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#js-output .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #5f6368;
    font-size: 16px;
    animation: pulse 1.5s infinite;
}

#js-output .error {
    color: #d93025;
    background: #fce8e6;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #d93025;
}

#js-output .output {
    color: #202124;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-wrap: normal;
}

/* Python output styles */
#py-output {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
    background: #fff !important;
    color: #202124;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#py-output .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #5f6368;
    font-size: 16px;
    animation: pulse 1.5s infinite;
}

#py-output .error {
    color: #d93025;
    background: #fce8e6;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #d93025;
}

#py-output .output {
    color: #202124;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-wrap: normal;
}

#php-output .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #5f6368;
    font-size: 16px;
    animation: pulse 1.5s infinite;
}

#php-output .error {
    color: #d93025;
    background: #fce8e6;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #d93025;
}

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

#run-php-btn.running {
    background-color: #1a73e8;
    pointer-events: none;
}

#run-php-btn.running i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



#preview-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* Light theme only - dark theme removed */
    background: #202124;
}

    background: #202124;
    border-color: #3c4043;
}

    background: #202124;
}

    background: #303134;
    border-color: #3c4043;
    color: #e8eaed;
}

    background: #303134;
}

    color: #e8eaed;
}

    background: #202124;
}

    color: #e8eaed;
}

    background-color: rgba(232, 234, 237, 0.1);
}

    background: #303134;
    color: #e8eaed;
    border-color: #3c4043;
}

    color: #e8eaed;
}

    background: #202124 !important;
    color: #e8eaed;
}

/* Dark theme for JavaScript output */
    background: #202124 !important;
    color: #e8eaed;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

    color: #e8eaed;
}

    color: #f28b82;
    background: #410e0b;
    border-left-color: #f28b82;
}

    color: #e8eaed;
}

/* Dark theme for Python output */
    background: #202124 !important;
    color: #e8eaed;
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

    color: #e8eaed;
}

    color: #f28b82;
    background: #410e0b;
    border-left-color: #f28b82;
}

    color: #e8eaed;
}

/* Dark theme adjustments for navigation buttons */
    color: #f8f9fa;
}

    background-color: rgba(248, 249, 250, 0.1);
}

    background-color: rgba(248, 249, 250, 0.2);
}

    color: #f8f9fa;
}

    background-color: rgba(248, 249, 250, 0.1);
}

    background-color: rgba(248, 249, 250, 0.2);
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0 1rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #fff;
}

.footer-section p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

    background-color: #1a1a1a;
}

    color: #6c8eff;
}

    color: rgba(255, 255, 255, 0.8);
}

    color: #6c8eff;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .editor-container {
        flex-direction: column;
        height: auto;
    }
    
    .editor-section, .preview-section {
        height: 50vh;
    }
    
    header {
        padding: 1rem;
    }
    
    .main-container {
        padding: 1rem;
        margin-top: 55px; /* Smaller margin for mobile */
    }
    
    .sidebar {
        top: 55px; /* Smaller top for mobile */
        height: calc(100vh - 55px);
    }
    
    .sidebar-toggle {
        top: 70px; /* Smaller top for mobile */
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.editor-section, .preview-section {
    animation: fadeIn 0.5s ease-in-out;
}

.editor-controls {
    display: flex;
    gap: 8px;
}

.editor-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.editor-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

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

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

.refresh-btn {
    background-color: #4CAF50;
    color: white;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.refresh-btn:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.refresh-btn:active {
    background-color: #3d8b40;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

/* Spinning animation for refresh button */
.refresh-btn.refreshing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Ripple effect */
.refresh-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.refresh-btn:hover::after {
    opacity: 1;
}

/* Dark theme adjustments for refresh button */
    background-color: #66bb6a;
    box-shadow: 0 2px 4px rgba(102, 187, 106, 0.2);
}

    background-color: #5cb860;
    box-shadow: 0 4px 8px rgba(102, 187, 106, 0.3);
}

    background-color: #4caf50;
    box-shadow: 0 2px 4px rgba(102, 187, 106, 0.2);
}

.clear-btn {
    background-color: #ff4a4a;
    color: white;
}

.clear-btn:hover {
    background-color: #ef3a3a;
    box-shadow: 0 2px 4px rgba(255, 74, 74, 0.3);
}

/* W3Schools Style Sidebar */
.w3-sidebar {
    position: fixed!important;
    z-index: 998;
    top: 43px;
    bottom: 0;
    left: 0;
    width: 250px;
    background-color: var(--w3-white);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.w3-sidebar.w3-show {
    transform: translateX(0);
}

.w3-sidebar .w3-bar-block {
    padding: 0;
}

.w3-sidebar .w3-bar-block .w3-bar-item {
    width: 100%;
    padding: 16px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    display: block;
    transition: background-color 0.3s;
}

.w3-sidebar .w3-bar-block .w3-bar-item:hover {
    background-color: var(--w3-light-gray);
}

.w3-sidebar .w3-bar-block .w3-bar-item.w3-green {
    background-color: var(--w3-green);
    color: white;
}

.w3-sidebar .w3-bar-block .w3-bar-item.w3-green:hover {
    background-color: #059862;
}

.w3-sidebar h3 {
    padding: 16px;
    margin: 0;
    background-color: var(--w3-light-gray);
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: bold;
}

/* Mobile sidebar toggle */
.w3-button.w3-hide-large {
    display: none;
}

@media (max-width: 992px) {
    .w3-button.w3-hide-large {
        display: inline-block;
    }
    
    .w3-sidebar {
        top: 43px;
    }
}

/* Legacy sidebar for compatibility */
.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 100px;
    z-index: 1000;
    background: var(--w3-green);
    border: none;
    border-radius: 4px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.16);
    transition: all 0.3s ease;
    color: white;
}

.sidebar.active ~ .sidebar-toggle {
    display: none;
}

.sidebar {
    position: fixed;
    left: -300px;
    top: 60px;
    width: 250px;
    height: calc(100vh - 60px);
    background: var(--w3-white);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 999;
    border-right: 1px solid var(--border-color);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-sidebar {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

/* W3Schools Style Menu Items */
.sidebar-menu a, .w3-bar-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    font-size: 15px;
}

.sidebar-menu a:hover, .w3-bar-item:hover {
    background-color: var(--w3-light-gray);
    color: var(--text-color);
}

.sidebar-menu a.active, .sidebar-menu a.disabled.active, .w3-bar-item.w3-green {
    background-color: var(--w3-green);
    color: white !important;
    font-weight: normal;
    cursor: default;
    opacity: 1;
    pointer-events: none;
}

.sidebar-menu a.active:hover, .w3-bar-item.w3-green:hover {
    background-color: #059862;
}

/* Category headers */
.sidebar-menu .category-header {
    background-color: var(--w3-light-gray);
    color: var(--text-color);
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    padding: 8px 16px;
}

.sidebar-menu a.disabled {
    cursor: default;
    opacity: 0.7;
    pointer-events: none;
}

.sidebar-menu a.disabled:hover {
    background-color: transparent;
}

.sidebar-menu i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* XML Editor Styles */
#xml-output {
    padding: 20px;
    height: calc(100vh - 280px);
    min-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    background: #fff !important;
    color: #202124;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.xml-success {
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f8fff9;
}

.xml-error {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff8f8;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.validation-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.xml-success .validation-status {
    color: #28a745;
}

.xml-error .validation-status {
    color: #dc3545;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.xml-content {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 400px);
    margin-top: 1rem;
    box-sizing: border-box;
}

.xml-code {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1rem;
    color: #721c24;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* XML Validator Buttons */
.validate-btn {
    background-color: #28a745;
    color: white;
}

.validate-btn:hover {
    background-color: #218838;
}

/* Dark theme for XML Editor */
    background: #202124 !important;
    color: #e8eaed;
}

    background-color: #1a202c;
    border-color: #48bb78;
}

    background-color: #1a202c;
    border-color: #f56565;
}

    background-color: #2d3748;
    border-color: #4a5568;
}

    background-color: #742a2a;
    border-color: #c53030;
    color: #fed7d7;
}

    background-color: #48bb78;
}

    background-color: #38a169;
}

/* SVG Editor Styles */
#svg-preview {
    padding: 20px;
    height: calc(100vh - 280px);
    min-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    background: #fff !important;
    color: #202124;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svg-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.svg-error {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff8f8;
    margin: 1rem;
    width: 100%;
    max-width: 500px;
}

.error-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #dc3545;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1rem;
    color: #721c24;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 13px;
}

/* SVG Preview Container */
#svg-preview svg {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark theme for SVG Editor */
    background: #202124 !important;
    color: #e8eaed;
}

    background: #2d3748;
    color: #a0aec0;
    border-color: #4a5568;
}

    background-color: #1a202c;
    border-color: #f56565;
}

    color: #f56565;
}

    background-color: #742a2a;
    border-color: #c53030;
    color: #fed7d7;
}

    border-color: #4a5568;
    background: #2d3748;
}

/* Canvas Editor Styles */
#canvas-output {
    padding: 20px;
    height: calc(100vh - 280px);
    min-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    background: #fff !important;
    color: #202124;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.canvas-error {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff8f8;
    margin: 1rem;
    width: 100%;
    max-width: 500px;
}

/* Canvas element styling */
#canvas-output canvas {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading state for Canvas */
#canvas-output .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #5f6368;
    font-size: 16px;
    animation: pulse 1.5s infinite;
}

/* Dark theme for Canvas Editor */
    background: #202124 !important;
    color: #e8eaed;
}

    background: #2d3748;
    color: #a0aec0;
    border-color: #4a5568;
}

    background-color: #1a202c;
    border-color: #f56565;
}

    border-color: #4a5568;
    background: #2d3748;
}

    color: #e8eaed;
}

/* WebGL Editor Styles */
#webgl-output {
    padding: 20px;
    height: calc(100vh - 280px);
    min-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    background: #fff !important;
    color: #202124;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.webgl-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    font-size: 16px;
    font-style: italic;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.webgl-error {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff8f8;
    margin: 1rem;
    width: 100%;
    max-width: 500px;
}

/* WebGL canvas element styling */
#webgl-output canvas {
    max-width: 100%;
    max-height: 100%;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading state for WebGL */
#webgl-output .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #5f6368;
    font-size: 16px;
    animation: pulse 1.5s infinite;
}

/* Dark theme for WebGL Editor */
    background: #202124 !important;
    color: #e8eaed;
}

    background: #2d3748;
    color: #a0aec0;
    border-color: #4a5568;
}

    background-color: #1a202c;
    border-color: #f56565;
}

    border-color: #4a5568;
    background: #000;
}

    color: #e8eaed;
}

/* JSON Editor Styles */
#json-output {
    padding: 20px;
    height: calc(100vh - 280px);
    min-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    background: #fff !important;
    color: #202124;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.json-success {
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f8fff9;
}

.json-error {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff8f8;
}

.validation-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.json-success .validation-status {
    color: #28a745;
}

.json-error .validation-status {
    color: #dc3545;
}

.json-content {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
    margin-bottom: 1rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.json-code {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-wrap: normal;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    display: block;
    min-width: 100%;
    width: max-content;
    box-sizing: border-box;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1rem;
    color: #721c24;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 13px;
}

.json-info {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item strong {
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* Code Editor with Line Numbers - Common for all editors */
.code-editor-container {
    display: flex;
    height: calc(100vh - 200px);
    min-height: 500px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.line-numbers {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 1rem 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #6c757d;
    text-align: right;
    min-width: 50px;
    user-select: none;
    overflow-y: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.line-number {
    line-height: 1.4;
    padding: 0 0.25rem;
    height: 1.4em;
    min-height: 1.4em;
    display: flex;
    align-items: flex-start;
}

/* Common editor styles for all editors with line numbers */
.code-editor-container textarea {
    flex: 1;
    border: none;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    padding: 1rem;
    resize: none !important;
    outline: none;
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
    margin: 0;
    box-sizing: border-box;
    min-height: unset;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-wrap: normal;
}

/* Dark theme for JSON Editor */
    background: #202124 !important;
    color: #e8eaed;
}

    background-color: #1a202c;
    border-color: #48bb78;
}

    background-color: #1a202c;
    border-color: #f56565;
}

    background-color: #2d3748;
    border-color: #4a5568;
}

    color: #e2e8f0;
}

    background-color: #742a2a;
    border-color: #c53030;
    color: #fed7d7;
}

    background-color: #2d3748;
    color: #e2e8f0;
}

    color: #a0aec0;
}

/* Dark theme for line numbers */
    background-color: #2d3748;
    border-right-color: #4a5568;
    color: #a0aec0;
}

/* Dark theme for common editors */
    background: transparent;
    color: #e2e8f0;
}

    background: transparent;
    color: #e2e8f0;
}

/* W3Schools Additional Classes */
.w3-card {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}

.w3-animate-left {
    position: relative;
    animation: animateleft 0.4s;
}

@keyframes animateleft {
    from { left: -300px; opacity: 0; }
    to { left: 0; opacity: 1; }
}

.w3-hide-small {
    display: none !important;
}

.w3-hide-medium {
    display: none !important;
}

.w3-hide-large {
    display: none !important;
}

@media (min-width: 993px) {
    .w3-hide-large {
        display: none !important;
    }
    .w3-hide-small,
    .w3-hide-medium {
        display: initial !important;
    }
}

@media (max-width: 992px) and (min-width: 601px) {
    .w3-hide-medium {
        display: none !important;
    }
    .w3-hide-small,
    .w3-hide-large {
        display: initial !important;
    }
}

@media (max-width: 600px) {
    .w3-hide-small {
        display: none !important;
    }
    .w3-hide-medium,
    .w3-hide-large {
        display: initial !important;
    }
}

.w3-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 997;
}

.w3-animate-opacity {
    animation: opac 0.8s;
}

@keyframes opac {
    from { opacity: 0; }
    to { opacity: 1; }
}

.w3-large {
    font-size: 18px !important;
}

.w3-padding-16 {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* W3Schools Button Styles */
.w3-button {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.w3-button:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

/* W3Schools Responsive Grid */
.w3-row-padding {
    padding: 0 8px;
}

.w3-col {
    float: left;
    width: 100%;
}

.w3-half {
    width: 49.99999% !important;
}

@media (min-width: 601px) {
    .w3-col.m6 {
        width: 49.99999%;
    }
}

@media (min-width: 993px) {
    .w3-col.l6 {
        width: 49.99999%;
    }
    .w3-col.l4 {
        width: 33.33333%;
    }
    .w3-col.l12 {
        width: 100%;
    }
}

/* W3Schools responsive utilities */
.w3-code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 15px;
    line-height: 1.4;
    padding: 8px 12px;
    border-left: 4px solid var(--w3-green);
    background-color: #f1f1f1;
}

.w3-margin-top {
    margin-top: 16px !important;
}

.w3-margin-bottom {
    margin-bottom: 16px !important;
}

.w3-small {
    font-size: 12px !important;
}

.w3-large {
    font-size: 18px !important;
}

.w3-card-4 {
    box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2), 0 4px 20px 0 rgba(0,0,0,0.19);
}

.w3-light-grey {
    background-color: #f1f1f1 !important;
    color: #000 !important;
}

.w3-green {
    background-color: #04AA6D !important;
    color: white !important;
}

.w3-red {
    background-color: #f44336 !important;
    color: white !important;
}

.w3-white {
    background-color: #fff !important;
    color: #000 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 992px) {
    .w3-col.m6 {
        width: 49.99999%;
    }
    .w3-col.m12 {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .w3-col.s12 {
        width: 100%;
    }
    
    .w3-hide-small {
        display: none !important;
    }
    
    .editor-container {
        flex-direction: column;
        height: auto;
    }
    
    .editor-section, .preview-section {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .w3-container {
        padding: 0.01em 8px;
    }
}

/* Professional Header Navigation Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--w3-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav {
    height: 60px;
    display: flex;
    align-items: center;
}

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

/* Brand/Logo */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--w3-green);
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s ease;
}

.brand-link:hover {
    color: #059862;
}

.brand-icon {
    font-size: 20px;
}

.brand-text {
    font-weight: 700;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background-color: var(--w3-light-gray);
    color: var(--w3-green);
}

.nav-link.active {
    background-color: var(--w3-green);
    color: white;
}

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

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menus */
/* Old dropdown styles removed - using professional header styles */

.dropdown-header {
    padding: 12px 16px 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--w3-gray);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--w3-light-gray);
    color: var(--w3-green);
}

.dropdown-item.active {
    background-color: var(--w3-light-green);
    color: var(--w3-green);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--w3-green);
}

.item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-title {
    font-weight: 500;
    font-size: 14px;
}

.item-desc {
    font-size: 12px;
    color: var(--w3-gray);
}

/* Right Side Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.control-btn:hover {
    background-color: var(--w3-light-gray);
    color: var(--w3-green);
}

/* Search */
.search-container {
    position: relative;
    transition: width 0.3s ease;
}

.search-container.active {
    width: 250px;
}

.search-input-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--w3-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 40px 8px 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    width: 200px;
}

.search-container.active .search-input-container {
    opacity: 1;
    visibility: visible;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--w3-gray);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--w3-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1002;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.suggestion-item:hover {
    background-color: var(--w3-light-gray);
    color: var(--w3-green);
}

/* Color Picker */
.color-picker-container {
    position: relative;
}

.color-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--w3-white);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--w3-green);
    color: white;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 18px;
}

.mobile-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-close:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-menu-content {
    padding: 20px 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.mobile-nav-item:hover {
    background-color: var(--w3-light-gray);
    color: var(--w3-green);
}

.mobile-nav-item.active {
    background-color: var(--w3-light-green);
    color: var(--w3-green);
    font-weight: 600;
}

.mobile-nav-section {
    margin: 20px 0;
}

.mobile-nav-title {
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--w3-gray);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
}

.menu-open {
    overflow: hidden;
}

/* Main Content Wrapper */
.main-wrapper {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .search-container {
        display: none;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .main-wrapper {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .mobile-menu {
        width: 280px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .brand-text {
        display: none;
    }
}

/* Dark Theme Support */
    background: var(--w3-dark);
    border-color: #495057;
}

    background: var(--w3-dark);
    border-color: #495057;
}

    background-color: #495057;
}

    background: var(--w3-green);
}

/* ULTRA-PROFESSIONAL DESIGNER HEADER STYLES */

/* Premium Professional Variables - W3Schools Theme Integration */
:root {
    /* W3Schools Professional Color System */
    --primary-gradient: linear-gradient(135deg, #04AA6D 0%, #2196F3 100%);
    --prof-white: #ffffff;
    --prof-off-white: #fdfdfd;
    --prof-light-gray: #f8fafc;
    --prof-medium-gray: #e2e8f0;
    --prof-dark-gray: #64748b;
    --prof-charcoal: #282A35;
    --prof-midnight: #0f172a;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --accent-color: #04AA6D;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: rgba(226, 232, 240, 0.8);
}



/* Beautiful Professional Header - Enhanced W3Schools Style */
.professional-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #04AA6D 0%, #059862 50%, #04AA6D 100%);
    border-bottom: 3px solid #048A58;
    box-shadow: 0 4px 15px 0 rgba(4, 170, 109, 0.3), 0 2px 10px 0 rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}



.professional-nav {
    height: 72px;
    display: flex;
    align-items: center;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: var(--space-2xl);
}

.brand-section {
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0);
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: -1;
}

.brand-logo:hover::before {
    background: rgba(255, 255, 255, 0.15);
}

.brand-logo:hover {
    transform: translateY(-2px) scale(1.02);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.logo-symbol::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 10px;
    transition: all 0.3s ease;
}

.brand-logo:hover .logo-symbol {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.brand-text {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.brand-name {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.025em;
}

.brand-domain {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex: 1;
    justify-content: center;
}

.nav-section {
    position: relative;
    margin: 4px;
}

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

.nav-section:hover .mega-menu {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-section:hover .nav-trigger {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.0), rgba(255,255,255,0.1));
    border-radius: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.25));
}

.nav-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.nav-icon {
    font-size: 1.1rem;
    transition: transform 0.2s var(--ease-out);
}

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

.nav-arrow {
    transition: transform 0.2s var(--ease-out);
    color: var(--prof-dark-gray);
}

.nav-trigger:hover .nav-arrow,
.nav-trigger.active .nav-arrow {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-15px);
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 8px 30px rgba(4, 170, 109, 0.1);
    padding: 30px;
    min-width: 650px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(4, 170, 109, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1001;
    pointer-events: none;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
}

.mega-section {
    min-width: 0;
}

.mega-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--prof-dark-gray);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mega-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.mega-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 170, 109, 0.05), rgba(4, 170, 109, 0.02));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mega-item:hover::before {
    opacity: 1;
}

.mega-item:hover {
    background: rgba(4, 170, 109, 0.08);
    transform: translateY(-3px) translateX(6px);
    box-shadow: 0 8px 25px rgba(4, 170, 109, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: rgba(4, 170, 109, 0.2);
}

.item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ensure C icon displays properly */
.item-icon.c-icon {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Ensure C++ icon displays properly */
.item-icon.cpp-icon {
    background: linear-gradient(135deg, #00599c, #004482) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Technology Icon Colors */
.html-icon { background: linear-gradient(135deg, #e34c26, #f06529); }
.php-icon { background: linear-gradient(135deg, #777bb4, #8892bf); }
.js-icon { background: linear-gradient(135deg, #f7df1e, #ffda44); color: #323330; }
.c-icon { background: linear-gradient(135deg, #007bff, #0056b3) !important; color: #ffffff !important; }
.mega-item .c-icon { background: linear-gradient(135deg, #007bff, #0056b3) !important; color: #ffffff !important; }
.mobile-item-icon.c-icon { background: linear-gradient(135deg, #007bff, #0056b3) !important; color: #ffffff !important; }
.cpp-icon { background: linear-gradient(135deg, #00599c, #004482) !important; color: #ffffff !important; }
.mega-item .cpp-icon { background: linear-gradient(135deg, #00599c, #004482) !important; color: #ffffff !important; }
.mobile-item-icon.cpp-icon { background: linear-gradient(135deg, #00599c, #004482) !important; color: #ffffff !important; }
.python-icon { background: linear-gradient(135deg, #3776ab, #4b8bbe); }
.xml-icon { background: linear-gradient(135deg, #ff6b35, #f7931e); }
.json-icon { background: linear-gradient(135deg, #000000, #434343); }
.svg-icon { background: linear-gradient(135deg, #ffb13b, #ffa000); }
.canvas-icon { background: linear-gradient(135deg, #ff4081, #e91e63); }
.webgl-icon { background: linear-gradient(135deg, #990000, #cc0000); }
.qr-icon { background: linear-gradient(135deg, #000000, #333333); }
.barcode-icon { background: linear-gradient(135deg, #28a745, #20c997); }
.password-icon { background: linear-gradient(135deg, #6f42c1, #e83e8c); }
.age-icon { background: linear-gradient(135deg, #4caf50, #66bb6a); }
.emoji-icon { background: linear-gradient(135deg, #FFA500, #FF1493); }
.time-diff-icon { background: linear-gradient(135deg, #6A5ACD, #4834cc); }
.curl-icon { background: linear-gradient(135deg, #597e8d, #b735d1); }
.about-icon { background: linear-gradient(135deg, #4a90e2, #2e7bd3); }
.contact-icon { background: linear-gradient(135deg, #e67e22, #d35400); }
.privacy-icon { background: linear-gradient(135deg, #27ae60, #219a52); }
.terms-icon { background: linear-gradient(135deg, #8e44ad, #703688); }



.item-details {
    flex: 1;
    min-width: 0;
}

.item-details h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--prof-charcoal);
    margin: 0 0 var(--space-xs) 0;
    line-height: 1.2;
}

.item-details p {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--prof-dark-gray);
    margin: 0;
    line-height: 1.3;
}

.item-badge {
    padding: var(--space-xs) var(--space-sm);
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 8px 30px rgba(4, 170, 109, 0.1);
    padding: 20px;
    min-width: 340px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(4, 170, 109, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1001;
    pointer-events: none;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4, 170, 109, 0.05), rgba(4, 170, 109, 0.02));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-item:hover {
    background: rgba(4, 170, 109, 0.08);
    transform: translateY(-2px) translateX(6px);
    box-shadow: 0 6px 20px rgba(4, 170, 109, 0.15), 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(4, 170, 109, 0.2);
}

.action-bar {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

.search-wrapper {
    position: relative;
}

.search-panel {
    position: absolute;
    top: calc(100% + var(--space-md));
    right: 0;
    background: var(--prof-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
    padding: var(--space-lg);
    width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-out);
    border: 1px solid var(--prof-medium-gray);
    backdrop-filter: blur(20px);
    z-index: 1002;
}

.search-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: var(--space-lg);
}

.search-input {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 var(--space-lg);
    border: 2px solid var(--prof-medium-gray);
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    background: var(--prof-light-gray);
    color: var(--prof-charcoal);
    transition: all 0.2s var(--ease-out);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--prof-white);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 1050;
}

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

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(400px, 90vw);
    height: 100vh;
    background: white;
    box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2), 0 4px 20px 0 rgba(0,0,0,0.19);
    transition: right 0.3s ease;
    z-index: 1051;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: var(--w3-green);
    color: white;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mobile-brand-text {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.mobile-content {
    padding: var(--space-xl);
}

.mobile-section {
    margin-bottom: var(--space-2xl);
}

.mobile-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--prof-dark-gray);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mobile-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.mobile-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--prof-charcoal);
    transition: all 0.2s var(--ease-out);
}

.mobile-item:hover {
    background: var(--prof-light-gray);
    transform: translateX(4px);
}

.mobile-item-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.main-content-wrapper {
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    background-color: #f1f1f1;
}

.content-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
    border-radius: 4px;
}

/* W3Schools specific content styling */
.main-container {
    background-color: white;
    border-radius: 4px;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.hero-section {
    background: linear-gradient(135deg, #04AA6D, #059862);
    color: white;
    padding: 40px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hero-section h1 {
    color: white;
    margin-top: 0;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .brand-text {
        display: none;
    }
    
    .action-bar .search-wrapper,
    .action-bar .color-customizer,
    .action-bar .fullscreen-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .professional-nav {
        height: 60px;
    }
    
    .main-content-wrapper {
        margin-top: 60px;
    }
}

/* W3Schools Button Styles */
.w3-button, .w3-btn {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    border-radius: 0;
}

.w3-button:hover, .w3-btn:hover {
    background-color: #ccc !important;
}

.w3-green, .w3-hover-green:hover {
    color: #fff !important;
    background-color: #04AA6D !important;
}

.w3-green:hover {
    background-color: #059862 !important;
}

.w3-card, .w3-card-2 {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}

.w3-card-4 {
    box-shadow: 0 4px 10px 0 rgba(0,0,0,0.2), 0 4px 20px 0 rgba(0,0,0,0.19);
}

.w3-white {
    color: #000 !important;
    background-color: #fff !important;
}

.w3-container {
    padding: 0.01em 16px;
}

.w3-margin-top {
    margin-top: 16px !important;
}

.w3-row-padding {
    padding-left: 8px;
    padding-right: 8px;
}

.w3-col {
    float: left;
    width: 100%;
}

.w3-col.l12 {
    width: 100%;
}

/* Beautiful Footer Design - W3Schools Enhanced Style */
footer {
    background: linear-gradient(135deg, #282A35 0%, #1a1c24 50%, #282A35 100%);
    color: white;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #04AA6D, #059862, #04AA6D);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-section {
    position: relative;
}

.footer-section h4 {
    color: #04AA6D;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #04AA6D, #059862);
    border-radius: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    padding: 6px 0;
    display: inline-block;
    position: relative;
}

.footer-section ul li a::before {
    content: '▶';
    color: #04AA6D;
    margin-right: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-section ul li a:hover {
    color: #04AA6D;
    transform: translateX(15px);
}

/* Footer Links Grid - 2 Column Layout */
.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-links-column {
    width: 100%;
}

.footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    padding: 6px 0;
    display: inline-block;
    position: relative;
}

.footer-links-column ul li a::before {
    content: '▶';
    color: #04AA6D;
    margin-right: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links-column ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links-column ul li a:hover {
    color: #04AA6D;
    transform: translateX(15px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(4, 170, 109, 0.1);
    border: 2px solid rgba(4, 170, 109, 0.3);
    border-radius: 12px;
    color: #04AA6D;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #04AA6D, #059862);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.1);
    border-color: #04AA6D;
    color: white;
    box-shadow: 0 8px 25px rgba(4, 170, 109, 0.4);
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #04AA6D;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
}

.footer-bottom a:hover {
    color: white;
    background: #04AA6D;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px 20px;
    }
    
    /* Mobile: Footer Links Grid - Single Column */
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* Light theme only - all dark theme functionality removed */

/* ================================= */
/* MOBILE MENU BUTTON RESPONSIVE STYLES */
/* Applied to ALL PAGES in website */
/* ================================= */

/* Mobile Menu Button - COMPLETELY HIDDEN by default on ALL PAGES */
.mobile-menu-btn {
    /* FORCE HIDE on all screen sizes by default */
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Desktop - Completely remove mobile menu button from ALL PAGES */
@media (min-width: 993px) {
    .mobile-menu-btn,
    button.mobile-menu-btn,
    .action-btn.mobile-menu-btn,
    button.action-btn.mobile-menu-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Hide any mobile-specific elements on desktop */
    *[id="mobile-menu-btn"] {
        display: none !important;
    }
}

/* Mobile/Tablet - Show mobile menu button on ALL PAGES */
@media (max-width: 992px) {
    /* Show mobile menu button only on mobile/tablet */
    .mobile-menu-btn,
    button.mobile-menu-btn,
    .action-btn.mobile-menu-btn,
    button.action-btn.mobile-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: 36px !important;
        height: 36px !important;
        overflow: visible !important;
        position: relative !important;
        left: auto !important;
    }
    
    *[id="mobile-menu-btn"] {
        display: flex !important;
    }
}

/* Dark theme mobile menu button - only for mobile view on ALL PAGES */
@media (max-width: 992px) {
    [data-theme="dark"] .mobile-menu-btn {
        background: transparent;
        color: var(--dark-gray);
    }

    [data-theme="dark"] .mobile-menu-btn:hover {
        color: var(--accent-color);
        background: rgba(102, 126, 234, 0.08);
    }

    [data-theme="dark"] .mobile-menu-btn.menu-open {
        background: var(--accent-color);
        color: white;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    [data-theme="dark"] .mobile-menu-btn.menu-open:hover {
        background: var(--accent-color);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    }
}

/* ================================= */
/* MOBILE MENU CLOSE BUTTON STYLES */
/* Professional close button design */
/* ================================= */

/* Mobile Menu Close Button - FORCE SHOW on ALL Pages */
.mobile-menu-close,
button.mobile-menu-close,
#mobile-menu-close,
.mobile-menu-header button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(233, 30, 99, 0.1)) !important;
    border-radius: 12px !important;
    color: #f44336 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.15) !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Force show in mobile view */
    min-width: 40px !important;
    min-height: 40px !important;
    flex-shrink: 0 !important;
}

.mobile-menu-close::before,
button.mobile-menu-close::before,
#mobile-menu-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f44336, #e91e63);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.mobile-menu-close:hover,
button.mobile-menu-close:hover,
#mobile-menu-close:hover {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(233, 30, 99, 0.15));
    border-color: #f44336;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.3);
}

.mobile-menu-close:hover::before,
button.mobile-menu-close:hover::before,
#mobile-menu-close:hover::before {
    opacity: 0.1;
}

.mobile-menu-close:active,
button.mobile-menu-close:active,
#mobile-menu-close:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.2);
}

.mobile-menu-close i,
button.mobile-menu-close i,
#mobile-menu-close i,
.mobile-menu-header button i {
    position: relative !important;
    z-index: 1 !important;
    font-size: 1.1rem !important;
    transition: transform 0.3s ease !important;
    color: #f44336 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Fallback if Font Awesome doesn't load */
    width: 16px !important;
    height: 16px !important;
    text-align: center !important;
}

.mobile-menu-close:hover i,
button.mobile-menu-close:hover i,
#mobile-menu-close:hover i,
.mobile-menu-header button:hover i {
    transform: rotate(90deg) scale(1.1) !important;
    color: #f44336 !important;
}

/* Mobile View - Force Show Close Button */
@media (max-width: 992px) {
    .mobile-menu-close,
    button.mobile-menu-close,
    #mobile-menu-close,
    .mobile-menu-header button {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 1000 !important;
    }
    
    /* Dark theme close button - ALL Pages */
    [data-theme="dark"] .mobile-menu-close,
    [data-theme="dark"] button.mobile-menu-close,
    [data-theme="dark"] #mobile-menu-close,
    [data-theme="dark"] .mobile-menu-header button {
        background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(233, 30, 99, 0.15)) !important;
        color: #ff6b6b !important;
        border-color: rgba(244, 67, 54, 0.3) !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    [data-theme="dark"] .mobile-menu-close:hover,
    [data-theme="dark"] button.mobile-menu-close:hover,
    [data-theme="dark"] #mobile-menu-close:hover,
    [data-theme="dark"] .mobile-menu-header button:hover {
        background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(233, 30, 99, 0.2)) !important;
        border-color: #f44336 !important;
        box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4) !important;
    }
}

/* Fallback if Font Awesome doesn't load - Create X with CSS */
.mobile-menu-close:not(.fa):not([class*="fa-"])::after,
button.mobile-menu-close:not(.fa):not([class*="fa-"])::after {
    content: "✕" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 16px !important;
    color: #f44336 !important;
    font-weight: bold !important;
    z-index: 2 !important;
}

/* ================================= */
/* MOBILE MENU HEADER OPTIMIZATION */
/* ================================= */

.mobile-menu-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 60px;
    /* Prevent content from showing behind header when scrolling */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-header .brand-text {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Inter', sans-serif;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-menu-header .brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color, #667eea);
    letter-spacing: -0.02em;
    display: inline !important;
    visibility: visible !important;
}

.mobile-menu-header .brand-domain {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline !important;
    visibility: visible !important;
}

/* Dark theme mobile header */
@media (max-width: 992px) {
    [data-theme="dark"] .mobile-menu-header {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
        border-bottom-color: rgba(102, 126, 234, 0.2);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }
    
    [data-theme="dark"] .mobile-menu-header .brand-name {
        color: var(--accent-color, #667eea);
    }
}

/* ================================= */
/* COMPLETE MOBILE SIDEBAR DESIGN */
/* Professional mobile menu styling for all pages */
/* ================================= */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Main Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1), 0 0 50px rgba(102, 126, 234, 0.1);
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
    border-left: 1px solid rgba(102, 126, 234, 0.2);
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

/* Custom scrollbar for webkit browsers */
.mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 3px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Mobile Menu Content */
.mobile-content {
    padding: 0rem 1.5rem 1.5rem 1.5rem;
    background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.02));
    /* Ensure content doesn't show behind sticky header */
    position: relative;
    z-index: 1;
}

.mobile-section {
    margin-bottom: 2rem;
}

.mobile-section:first-child {
    margin-top: 1rem;
}

.mobile-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
    position: relative;
}

.mobile-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 1px;
}

.mobile-section-title i {
    color: #667eea;
    font-size: 1rem;
}

.mobile-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 1rem;
    text-decoration: none;
    color: #334155;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-item:hover::before {
    left: 100%;
}

.mobile-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    transform: translateX(6px);
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    color: #334155;
}

.mobile-item:active {
    transform: translateX(3px) scale(0.98);
}

.mobile-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-item:hover .mobile-item-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.item-details {
    flex: 1;
    z-index: 1;
}

.item-details h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.item-details p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.mobile-item:hover .item-details h4 {
    color: #667eea;
}

.mobile-item:hover .item-details p {
    color: #334155;
}

/* Icon Colors for different tools */
.html-icon { background: linear-gradient(135deg, #e34c26, #f06529); }
.php-icon { background: linear-gradient(135deg, #777bb4, #8892bf); }
.js-icon { background: linear-gradient(135deg, #f7df1e, #f0db4f); color: #333 !important; }
.c-icon { background: linear-gradient(135deg, #007bff, #0056b3) !important; color: #ffffff !important; }
.mega-item .c-icon { background: linear-gradient(135deg, #007bff, #0056b3) !important; color: #ffffff !important; }
.mobile-item-icon.c-icon { background: linear-gradient(135deg, #007bff, #0056b3) !important; color: #ffffff !important; }
.cpp-icon { background: linear-gradient(135deg, #00599c, #004482) !important; color: #ffffff !important; }
.mega-item .cpp-icon { background: linear-gradient(135deg, #00599c, #004482) !important; color: #ffffff !important; }
.mobile-item-icon.cpp-icon { background: linear-gradient(135deg, #00599c, #004482) !important; color: #ffffff !important; }
.python-icon { background: linear-gradient(135deg, #3776ab, #4b8bbe); }
.xml-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }
.json-icon { background: linear-gradient(135deg, #3498db, #2980b9); }
.svg-icon { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.canvas-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.webgl-icon { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.qr-icon { background: linear-gradient(135deg, #34495e, #2c3e50); }
.barcode-icon { background: linear-gradient(135deg, #16a085, #1abc9c); }
.password-icon { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.age-icon { background: linear-gradient(135deg, #ff6b6b, #ee5a52); }

/* Responsive Design */
@media (max-width: 480px) {
    .mobile-menu {
        width: 280px;
    }
}

@media (max-width: 400px) {
    .mobile-menu {
        width: 260px;
    }
}

/* Dark Theme Support */
@media (max-width: 992px) {
    [data-theme="dark"] .mobile-menu {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
        border-left-color: rgba(102, 126, 234, 0.3);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3), 0 0 50px rgba(102, 126, 234, 0.2);
    }

    [data-theme="dark"] .mobile-content {
        background: linear-gradient(to bottom, transparent, rgba(102, 126, 234, 0.05));
        position: relative;
        z-index: 1;
    }

    [data-theme="dark"] .mobile-section-title {
        color: #f8fafc;
        border-bottom-color: rgba(102, 126, 234, 0.2);
    }

    [data-theme="dark"] .mobile-item {
        color: #f8fafc;
        background: rgba(15, 23, 42, 0.6);
    }

    [data-theme="dark"] .mobile-item:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
        border-color: rgba(102, 126, 234, 0.3);
        color: #f8fafc;
    }

    [data-theme="dark"] .item-details h4 {
        color: #f8fafc;
    }

    [data-theme="dark"] .mobile-item:hover .item-details h4 {
        color: #667eea;
    }

    [data-theme="dark"] .item-details p {
        color: #cbd5e1;
    }

    [data-theme="dark"] .mobile-item:hover .item-details p {
        color: #f8fafc;
    }

    [data-theme="dark"] .mobile-menu::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(118, 75, 162, 0.4));
    }

    [data-theme="dark"] .mobile-menu::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
    }
} 
