/* General Reset and Base Styles */
body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #B89778; /* Updated gold color */
    padding: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo-container {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000;
    text-shadow: 0 0 10px #000000, 0 0 20px #000000;
    animation: flicker 1.5s infinite alternate;
}

.logo-text {
    margin-right: 50px;
}

.logo-page {
    width: 70px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes flicker {
    0% { opacity: 1; text-shadow: 0 0 10px #000000, 0 0 20px #000000; }
    50% { opacity: 0.8; text-shadow: 0 0 5px #000000, 0 0 10px #000000; }
    100% { opacity: 1; text-shadow: 0 0 15px #000000, 0 0 30px #000000; }
}

/* Hamburger Menu */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    left: 10px;
}

.burger div {
    background-color: #000000;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.burger.active div:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.burger.active div:nth-child(2) {
    opacity: 0;
}

.burger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Sidebar (Aside) */
aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    background-color: rgba(28, 37, 38, 0.95);
    height: 100vh;
    position: fixed;
    left: -250px;
    top: 0;
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 30px;
}

aside.active {
    left: 0;
}

aside .logo {
    font-size: 2em;
    margin-bottom: 30px;
}

.logo-text-burguer {
    font-size: 1.5rem;
}

#closeBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff5f56;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    font-size: 1.5em;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#closeBtn:hover {
    background-color: #e03e2f;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Navigation Links */
.nav-links {
    padding: 0;
    margin: 0;
}

.nav-links li {
    list-style: none;
    margin: 12px 0;
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 1.1em;
    padding: 12px 20px;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    display: block;
    transition: all 0.3s ease-in-out;
}

.nav-links a:hover {
    background: transparent;
    color: #D4AF37;
    border: none;
    box-shadow: none;
    transform: translateX(8px);
}

/* Terminal Styles */
.terminal-container {
    width: 95%;
    max-width: 900px;
    background-color: #161b22;
    border-radius: 8px;
    padding: 15px;
    margin: 40px auto;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.terminal-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #0d1117;
    padding: 10px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.buttons span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.terminal-header .title {
    flex-grow: 1;
    text-align: center;
    font-size: 14px;
    margin: 0 80px 0 60px; /* Prevents overlap with buttons and copy icon */
}

.terminal-body {
    padding: 15px;
    background-color: #0d1117;
    border-radius: 0 0 8px 8px;
}

.output {
    width: 100%;
    height: 180px;
    background-color: #0d1117;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    padding: 10px;
    border-radius: 4px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Copy Button */
#copyBtnTerminal {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    z-index: 10; /* Ensures button is above other elements */
}

#copiedText {
    position: absolute;
    top: 10px;
    right: 40px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    font-size: 14px;
    color: #D4AF37;
    z-index: 10; /* Ensures text is above other elements */
}

/* EDR Buttons Container */
.edr-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

/* Generate Buttons */
.generate-btn {
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #D4AF37;
    background-color: #D2B48C;
    color: #1C2526;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    padding: 8px 20px;
}

.generate-btn:hover {
    background-color: #D4AF37;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.generate-btn:active {
    background-color: #FFFFFF;
    border: 2px solid #D4AF37;
    transform: scale(0.98);
}

/* EDR-specific Button Styles */
.crowdstrike-btn {
    background-color: #FF2D55;
    border-color: #FF5555;
}

.crowdstrike-btn:hover {
    background-color: #FF5555;
    border-color: #FFFFFF;
}

.microsoftxdr-btn {
    background-color: #0078D4;
    border-color: #00A1F1;
}

.microsoftxdr-btn:hover {
    background-color: #00A1F1;
    border-color: #FFFFFF;
}

.sentinelone-btn {
    background-color: #6F42C1;
    border-color: #8A5AD5;
}

.sentinelone-btn:hover {
    background-color: #8A5AD5;
    border-color: #FFFFFF;
}

.defender-btn {
    background-color: #00A4B4;
    border-color: #00CED1;
}

.defender-btn:hover {
    background-color: #00CED1;
    border-color: #FFFFFF;
}

.random-btn {
    background-color: #D2B48C;
    border-color: #D4AF37;
}

.random-btn:hover {
    background-color: #D4AF37;
    border-color: #FFFFFF;
}

/* Terminal Overlay */
.terminal-overlay {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    font-family: monospace;
    white-space: nowrap;
}

/* Slider for Animation Toggle */
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: -50px;
}

#animation-toggle {
    appearance: none;
    width: 50px;
    height: 25px;
    background-color: #ccc;
    border-radius: 50px;
    position: relative;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

#animation-toggle:checked {
    background-color: #4CAF50;
}

