/* terminal.css */


.terminal {
    background-color: #000;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.terminal::before {
    content: "Terminal v1.0";
    display: block;
    color: #0f0;
    opacity: 0.5;
    font-size: 0.8em;
    margin-bottom: 10px;
    text-align: right;
}

.output {
    height: 75vh;
    overflow-y: auto;
    color: #0f0;
    margin-bottom: 10px;
    padding-right:10px;
    line-height: 1.4;
    scrollbar-width: thin;
    scrollbar-color: #0f0 #000;
    word-break: break-all;
    overflow-x: hidden;
}

.output::-webkit-scrollbar {
    width: 1px;
}

.output::-webkit-scrollbar-track {
    background: #000;
}

.output::-webkit-scrollbar-thumb {
    background-color: #0f0;
    border-radius: 3px;
}

.input-container {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.input-wrapper {
    width: 100%;
    display:flex;
    justify-content: space-between;
    position: relative;
    flex-grow: 1;
}

.prompt {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #0f0;
    pointer-events: none;
    
}

.input {
    width: 67%;
    background-color: transparent;
    border: 1px solid #0f0;
    color: #0f0;
    padding: 8px 10px 8px 30px;
    outline: none;
    font-family: "EB Garamond", serif;
    border-radius: 4px;
    caret-color: #0f0;
    transition: all 0.2s;
    
}

.input:focus {
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    border-color: #0f0;
}

/* Анимация курсора */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.input::after {
    content: "|";
    position: absolute;
    right: 10px;
    animation: blink 1s infinite;
}

.button {
    display:flex;
    background-color: #000;
    border: #0f0 1px solid;
    color: #0f0;
    padding: 8px 10px;
    cursor: pointer;
    font-family: "EB Garamond", serif;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    align-items: center;
    text-align: center;
}

.button:hover {
    background-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 255, 0, 0.3);
}

.button:active {
    transform: translateY(0);
}

.task {
    display:flex;
    margin: 8px 0;
    position: relative;
    padding-left: 20px;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    border-width: 1px;
    border-style: solid;
    border-color:rgba(0,0,0,0);
    
    transition: 0.2s;
}

.task::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #0f0;
    transition: 0.2s;
}

.response {
    margin: 8px 0;
    color: #0a0;
    padding-left: 20px;
    border-left: 2px solid #0a0;
    margin-left: 10px;
    word-break: break-word;
}

/* Анимация появления новых команд */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.task, .response {
    animation: fadeIn 0.3s ease-out;
}

.selected {
    background-color: #000;
    /*rgba(0, 255, 0, 0.9);*/
    border-color: #0f0;
    padding-left:40px;
    color:#0f0;
    transition: 0.2s;
    border-radius: 4px;
}
.selected::before{
    left:20px;
    color:#0f0;
    transition:0.2s;
}

.task_btns {
    width:100%;
    display:flex;
    visibility: hidden;
    justify-content: space-between;
    align-items: stretch;
    font-size:0.9em;
    font-weight: 600;
}

.closed {
    /*border-bottom:#0f0 1px solid;*/
    background-color: rgba(0, 255, 0, 0.2);
    border-radius: 4px;
    padding-left:40px;
    transition: all 0.2s;
}
.closed::before {
    left:20px;
    content:'+';
}

.focus_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    height: 80vh;
}

.focus-container {
    background-color: #000;
    color: #0f0;
    font-size: 3em;
    font-weight: 800;
    padding: 10px;
    border-radius: 4px;
    display: inline-block;
    
}

.focus-text {
    color: #fff;
}

.focus-cursor {
    margin-left:5px;
    display: inline-block;
    width: 8px;
    height: 30px;
    background-color: #fff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

#close_focus_btn {
    color:#fff;
    border: #fff 1px solid;
    background-color: #000;
    
}

.task_timer {
    color: #fff;
    opacity: 0.7;
    font-size:0.5em;
    padding-left:20px;
    padding-right:20px;
    min-width: 30px;
    text-align: center;
    pointer-events: none;
}