/* Terminal Styles */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-container {
    background-color: #101729;
    border-radius: 10px;
    border: 1px solid #1a222f;
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-width: 450px;
    max-width: 600px;
    width: 90%;
    font-family: "Courier New", monospace;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.terminal-container.maximized {
    width: 90vw;
    height: 80vh;
    max-width: none;
}

.top-side {
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 1px solid #212b3f;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.red-circle, .yellow-circle, .green-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.red-circle {
    background-color: #ef4444;
}

.red-circle:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

.yellow-circle {
    background-color: #eab308;
}

.yellow-circle:hover {
    background-color: #ca8a04;
    transform: scale(1.1);
}

.green-circle {
    background-color: #22c55e;
    margin-right: 15px;
}

.green-circle:hover {
    background-color: #16a34a;
    transform: scale(1.1);
}

.terminal-title {
    color: #fff;
    margin: 0;
    font-size: 14px;
    flex-grow: 1;
    text-align: center;
}

.main-side {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.line, .input-line, .action-line {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-line {
    flex-wrap: wrap;
}

.dollar {
    color: #2282f4;
    font-weight: bold;
    min-width: 80px;
}

.terminal-text {
    color: #fff;
}

.terminal-input {
    background-color: transparent;
    border: none;
    color: #fff;
    font-family: "Courier New", monospace;
    font-size: 14px;
    outline: none;
    border-bottom: 1px solid #2282f4;
    padding: 5px;
    flex: 1;
    min-width: 200px;
}

.terminal-input::placeholder {
    color: #666;
}

.terminal-input:focus {
    border-bottom-color: #22c55e;
}

.terminal-button {
    background-color: #2282f4;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 10px;
}

.terminal-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.terminal-button.secondary {
    background-color: #374151;
}

.terminal-button.secondary:hover {
    background-color: #4b5563;
}

.action-line {
    margin-top: 10px;
    justify-content: flex-end;
}

.status-text {
    color: #fbbf24;
}

.success-text {
    color: #22c55e;
    animation: pulse-success 2s infinite;
}

.error-text {
    color: #ef4444;
    animation: pulse-error 2s infinite;
}

.connecting-text {
    color: #2282f4;
    animation: connecting-dots 2s infinite;
}

.terminal-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #101729;
    color: #fff;
    border: 1px solid #1a222f;
    padding: 12px 20px;
    border-radius: 25px;
    font-family: 'ADLaM Display', serif;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.terminal-toggle-btn:hover {
    background-color: #1a222f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes pulse-success {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulse-error {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes connecting-dots {
    0% {
        content: '';
    }
    25% {
        content: '.';
    }
    50% {
        content: '..';
    }
    75% {
        content: '...';
    }
    100% {
        content: '';
    }
}

/* Responsive */
@media (max-width: 768px) {
    .terminal-container {
        min-width: 320px;
        width: 95%;
        padding: 15px;
    }
    
    .terminal-input {
        min-width: 150px;
        width: 100%;
        margin-top: 5px;
    }
    
    .input-line {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-line {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .terminal-toggle-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
    }
}