* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.08;
}

.noise::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
    animation: grain 0.5s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

.center-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out;
}

.loader-wrapper {
    width: 300px;
    text-align: center;
    position: relative;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#loading-phase, #enter-phase {
    position: absolute;
    width: 100%;
    transition: opacity 0.8s ease-in-out;
}

#loading-text {
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: lowercase;
    letter-spacing: 2px;
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background-color: #222;
    position: relative;
    overflow: hidden;
}

#enter-text {
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
    color: #fff;
}

#enter-text:hover {
    color: #888;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.desktop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050505;
    z-index: 10;
    transition: opacity 1.5s ease-in-out;
}

.desktop.hidden {
    display: block !important;
    opacity: 0;
    pointer-events: none;
}

.window {
    position: absolute;
    background: #1a1a1a;
    border: 2px solid;
    border-color: #333 #000 #000 #333;
    padding: 2px;
    box-shadow: 1px 1px 0 0 #000;
}

.window-titlebar {
    background: linear-gradient(90deg, #111, #333);
    color: #eee;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 12px;
}

.titlebar-text {
    letter-spacing: 1px;
}

.titlebar-controls {
    display: flex;
    gap: 2px;
}

.win-btn {
    background: #222;
    border: 1px solid;
    border-color: #444 #000 #000 #444;
    color: #eee;
    width: 16px;
    height: 14px;
    font-size: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

.window-body {
    padding: 15px;
    color: #ccc;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-pfp {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #333;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.display-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
}

.username {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.owner-tag {
    font-size: 11px;
    color: #5865F2;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.status-container {
    margin-top: 15px;
    font-size: 12px;
}

.status-dot-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

#status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #555;
    border: 1px solid #000;
}

#status-dot.online { background-color: #43b581; }
#status-dot.idle { background-color: #faa61a; }
#status-dot.dnd { background-color: #f04747; }
#status-dot.offline { background-color: #747f8d; }

.divider {
    height: 1px;
    background: #333;
    margin: 10px 0;
}

#activity-content {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    border: 1px solid #333;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-name {
    font-weight: bold;
    color: #eee;
}

.activity-details, .activity-state {
    color: #888;
    font-size: 11px;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background: #111;
    border-top: 2px solid #333;
    display: flex;
    align-items: center;
    padding: 2px;
    z-index: 100;
}

.start-btn {
    height: 22px;
    background: #222;
    border: 2px solid;
    border-color: #444 #000 #000 #444;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding: 0 5px;
    cursor: pointer;
}

.tray {
    margin-left: auto;
    border: 2px solid;
    border-color: #000 #444 #444 #000;
    padding: 0 10px;
    height: 22px;
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #fff;
}

.widget-container {
    background: #0d0d0d;
    border: 1px solid #333;
    color: #fff;
    width: 100%;
    padding: 15px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.discord-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 100%;
}

.server-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #333;
    object-fit: cover;
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-name {
    font-weight: bold;
    font-size: 18px;
    color: #fff;
}

.server-counts {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-btn {
    width: 100%;
    padding: 8px;
    background-color: #222;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 2px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.1s;
    border: 1px solid #444;
}

.join-btn:hover {
    background-color: #333;
}

.join-btn:active {
    transform: translateY(1px);
}
