@font-face {
    font-family: Splatfont2;
    src: url("Splatoon2.otf");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Splatfont2', Courier, monospace;
    user-select: none;
}

body {
    background-image: url("splatbg2.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 2000px;
    height: 100vh;
    overflow: hidden;
    color: #c9d1d9;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #30363d;
    padding: 0 15px;
    font-size: 14px;
    color: #8b949e;
    position: relative;
    z-index: 7998;
}

.left-menu, .right-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

#active-app-name {
    font-weight: bold;
    color: #c9d1d9;
}

.menu-item:hover, .status-item:hover {
    color: #ffffff;
    cursor: pointer;
}

.desktop {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.icon {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-img {
    font-size: 40px;
    margin-bottom: 5px;
}

.icon-text {
    font-size: 12px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
}

.window {
    position: absolute;
    top: 100px;
    left: 150px;
    width: 600px;
    height: 400px;
    min-width: 300px;
    min-height: 200px;
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid #30363d;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    resize: both;
    overflow: hidden; 
}

.hidden {
    display: none;
}

.window-header {
    height: 30px;
    min-height: 30px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    position: relative;
    cursor: move; 
    flex-shrink: 0;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.close { background-color: #ff5f56; }
.minimize { background-color: #ffbd2e; }
.maximize { background-color: #27c93f; }

.window-title {
    position: absolute;
    width: 100%;
    text-align: center;
    left: 0;
    pointer-events: none;
    font-size: 14px;
    color: #8b949e;
}

.window-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    color: #ffffff;
}
.window-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}
.menu-container {
    position: relative;
    display: inline-block;
}

.menu-trigger {
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.menu-trigger:hover, .menu-trigger.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dropdown {
    position: absolute;
    top: 25px;
    left: 0;
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid #30363d;
    border-radius: 6px;
    min-width: 180px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 99998;
    padding: 5px 0;
}

.dropdown-item {
    padding: 5px 15px;
    cursor: pointer;
    color: #c9d1d9;
}

.dropdown-item:hover {
    background: #1f6feb;
    color: #ffffff;
}

.dropdown-item.disabled {
    color: #484f58;
    cursor: not-allowed;
}

.dropdown-item.disabled:hover {
    background: transparent;
}

.dropdown-item.danger:hover {
    background: #da3633;
}

.dropdown-divider {
    height: 1px;
    background: #30363d;
    margin: 5px 0;
}

.tabs-container {
    display: flex;
    border-bottom: 1px solid #30363d;
    margin-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #8b949e;
    padding: 8px 15px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.tab-btn:hover {
    color: #c9d1d9;
}

.tab-btn.active {
    color: #58a6ff;
    border-bottom: 2px solid #58a6ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.file-browser-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: -20px;
}

.breadcrumb-bar {
    background: #161b22;
    padding: 8px 15px;
    border-bottom: 1px solid #30363d;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.breadcrumb-btn:hover:not(:disabled) {
    background: #30363d;
    color: #ffffff;
}

.breadcrumb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.breadcrumb-path {
    color: #8b949e;
    font-family: monospace;
}

.file-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    overflow-y: auto;
}

.file-item {
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-icon {
    font-size: 35px;
    margin-bottom: 5px;
}

.file-name {
    font-size: 12px;
    text-align: center;
    word-break: break-word;
    color: #c9d1d9;
}

.file-content-view {
    padding: 20px;
    display: none;
    height: 100%;
    overflow-y: auto;
    color: #3fb950;
    white-space: pre-wrap;
}

#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050505;
    color: #3fb950;
    font-size: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: opacity 0.8s ease-out;
}

#boot-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#boot-cursor {
    animation: blink 1s step-end infinite;
    display: inline-block;
    margin-left: 4px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0d1117;
    background-image: radial-gradient(circle, #1a202c 0%, #000000 100%);
    z-index: 7999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#login-screen.unlocked {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.login-box {
    background: rgba(22, 27, 34, 0.8);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #30363d;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px auto;
    border-radius: 50%; 
    overflow: hidden; 
    background: #161b22; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); 
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.username {
    color: #c9d1d9;
    margin-bottom: 20px;
    font-size: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

#password-input {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #58a6ff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: inherit;
    outline: none;
    width: 200px;
}

#password-input:focus {
    border-color: #58a6ff;
}

.input-group button {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.input-group button:hover {
    background: #30363d;
    color: #ffffff;
}

#password-hint {
    color: #ff5f56;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    height: 15px;
}

#password-hint.visible {
    opacity: 1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 6000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-box {
    background: rgba(22, 27, 34, 0.95);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    min-width: 320px;
    max-width: 400px;
}

.modal-box h3 {
    color: #c9d1d9;
    margin-bottom: 10px;
}

.modal-box p {
    color: #8b949e;
    margin-bottom: 25px;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.modal-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: filter 0.2s;
}

.modal-btn:hover {
    filter: brightness(1.2);
}

.modal-btn.cancel {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
}

.modal-btn.confirm {
    color: #ffffff;
}
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050505;
    z-index: 8000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-container {
    text-align: center;
    width: 350px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

#progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #58a6ff;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
    transition: width 0.2s ease-out;
}

.faded-text {
    color: #8b949e;
    font-size: 12px;
    font-family: Splatfont2;
    opacity: 0.6;
}
.messaging-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: -20px; 
    background: #0d1117;
}

.msg-top-bar {
    height: 40px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    color: #8b949e;
}

.msg-controls span {
    cursor: pointer;
    font-size: 16px;
    transition: filter 0.2s;
}

.msg-controls span:hover {
    filter: brightness(1.5);
}

.msg-body {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}

.msg-sidebar {
    width: 160px;
    border-right: 1px solid #30363d;
    background: rgba(22, 27, 34, 0.5);
    overflow-y: auto;
}

.msg-contact {
    padding: 12px 10px;
    cursor: pointer;
    border-bottom: 1px solid #30363d;
    color: #8b949e;
    font-size: 13px;
    transition: background 0.2s;
}

.msg-contact:hover {
    background: rgba(255, 255, 255, 0.05);
}

.msg-contact.active {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
    border-left: 3px solid #58a6ff;
}

.msg-chat-area {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.msg-bubble img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: 8px;
    display: block;
}

.msg-bubble.received {
    align-self: flex-start;
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-top-left-radius: 2px;
}

.msg-bubble.sent {
    align-self: flex-end;
    background: #1f6feb;
    color: #ffffff;
    border-top-right-radius: 2px;
}

.msg-sender-name {
    font-size: 10px;
    color: #8b949e;
    margin-bottom: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.msg-input-container {
    padding: 15px;
    background: rgba(22, 27, 34, 0.8);
    border-top: 1px solid #30363d;
    display: flex;
    flex-direction: column;
}

.msg-error-text {
    color: #ff5f56;
    font-size: 12px;
    text-align: center;
    margin-bottom: 8px;
    opacity: 1;
    transition: opacity 0.3s;
    height: 15px; 
}

.msg-error-text.hidden {
    opacity: 0;
    pointer-events: none;
}

.msg-input-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.msg-input {
    flex-grow: 1;
    background: #0d1117;
    border: 1px solid #30363d;
    color: #c9d1d9;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: inherit;
    outline: none;
}

.msg-input:focus {
    border-color: #58a6ff;
}

.msg-btn {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.msg-btn:hover {
    background: #30363d;
    color: #ffffff;
}

.msg-btn.send-btn {
    background: #1f6feb;
    border-color: #1f6feb;
    font-weight: bold;
}

.msg-btn.send-btn:hover {
    background: #388bfd;
}

.playlist-container { 
    padding: 10px; 
    height: 100%; 
    color: #c9d1d9; 
}
.playlist-header { 
    display: flex; 
    align-items: center; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #30363d; 
    padding-bottom: 15px; 
}
.playlist-header img { 
    width: 80px; 
    height: 80px; 
    border-radius: 8px; 
    margin-right: 15px; 
    object-fit: cover; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); 
}
.playlist-title { margin: 0; 
    color: #ffffff; 
    font-size: 24px; 
}
.playlist-desc { 
    color: #8b949e; 
    margin: 5px 0 0 0; 
    font-size: 13px; 
}
.song-list { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}
.song-item { 
    display: flex; 
    align-items: center; 
    padding: 8px; 
    border-radius: 6px; 
    transition: background 0.2s; 
    cursor: pointer; 
    text-decoration: none;
    gap: 15px;
}
.song-item:hover { 
    background: rgba(255, 255, 255, 0.1); 
}
.song-number { 
    color: #8b949e; 
    width: 25px; 
    text-align: center; 
    font-size: 14px; 
}
.song-art { 
    width: 40px; 
    height: 40px; 
    border-radius: 4px;
    object-fit: cover; 
}
.song-info { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.song-title { 
    color: #ffffff; 
    font-size: 14px; 
    font-weight: bold; 
    margin-bottom: 2px; 
}
.song-artist {
     color: #8b949e; 
     font-size: 12px; 
}
.spotify:hover{
    color:#1DB954;
}
.youtube:hover{
    color:#FF0000
}
.sysinfo-img { 
    margin: 0 auto 20px auto; 
    max-width: 100%; 
    height: auto; 
    object-fit: contain; 
}