#animation-toggle:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background-color: white;
    border-radius: 50%;
    transition: left 0.3s ease;
}

#animation-toggle:checked:before {
    left: 27px;
}

#animation-status {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

#animation-toggle:checked + #animation-status {
    color: #4CAF50;
}

/* Terminal Page Title */
.terminal-container-page {
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-page-title {
    text-align: center;
}

.user {
    color: #ff5555;
    font-weight: bold;
}

.host {
    color: #D4AF37;
    font-weight: bold;
}

.command-page {
    color: #FFFFFF;
    font-weight: bold;
}

/* Description and Dividers */
.description-page {
    text-align: center;
}

.margin-page-desc {
    margin: 0 100px;
}

.styled-divider {
    width: 0%;
    height: 2px;
    background: #D4AF37;
    margin: 30px auto;
    border-radius: 5px;
    animation: expand 1s ease-in-out forwards;
}

@keyframes expand {
    from { width: 0%; }
    to { width: 80%; }
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #B89778; /* Updated gold color */
    padding: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
    text-shadow: 0 0 10px #000000, 0 0 20px #000000;
    animation: flicker 1.5s infinite alternate;
}

/* Syntax Highlighting */
.comment { color: #569CD6; font-style: italic; }
.command { color: #D4AF37; font-weight: bold; }
.parameter { color: #888888; font-weight: bold; }
.value { color: #FF5555; }
.operator { color: #C586C0; }
.variable { color: #FFA500; font-weight: bold; }
.datatype { color: #4EC9B0; }
.string { color: green; }

/* Responsive Design */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
    }

    .logo-container {
        font-size: 1.5rem;
    }

    .logo-text {
        margin-right: 20px;
    }

    .logo-page {
        width: 100px;
        margin-top: -8%;
    }

    aside {
        width: 200px;
        left: -200px;
    }

    .nav-links a {
        font-size: 1em;
        padding: 10px 15px;
    }

    .terminal-container {
        width: 90%;
        padding: 10px;
    }

    .output {
        height: 150px;
        font-size: 12px;
    }

    .margin-page-desc {
        margin: 0 50px;
    }

    .generate-btn {
        font-size: 14px;
        padding: 6px 12px;
    }

    .edr-buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .slider-container {
        flex-direction: column;
        gap: 5px;
        margin-top: 20px;
        margin-bottom: -30px;
    }

    .terminal-header .title {
        margin: 0 60px 0 40px; /* Adjusted for smaller screens */
    }

    #animation-toggle {
        width: 40px;
        height: 20px;
    }

    #animation-toggle:before {
        width: 18px;
        height: 18px;
    }

    #animation-toggle:checked:before {
        left: 20px;
    }

    #animation-status {
        font-size: 14px;
    }

    .footer-text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .burger {
        width: 25px;
        height: 20px;
    }

    aside {
        width: 180px;
        left: -180px;
    }

    .nav-links a {
        font-size: 0.9em;
        padding: 8px 12px;
    }

    .logo-container {
        font-size: 1.2rem;
    }

    .logo-text {
        margin-right: 10px;
    }

    .terminal-container {
        width: 100%;
        padding: 8px;
    }

    .output {
        height: 120px;
        font-size: 11px;
    }

    .terminal-header .title {
        margin: 0 50px 0 30px; /* Adjusted for smaller screens */
        font-size: 12px;
    }

    #copyBtnTerminal {
        width: 15px;
        height: 15px;
        right: 5px;
        top: 12px;
    }

    #copiedText {
        right: 25px;
        top: 12px;
        font-size: 12px;
    }

    .margin-page-desc {
        margin: 0 20px;
    }

    .generate-btn {
        font-size: 12px;
        padding: 5px 10px;
    }

    .slider-container {
        margin-top: 40px;
        margin-bottom: -40px;
    }

    #animation-toggle {
        width: 35px;
        height: 18px;
    }

    #animation-toggle:before {
        width: 15px;
        height: 15px;
    }

    #animation-toggle:checked:before {
        left: 18px;
    }

    #animation-status {
        font-size: 12px;
    }

    .footer-text {
        font-size: 0.9rem;
    }
}
