

/* ===== Fundo do ambiente ===== */
body {
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Montserrat', sans-serif;
}

/* ===== Janelas ===== */
.window {
  width: 500px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  position: absolute;
  top: 100px;
  left: 100px;
  display: none;
  flex-direction: column;
  resize: both; /* permite redimensionar */
  overflow: hidden;
}


/* ===== Cabeçalho das janelas ===== */
.window-header {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  cursor: move; /* só o cabeçalho arrasta */
}

/* Botões estilo MacOS */
.window-header .btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;              /* impede de deformar */
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
  padding: 0;
}

/* Estado normal */
.window-header .btn.red    { background: #ff5f56; }
.window-header .btn.yellow { background: #ffbd2e; }
.window-header .btn.green  { background: #27c93f; }

/* Hover */
.window-header .btn:hover {
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
  filter: brightness(1.15);
  transform: scale(1.1);
}

/* Título */
.window-header .title {
  margin-left: 10px;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
}


/* Corpo da janela */
.window-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;       /* mantém sem scroll duplo */
  min-height: 0;          /* 🔑 evita cortar conteúdo flex */
  position: relative;     /* garante posicionamento interno */
}


/* Inputs */
.form-input {
  width: 90%;
  padding: 10px;
  margin: 6px 0;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  outline: none;
}

.form-input::placeholder {
  color: #ddd;
}

/* Botão padrão */
.btn-primary {
  background: #27c93f;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: #1fa530;
}

.login-bg {
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-window {
  width: 360px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  overflow: hidden;
}

.login-window .window-header {
  display: flex;
  align-items: center;
  padding: 8px;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
}

.login-window .title {
  margin-left: 10px;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
}

/* Ajustes específicos do Login */
.login-window .form-input {
  width: 100%;                  /* ocupa toda a largura do box */
  padding: 12px 14px;           /* mais confortável */
  margin: 0;                    /* remove margens extras */
  border-radius: 0px;          /* cantos arredondados suaves */
   color: #fff;
  font-size: 20px;
}

.login-window .form-input::placeholder {
  color: rgba(255,255,255,0.6); /* placeholder mais discreto */
}

.login-window .btn-primary {
  width: 100%;
  border-radius: 0px;
  font-size: 20px;
  padding: 12px;
}



/* ===== Topbar (usuário logado) ===== */
.topbar {
  position: fixed;
  top: 10px;
  right: 20px;
  display: flex;
  align-items: center;
  z-index: 9999;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

.user-menu .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Dropdown escondido por padrão */
.user-menu .dropdown {
  display: none;
  position: absolute;
  top: 45px;
  right: 0;
  background: rgba(0,0,0,0.85);
  border-radius: 8px;
  padding: 6px 0;
  flex-direction: column;
  min-width: 140px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.user-menu .dropdown a {
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.user-menu .dropdown a:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== Notes ===== */
.notes-body {
  padding: 10px;
  position: relative;
  min-height: 400px;
}

#add-note {
  background: #27c93f;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}

.note {
  position: absolute;
  width: 180px;
  min-height: 120px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: #333;
  resize: both;
  overflow: auto;
  backdrop-filter: blur(4px);
}

.note textarea {
  width: 100%;
  height: 80px;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-size: 14px;
}

.note .delete {
  position: absolute;
  top: 5px;
  right: 5px;
  border: none;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  cursor: pointer;
}

/* Cores */
.note.yellow { background: rgba(255, 255, 150, 0.9); }
.note.green  { background: rgba(150, 255, 150, 0.9); }
.note.blue   { background: rgba(150, 200, 255, 0.9); }
.note.pink   { background: rgba(255, 180, 200, 0.9); }

/* ===== Música ===== */
.music-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#music-search-form {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

#music-search-input {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px;
}

#music-search-form button {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: #f00; /* vermelho YouTube */
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

#music-search-form button:hover {
  background: #c00;
}

/* ===== Apps Manager ===== */
.apps-body {
  padding: 10px;
}

#apps-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-item {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.app-item:hover {
  background: rgba(255,255,255,0.1);
}

/* ===== IDE ===== */
.ide-body{
  display:flex;
  gap:12px;
  min-height:520px;
}
.ide-sidebar{
  width:260px;
  background: rgba(255,255,255,0.06);
  border-radius:10px;
  padding:10px;
  overflow:auto;
}
.ide-section-title{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#ddd;
  margin-bottom:6px;
}
.ide-actions{
  display:flex; gap:6px; margin-top:8px;
}
.btn-xs{
  background: rgba(255,255,255,0.12);
  color:#fff; border:none; border-radius:6px;
  padding:6px 10px; cursor:pointer; font-size:12px;
}
.btn-xs.danger{ background: rgba(255, 80, 80, .35); }
.btn-xs:hover{ filter: brightness(1.1); }

.ide-tree{ font-size:14px; }
.tree-node{
  padding:4px 6px; border-radius:6px; margin:2px 0;
  cursor:pointer; display:flex; align-items:center; gap:6px; color:#fff;
}
.tree-node:hover{ background: rgba(255,255,255,0.08); }
.tree-children{ margin-left:4px; display:none; }
.tree-children.show{ display:block; }
.tree-node.dir i{ color:#facc14; }
.tree-node.file i{ color:#cbd5e1; }

.ide-docs{ display:flex; flex-direction:column; gap:6px; }
.doc-item{
  padding:6px 8px; border-radius:6px; cursor:pointer; background: rgba(255,255,255,0.05);
}
.doc-item:hover{ background: rgba(255,255,255,0.1); }

.ide-main{ flex:1; display:flex; flex-direction:column; }
.ide-tabs{ display:flex; gap:6px; margin-bottom:8px; }
.tab-btn{
  background: rgba(255,255,255,0.12); color:#fff; border:none; border-radius:8px;
  padding:8px 12px; cursor:pointer; font-size:13px;
}
.tab-btn.active{ background:#27c93f; }
.tab-panel{ display:none; }
.tab-panel.show{ display:block; }

.ide-editor-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:8px; gap:8px;
}
#ide-current-path{ font-size:12px; opacity:.8; }

.ide-editor{
  width:100%; min-height:420px;
  background: rgba(0,0,0,0.35); color:#fff; border:none; border-radius:10px;
  padding:12px; outline:none; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:14px; line-height:1.45;
}

.ide-preview-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:8px;
}
.ide-preview{
  width:100%; height:460px; background:#fff; border:none; border-radius:10px; overflow:hidden;
}

.ide-chat-messages{
  height:460px; overflow:auto; display:flex; flex-direction:column; gap:8px;
  padding-right:6px;
}
.chat-msg .bubble{
  max-width:80%; padding:10px 14px; border-radius:12px;
  word-wrap:break-word; white-space:pre-wrap;
}
.chat-msg.user{ display:flex; justify-content:flex-end; }
.chat-msg.user .bubble{ background: rgba(200,200,200,0.2); color:#eee; }
.chat-msg.ai{ display:flex; justify-content:flex-start; }
.chat-msg.ai .bubble{ background: rgba(50,50,50,0.6); border-left: 3px solid #27c93f; color:#fff; }

.ide-chat-input{
  display:flex; gap:8px; margin-top:8px; align-items:center;
}
.ide-chat-input input{
  flex:1; border:none; border-radius:12px; padding:10px 14px;
  background: rgba(255,255,255,0.1); color:#fff; font-size:14px; outline:none;
}
.ide-chat-input button{
  border:none; background:#27c93f; color:#fff; border-radius:50%; width:36px; height:36px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}

