@import url("https://fonts.googleapis.com/css2?family=Jersey+10&family=Jersey+15&family=Pixelify+Sans:wght@400..700&display=swap");

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    background-image: url("https://wallpaperaccess.com/full/385739.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Pixelify Sans", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.barra-tarefas{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    padding: 0 10px;
    background: navy;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    z-index: 1000;
    border-top: 2px solid #4a4a8a;
}

#relogio{
    color: white;
    font-size: 14px;
    min-width: 50px;
}

.lado-direito{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* tentei copia a mesma cores do botão start do win xp */
#start-btn{
    height: 32px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: -10px;
    cursor: pointer;
    background: linear-gradient(to bottom, #5fd35f 0%, #2ca02c 50%, #303430 100%);
    border-top: 2px solid #9aff9a;
    border-left: 2px solid #9aff9a;
    border-right: 2px solid #145914;
    border-bottom: 2px solid #145914;
    border-radius: 0 12px 12px 0;
    color: white;
    font-weight: bold;
    font-size: 14px;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4);
    transition: filter 0.1s;
}

#start-btn:hover{
    filter: brightness(1.08);
}

#start-btn:active{
    border-top: 2px solid #145914;
    border-left: 2px solid #145914;
    border-right: 2px solid #9aff9a;
    border-bottom: 2px solid #9aff9a;
}

#start-btn img{
    width: 18px;
    height: 18px;
}

#apps-abertos{
    display: flex;
    gap: 6px;
    margin-left: 8px;
    flex: 1;
    overflow-x: auto;
}

.app-aberto{
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 4px 8px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    transition: all 0.2s;
    min-width: 40px;
    justify-content: center;
}

.app-aberto:hover{
    background: rgba(255,255,255,0.25);
}

.app-aberto img{
    width: 20px;
    height: 20px;
}

#chatbot-btn{
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

#chatbot-btn:hover{
    transform: scale(1.1);
}

#chatbot-btn img{
    width: 100%;
    height: 100%;
}

#chat-header{
    background: navy;
    color: white;
    padding: 8px;
    font-weight: bold;
}

#chat-mensagens{
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: white;
    border-bottom: 2px solid gray;
}

#chat-input-area{
    display: flex;
    padding: 8px;
    gap: 5px;
}

#chat-input{
    flex: 1;
    padding: 5px;
    font-family: inherit;
}

#painel-chatbot{
    position: fixed;
    bottom: 45px;
    right: 10px;
    width: 300px;
    height: 400px;
    background: #ece9d8;
    border: 2px solid black;
    display: none;
    box-shadow: 4px 4px 0 black;
    z-index: 999;
    flex-direction: column;
}

#enviar-chat{
    padding: 5px 10px;
    cursor: pointer;
    background: #d4d0c8;
    border: 1px solid #808080;
}

.desktop{
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 10px;
    height: calc(100vh - 40px);
    overflow-y: auto;
}

#desktopApps{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.desktop-icon{
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
    border-radius: 4px;
}

.desktop-icon:hover{
    background: rgba(0, 0, 128, 0.2);
}

.desktop-icon img{
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.desktop-icon p{
    margin: 6px 0 0 0;
    font-size: 12px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.janela{
    position: absolute;
    top: 100px;
    left: 100px;
    width: 350px;
    background: white;
    border: 2px solid black;
    box-shadow: 4px 4px 0 black;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.janela.maximizada{
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 40px) !important;
}

.titulo-janela{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px;
    background: navy;
    color: white;
    font-weight: bold;
    cursor: move;
    user-select: none;
    flex-shrink: 0;
}

.botoes-janela{
    display: flex;
    gap: 6px;
}

.botao{
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid black;
    cursor: pointer;
    transition: transform 0.1s;
}

.botao:hover{
    transform: scale(1.15);
}

.botao:active{
    transform: scale(0.9);
}

.fechar{
    background: #ff4444;
}

.minimizar{
    background: #ffcc00;
}

.maximizar{
    background: #44ff44;
}

.conteudo-janela{
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: white;
}

.conteudo-janela h2{
    color: navy;
    margin-bottom: 10px;
}

.conteudo-janela h3{
    color: navy;
    margin: 10px 0 8px 0;
    font-size: 16px;
}

.conteudo-janela p{
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.conteudo-janela a{
    color: #0066cc;
    text-decoration: underline;
    cursor: pointer;
}

.conteudo-janela a:hover{
    color: #0044aa;
}

.conteudo-janela input{
    width: 100%;
    padding: 6px;
    margin: 6px 0;
    border: 1px solid #ccc;
    font-family: inherit;
}

.conteudo-janela button{
    padding: 6px 12px;
    margin: 4px 4px 4px 0;
    cursor: pointer;
    background: #d4d0c8;
    border: 2px outset #dfdfdf;
    font-family: inherit;
    transition: all 0.1s;
}

.conteudo-janela button:hover{
    background: #e0dcc8;
}

.conteudo-janela button:active{
    border-style: inset;
}

.conteudo-janela hr{
    margin: 12px 0;
    border: none;
    border-top: 1px solid #ccc;
}

#menu-start{
    position: fixed;
    bottom: 40px;
    left: 0;
    width: 420px;
    height: 350px;
    background: #ece9d8;
    border: 2px solid #245edb;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.4);
    display: flex;
    z-index: 999;
}

#start-esquerda{
    width: 60%;
    background: white;
    padding: 10px;
    overflow-y: auto;
}

#start-direita{
    width: 40%;
    background: #d6e4ff;
    padding: 10px;
    border-left: 2px solid #8aa8ff;
    overflow-y: auto;
}

