body {
    background-image: url('../assets/images/background.avif');
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
}

.clickable {
    user-select: none;
    cursor: pointer;
}

.desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
}

.terminal {
    animation-name: open;
    animation-duration: 0.3s;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px;
    border: solid #a6a3ca;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    backdrop-filter: blur(4px);
    position: absolute;
    box-sizing: border-box;
}

@keyframes open {
    from {
        opacity: 0;
        scale: 0.1;

    }

    to {
        opacity: 1;
        scale: 1.0;
    }
}

.terminalNavBar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
    margin-left: 0px;
    font-size: 15px;
    font-family: sans-serif;
    user-select: none;
    cursor: grab;
}

.terminalNavBar:active {
    cursor: grabbing;
}

.terminalNavBar .title {
    display: flex;
    align-items: center;
}

.terminalNavBar .title img {
    height: 20px;
    margin: 4px;
}

.nav-icon img {
    margin: 2px;
    display: flex;
    align-items: center;
    height: 20px;
    transition-duration: 300ms;
}

.separator {
    position: relative;
    left: 50%;
    transform: translate(-50%);
    width: 99%;
    height: 1px;
    background-color: #a6a3ca;
    margin: 3px 0;
}

.nav-icon img:hover {
    scale: 1.05;
}

.buttons {
    display: flex;
    align-items: center;
}

.terminalBody {
    overflow: auto;
    margin: 10px;
    margin-left: 4px;
    font-family: Consolas, monospace;
    font-size: 1.3ch;
    height: 93%;
}

.caret {
    position: relative;
    top: 0%;
    transform: translate(30%, 18%);
    display: inline-block;
    background-color: white;
    width: 11px;
    height: 20px;
    animation-name: blink;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

*::-webkit-scrollbar {
    width: 16px;
}

*::-webkit-scrollbar-track {
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb {
    height: 56px;
    border-radius: 8px;
    border: 4px solid transparent;
    background-clip: content-box;
    background-color: #888;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.lsDiv {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.folderLSDiv {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

body::-webkit-scrollbar {
    display: none;
}

/* Real Nano Authentic Theme */
.nano-container {
    display: flex;
    flex-direction: column;
    height: 93%;
    margin: 10px 4px 4px 4px;
    font-family: Consolas, monospace;
    font-size: 1.3ch;
    font-weight: normal;
    color: white;
    box-sizing: border-box;
}

.nano-header {
    background-color: white;
    color: black;
    padding: 0 4px;
    display: flex;
    justify-content: space-between;
    font-family: Consolas, monospace;
    font-size: 1.3ch;
    font-weight: normal;
    user-select: none;
}

.nano-textarea {
    flex: 1;
    background: transparent;
    color: white;
    border: none;
    outline: none;
    resize: none;
    font-family: Consolas, monospace;
    font-size: 1.3ch;
    font-weight: normal;
    line-height: 1.2;
    padding: 6px 0;
    white-space: pre;
    width: 100%;
    box-sizing: border-box;
}

.nano-status {
    text-align: center;
    color: white;
    font-family: Consolas, monospace;
    font-size: 1.3ch;
    font-weight: normal;
    min-height: 1.4em;
    user-select: none;
}

.nano-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    margin-top: 2px;
    padding: 2px 0;
}

.nano-shortcut {
    display: inline-flex;
    align-items: center;
    color: white;
    font-family: Consolas, monospace;
    font-size: 1.3ch;
    font-weight: normal;
    margin: 0 18px;
    cursor: pointer;
}

.nano-badge {
    background-color: white;
    color: black;
    font-weight: normal;
    padding: 0 3px;
    margin-right: 4px;
    display: inline-block;
}

/* Generic Window & App Window Styles */
.app-window {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

@keyframes closeWin {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.85);
    }
}

.window-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100% - 32px);
}

/* Media Viewer Containers (Image & Video) */
.media-viewer-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.media-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-bottom: 6px;
}

.media-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(166, 163, 202, 0.4);
    color: #ffffff;
    font-family: Consolas, monospace;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}

.media-btn.active {
    background: #a6a3ca;
    color: #000000;
    font-weight: bold;
}

.media-viewport {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 1px solid rgba(166, 163, 202, 0.2);
    position: relative;
    padding: 8px;
}

.image-viewport {
    cursor: grab;
}

.image-viewport:active {
    cursor: grabbing;
}

.viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
}

.viewer-video {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 4px;
    background: #000;
    outline: none;
}

.media-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px 0 8px;
    font-size: 11px;
    font-family: Consolas, monospace;
    color: #a6a3ca;
    user-select: none;
}

.media-info-name {
    font-weight: bold;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 50%;
}

