.console-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 400px;
    background-color: #1e1e2e;
    border: 1px solid #3a3a4a;
    border-radius: 12px;
    box-shadow: 
        0 0 0 1px rgba(100, 108, 255, 0.08),
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(100, 108, 255, 0.05);
    z-index: 1001;
    overflow: hidden;
    transition: none;
}

.console-modal.opening {
    animation: consoleEnter 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.console-modal.closing {
    animation: consoleExit 0.25s ease-out forwards;
}

@keyframes consoleEnter {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0;
        filter: blur(8px);
        box-shadow: 
            0 0 0 1px rgba(100, 108, 255, 0),
            0 0 0 rgba(0, 0, 0, 0),
            0 0 120px rgba(100, 108, 255, 0.3);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.03);
        opacity: 1;
        filter: blur(0);
        box-shadow: 
            0 0 0 1px rgba(100, 108, 255, 0.15),
            0 30px 80px rgba(0, 0, 0, 0.7),
            0 0 60px rgba(100, 108, 255, 0.15);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        filter: blur(0);
        box-shadow: 
            0 0 0 1px rgba(100, 108, 255, 0.08),
            0 20px 60px rgba(0, 0, 0, 0.6),
            0 0 80px rgba(100, 108, 255, 0.05);
    }
}

@keyframes consoleExit {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        filter: blur(0);
        box-shadow: 
            0 0 0 1px rgba(100, 108, 255, 0.08),
            0 20px 60px rgba(0, 0, 0, 0.6),
            0 0 80px rgba(100, 108, 255, 0.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0;
        filter: blur(2px);
        box-shadow: 
            0 0 0 1px rgba(100, 108, 255, 0),
            0 5px 15px rgba(0, 0, 0, 0.4),
            0 0 0 rgba(100, 108, 255, 0);
    }
}

.console-header {
    background-color: #252536;
    padding: 12px 15px;
    border-bottom: 1px solid #3a3a4a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.console-title {
    color: #646cff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.console-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.console-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.console-btn:hover {
    transform: scale(1.15);
    filter: brightness(1.3);
}

.console-btn:active {
    transform: scale(0.9);
}

.console-close {
    background-color: #ff6464;
    box-shadow: 0 0 6px rgba(255, 100, 100, 0.3);
}

.console-close:hover {
    background-color: #ff4747;
    box-shadow: 0 0 12px rgba(255, 100, 100, 0.5);
}

.console-minimize {
    background-color: #ffbd44;
    box-shadow: 0 0 6px rgba(255, 189, 68, 0.3);
}

.console-minimize:hover {
    background-color: #ffb22e;
    box-shadow: 0 0 12px rgba(255, 189, 68, 0.5);
}

.console-maximize {
    background-color: #64ffa3;
    box-shadow: 0 0 6px rgba(100, 255, 163, 0.3);
}

.console-maximize:hover {
    background-color: #4dff93;
    box-shadow: 0 0 12px rgba(100, 255, 163, 0.5);
}

.console-modal.minimized {
    height: 200px !important;
    width: 600px !important;
    transform: none !important;
}

.console-modal.minimized .console-body {
    display: block !important;
    height: calc(100% - 45px);
}

.console-modal.maximized {
    width: 95% !important;
    height: 95% !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.console-minimized-indicator {
    display: none;
}

.console-modal.minimized .console-minimized-indicator {
    opacity: 1;
}

.console-body {
    height: calc(100% - 45px);
    padding: 15px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #e2e2e2;
    background-color: #1e1e2e;
    scrollbar-width: thin;
    scrollbar-color: #646cff rgba(30, 30, 46, 0.8);
    scroll-behavior: smooth;
}

.console-prompt {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.console-prefix {
    color: #646cff;
    margin-right: 8px;
}

.console-input {
    background: transparent;
    border: none;
    color: #e2e2e2;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.console-output pre,
pre.console-output {
    margin: 0;
    padding: 8px;
    font-family: monospace;
    font-size: 7px;
    line-height: 1.1;
    white-space: pre;
    background: transparent;
    border: none;
    color: #646cff;
    /* text-shadow: 0 3px 6px rgba(100, 108, 255, 0.3); */
}

.console-body .console-output {
    margin-bottom: 6px;
}

.console-command {
    color: #64ffa3;
}

.console-command .comment {
    color: #808080;
}

.console-error {
    color: #ff6464;
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.1), rgba(255, 100, 100, 0.05));
    border: 1px solid #ff6464;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 2px currentColor;
}

.console-warning {
    color: #ffbd44;
    background: linear-gradient(135deg, rgba(155, 155, 0, 0.1), rgba(255, 189, 68, 0.05));
    border: 1px solid #ffbd44;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 2px currentColor;
}

.console-success {
    color: #64ffa3;
    background: linear-gradient(135deg, rgba(100, 255, 163, 0.1), rgba(100, 255, 163, 0.05));
    border: 1px solid #64ffa3;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 2px currentColor;
}

.console-info {
    color: #969eff;
    background: linear-gradient(135deg, rgba(150, 158, 255, 0.1), rgba(150, 158, 255, 0.05));
    border: 1px solid #969eff;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 2px currentColor;
}

.console-link-error {
    color: #ff6464;
}

.console-link-warning {
    color: #ffbd44;
}

.console-link-success {
    color: #64ffa3;
}

.console-link:hover {
    filter: brightness(1.3);
    text-decoration: underline;
}

.console-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1000;
    transition: background-color 0.4s ease;
}

.console-overlay.active {
    background-color: rgba(0, 0, 0, 0.5);
}

.learn-more-link {
    color: #ff6464;
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.1), rgba(255, 100, 100, 0.05));
    border: 1px solid #ff6464;
    padding: 2px 8px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    margin-left: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 2px rgba(255, 100, 100, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.learn-more-link:hover {
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2), rgba(255, 100, 100, 0.15));
    border-color: #ff8484;
    color: #ff8484;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 100, 100, 0.4);
    text-decoration: none;
}

.learn-more-link:active {
    transform: translateY(0);
    box-shadow: 0 0 2px rgba(255, 100, 100, 0.3);
}

.learn-more-link::before {
    content: "\f129";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 10px;
    margin-right: 4px;
}