.item-start {
    padding: 8px;
    cursor: pointer;
    user-select: none;
    border-radius: 2px;
    transition: all 0.1s;
    font-size: 13px;
}

.config-item{
    padding: 8px;
    cursor: pointer;
    user-select: none;
    border-radius: 2px;
    transition: all 0.1s;
    font-size: 13px;
}

.item-start:hover{
    background: navy;
    color: white;
}

.config-item:hover{
    background: navy;
    color: white;
}

#imagem-nasa{
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border: 2px solid #808080;
    margin: 10px 0;
}

#titulo-nasa{
    color: navy;
    font-size: 16px;
    margin: 10px 0;
}

#nasa-texto{
    background: #f5f5f5;
    border: 1px inset #c0c0c0;
    padding: 8px;
    font-size: 12px;
    max-height: 150px;
    overflow-y: auto;
    line-height: 1.4;
}

#gato .conteudo-janela{
    text-align: center;
}

#imagem-gato{
    max-width: 100%;
    height: auto;
    border: 2px solid #ccc;
    margin: 10px 0;
}

#minitube-app{
    width: 800px;
    height: 600px;
}

#minitube-app .conteudo-janela{
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.search-box{
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.search-box input{
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.search-box button{
    padding: 8px 16px;
}

#videos{
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 10px;
}

.video-card{
    background: #ece9d8;
    border: 2px solid black;
    cursor: pointer;
    transition: transform 0.2s;
}

.video-card:hover{
    transform: scale(1.02);
}

.video-card img{
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.video-card h3{
    font-size: 12px;
    padding: 6px;
    margin: 0;
    color: navy;
}

#player{
    display: none;
    flex: 1;
    position: relative;
}

.video-fullscreen{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-fullscreen iframe{
    width: 90%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 8px;
    max-height: 85%;
}

#voltar-minitube{
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 6px 12px;
    cursor: pointer;
    background: #d4d0c8;
    border: 2px outset #dfdfdf;
}

.pomodoro-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pomodoro-display{
    text-align: center;
    margin: 20px 0;
}

#pomodoro-time{
    font-size: 48px;
    font-weight: bold;
    color: navy;
    font-family: "Courier New", monospace;
    letter-spacing: 2px;
}

#pomodoro-status{
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

.pomodoro-buttons{
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pomodoro-buttons button{
    padding: 10px 20px;
    font-size: 14px;
    min-width: 80px;
}

.pomodoro-settings{
    width: 100%;
    border-top: 1px solid #ccc;
    padding-top: 15px;
}

.pomodoro-settings label{
    display: block;
    margin: 8px 0;
    font-size: 13px;
}

.pomodoro-settings input{
    width: 60px;
    padding: 4px;
    margin-left: 8px;
    border: 1px solid #ccc;
}

::-webkit-scrollbar{
    width: 12px;
}

::-webkit-scrollbar-track{
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb{
    background: #888;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover{
    background: #555;
}

#help-app{
    width: 900px;
    height: 600px;
}

.help-container{
    display: flex;
    gap: 0;
    padding: 0;
    height: 100%;
}

.help-sidebar{
    width: 220px;
    background: #f5f5f5;
    border-right: 2px solid #ddd;
    overflow-y: auto;
    padding: 12px 0;
}

.help-item{
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    color: #333;
}

.help-item:hover{
    background: #e8e8e8;
    border-left-color: navy;
}

.help-item.active{
    background: #d0d0ff;
    border-left-color: navy;
    font-weight: bold;
}

.help-section-title{
    padding: 12px 12px 6px 12px;
    font-weight: bold;
    color: navy;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 8px;
    border-bottom: 1px solid #ddd;
}

.help-content{
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: white;
}

#help-content-area{
    line-height: 1.6;
}

.help-content h2{
    color: navy;
    margin: 20px 0 10px 0;
    font-size: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
}

.help-content h3{
    color: #0066cc;
    margin: 15px 0 8px 0;
    font-size: 16px;
}

.help-content p{
    margin: 8px 0;
    font-size: 13px;
    color: #333;
}

.help-content ul{
    margin: 10px 0 10px 20px;
    font-size: 13px;
}

.help-content li{
    margin: 6px 0;
    color: #333;
}



.help-content .tip-box{
    background: #fffacd;
    border-left: 4px solid #ffc107;
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
    font-size: 13px;
}

.help-content .error-box{
    background: #ffe0e0;
    border-left: 4px solid #ff6b6b;
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
    font-size: 13px;
}
