/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Orbitron', sans-serif;
    background: black;
    background-size: cover;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    color: #e0e0e0;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #1f3ca6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    animation: slideDown 0.5s ease-out forwards, glow 1.5s infinite alternate;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
    to {
        box-shadow: 0 4px 12px rgba(65, 106, 89, 0.7);
    }
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #e0e0e0;
    transition: transform 0.4s ease, color 0.4s ease;
}

.logo:hover {
    transform: scale(1.2) rotate(-5deg);
    color: #416a59;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    transition: color 0.4s ease, background 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    border-radius: 5px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #416a59;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.nav-menu a:hover::before {
    width: 100%;
    background-color: #1f3ca6;
}

.nav-menu a:hover {
    background: radial-gradient(circle, rgba(65, 106, 89, 0.5), rgba(65, 106, 89, 0.2));
    color: #d8d8d8;
}

/* Menu Icon */
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.menu-icon:hover {
    transform: rotate(90deg) scale(1.1);
}

.menu-icon span {
    display: block;
    width: 30px;
    height: 4px;
    background-color: #416a59;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.menu-icon:hover span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon:hover span:nth-child(2) {
    opacity: 0;
}

.menu-icon:hover span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Content */
.content {
    margin-top: 60px; /* Adjust for navbar height */
    margin-left: 300px; /* Adjust for sidebar width */
    padding: 1rem;
    transition: margin-left 0.4s ease;
}

/* Mobile Footer */
.mobile-footer {
   
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: #e0e0e0;
    padding: 1rem;
    text-align: center;
    border-top: 2px solid #416a59;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    transition: background 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 5px;
}

.footer-menu a:hover {
    background: radial-gradient(circle, rgba(65, 106, 89, 0.5), rgba(65, 106, 89, 0.2));
    color: #1f3ca6;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-icon {
        display: flex;
    }

    .content {
        margin-left: 0;
    }

    .sidebar {
        width: 100%;
        left: -100%;
    }

    .mobile-footer {
        display: block;
    }
}



.editor-container {
    height:84vh;
    margin: 20px;
}

.CodeMirror {
    height: 100%;
    border: 1px solid #333;
    border-radius: 5px;
}
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    color: #dcdcdc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup.success {
    background: #4CAF50;
}

.popup.error {
    background: #f44336;
}

.popup button {
    background: #1e1e1e;
    border: none;
    color: #dcdcdc;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.popup button:hover {
    background: #555;
}
