:root {
    --window-background: #1e1e2e;
    --window-header: #313244;
    --window-border: rgba(255, 255, 255, 0.15);
    --text-color: #cdd6f4;
    --start-button: #89b4fa;
    --start-button-hover: #b4befe;
    --close-button: #f38ba8;
    --close-button-hover: #eb6f92;
    --taskbar-background: rgba(17, 17, 27, 0.85);
    --taskbar-border: rgba(255, 255, 255, 0.1);
    --desktop-fallback: #1e1e2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--desktop-fallback);
    background-image: url('Wallpapers/bliss.jpg');
    background-size: cover;
    background-position: center;
}

#desktop {
    width: 100%;
    height: calc(100% - 45px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.shortcut {
    width: 80px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.shortcut:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.icon {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.icon-label {
    color: #ffffff;
    font-size: 12px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

#taskbar {
    width: 100%;
    height: 45px;
    background-color: var(--taskbar-background);
    backdrop-filter: blur(10px);
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    padding: 0 15px;
    justify-content: space-between;
    border-top: 1px solid var(--taskbar-border);
    z-index: 9999;
}

#start-btn {
    padding: 6px 15px;
    background-color: var(--start-button);
    border: none;
    border-radius: 4px;
    color: #11111b;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#start-btn:hover {
    background-color: var(--start-button-hover);
}

#active-apps {
    flex-grow: 1;
    margin: 0 20px;
    display: flex;
    gap: 10px;
}

#system-clock {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
}

.window {
    position: absolute;
    width: 400px;
    min-height: 300px;
    background-color: var(--window-background);
    border: 1px solid var(--window-border);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: var(--window-header);
    border-radius: 8px 8px 0 0;
    cursor: grab;
}

.window-title {
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
}

.close-btn {
    background-color: var(--close-button);
    border: none;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    cursor: pointer;
    color: transparent;
    font-size: 0;
}

.close-btn:hover {
    background-color: var(--close-button-hover);
}

.window-content {
    padding: 15px;
    color: var(--text-color);
    font-size: 13px;
}

#login-screen {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#login-prompt {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    opacity: 0.7;
}

#login-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    text-align: center;
    outline: none;
    width: 200px;
}

#login-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    padding: 5px 18px;
    cursor: pointer;
    margin-top: 4px;
}

#login-btn:hover {
    background: rgba(255,255,255,0.08);
}

#explorer-body {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px;
}

.explorer-item {
    width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
}

.explorer-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.explorer-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 4px;
}

.explorer-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.explorer-item span {
    color: var(--text-color);
    font-size: 11px;
    word-break: break-word;
}

.start-menu-box {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    
    position: absolute;
    bottom: 55px;
    left: 15px;
    width: 300px;
    height: 400px;
    background-color: rgba(30, 30, 46, 0.9);
    border: 1px solid var(--window-border);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9998;
    color: var(--text-color);
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.start-menu-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-content {
    display: flex;
    width: 100%;
    height: calc(100% - 40px); 
    gap: 10px;
}

.apps-list {
    flex: 1; 
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Alinhamento horizontal do ícone + texto no menu */
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.menu-item-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.menu-item span {
    font-size: 13px;
    color: var(--text-color);
}

.menu-footer {
    width: 100%;
    height: 35px;
    display: flex;
    justify-content: flex-end; /* Alinha o botão à direita estilo Windows 7 */
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Divisória horizontal */
    padding-top: 8px;
}

.system-panel {
    width: 110px; 
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.08); 
    padding-left: 12px;
}

.panel-header {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 4px;
}

.panel-item {
    font-size: 13px;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.panel-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--start-button);
}

#shutdown-btn {
    padding: 4px 12px;
    background-color: var(--close-button);
    border: none;
    border-radius: 4px;
    color: #11111b;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s;
}

#shutdown-btn:hover {
    background-color: var(--close-button-hover);
}

#window-welcome .window-content h2 {
    color: var(--text-color);
}

#window-welcome .window-content p {
    color: var(--text-color);
    opacity: 0.7;
}

