*{
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent
}

html,body{
  margin:0;
  height:100%;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
  color:#fff;
  background:#000;
  overscroll-behavior:none
}

body{
  background:
  radial-gradient(60% 60% at 20% 10%, #1a3a6b 0%, transparent 60%),
  radial-gradient(50% 60% at 90% 30%, #5b2b8a 0%, transparent 60%),
  radial-gradient(60% 60% at 50% 100%, #0a6b6e 0%, transparent 60%),
  #06080c;
  min-height:100%;
}

/* ================= LAYOUT ================= */
#app{
  max-width:480px;
  margin:0 auto;
  padding:env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  gap:14px
}

/* ================= CARD ================= */
.glass{
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(24px) saturate(160%);
  -webkit-backdrop-filter:blur(24px) saturate(160%);
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:20px;
  box-shadow:0 10px 30px rgba(0,0,0,.35)
	  transition:all .2s ease;
}

/* ================= TEXT ================= */
h1{font-size:26px;margin:0 0 4px;letter-spacing:-.5px}
h2{font-size:18px;margin:0 0 12px}

p.sub{
  margin:0 0 14px;
  opacity:.75;
  font-size:14px
}

label{
  display:block;
  font-size:12px;
  opacity:.7;
  margin:10px 0 6px;
  letter-spacing:.3px;
  text-transform:uppercase
}

/* ================= INPUT ================= */
input,button,textarea{
  font:inherit;
  color:#fff
}

input,textarea{
  width:100%;
  padding:13px 14px;
  margin-top:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  outline:none;
  font-size:16px
}

input:focus,textarea:focus{
  border-color:#0a84ff;
  background:rgba(255,255,255,.08)
}

/* ================= BUTTON ================= */
button{
  cursor:pointer;
  border:0;
  border-radius:14px;
  padding:13px 16px;
  font-weight:600;
  font-size:16px;
  background:#0a84ff;
  color:#fff;
  width:100%
}

button.ghost{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.15)
}

button.link{
  background:transparent;
  padding:6px;
  font-size:13px;
  opacity:.8;
  width:auto
}

/* ✅ BOTONES EN FILA */

.row{
  display:flex;
  gap:10px;
  margin-top:16px;
}


.row > *{
  flex:1
}

/* ✅ separación del textarea */
.top-actions{
  margin-top:16px
}

/* ================= HEADER ================= */
.header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:6px
}

.avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  background:#0a84ff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:18px;
  overflow:hidden;
  flex-shrink:0;
  border:1px solid rgba(255,255,255,.2)
}

.avatar img{
  width:100%;
  height:100%;
  object-fit:cover
}

/* ================= MICRO ================= */
.mic{
  width:84px;
  height:84px;
  border-radius:50%;
  background:#ff453a;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:8px auto;
  border:0;
  box-shadow:0 8px 30px rgba(255,69,58,.4);
  font-size:32px;
  transition:all .2s ease
}

.mic.rec{
  animation:pulse 1.4s infinite
}

@keyframes pulse{
  0%,100%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(255,69,58,.5)
  }
  50%{
    transform:scale(1.06);
    box-shadow:0 0 0 18px rgba(255,69,58,0)
  }
}

/* ================= LOG ================= */
.log{
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  margin-bottom:8px

}

.log:hover{
  background:rgba(255,255,255,.08);
}

.log time{
  font-size:11px;
  opacity:.6
}

.log .content{
  margin:6px 0;
  white-space:pre-wrap;
  font-size:14px
}

/* ================= AUTOSAVE / EDIT ================= */
.editable{
  outline:none;
}

/* ================= ICONOS ================= */
.icons{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.icon-edit,
.icon-delete{
  cursor:pointer;
  font-size:18px;
  transition:transform .12s ease, opacity .12s ease;
}

.icon-edit:hover,
.icon-delete:hover{
  transform:scale(1.2);
  opacity:.85;
}

/* ================= SWIPE ================= */
.swipe{
  position:relative;
  transition:transform .2s ease;
}

/* indicador eliminar */
.delete-indicator{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:#ff453a;
  font-size:12px;
  opacity:.6;
}

/* cuando desliza */
.swipe-active{
  background:rgba(255,69,58,.1);
}

/* ================= RESPONSIVE EXTRA ================= */
@media (max-width:480px){
  textarea{
    font-size:15px;
  }
}

/* ================= MICRO-INTERACTIONS ================= */
button:active{
  transform:scale(0.97);
}

.log{

	margin:5;
}

.log:active{
  background:rgba(255,255,255,.08);
}
.avatar-big {
  width:100px;
  height:100px;
  margin:10px auto;
  border-radius:50%;
  border:2px dashed rgba(255,255,255,.3);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.avatar-big img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.register small{
  display:block;
  font-size:12px;
  margin-top:4px;
  opacity:.7;
}
/* separación del botón entrar */
.login-main {
  margin-top: 18px;
}

/* fila secundaria */
.login-secondary {
  margin-top: 10px;
  align-items: center;
}

/* botón link alineado */
.login-secondary .link {
  width: auto;
  flex: none;
}
.login-brand{
  text-align:center;
  margin-bottom:24px;
}

.login-logo{
  width:90px;
  height:auto;
  margin-bottom:12px;
}

.login-title{
  margin:0;
  font-size:32px;
  font-weight:700;
  color:#fff;
}

.login-description{
  margin:12px 0 0;
  font-size:14px;
  line-height:1.5;
  opacity:.8;
}

.forgot-link{
  text-align:center;
  margin-top:12px;
}

.forgot-link span{
  color:#0a84ff;
  cursor:pointer;
}

.forgot-link span:hover{
  text-decoration:underline;
}
.profile-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}

.profile-user{
  display:flex;
  align-items:center;
  gap:12px;
}

.profile-mini-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.2);
  box-shadow:
    0 4px 18px
    rgba(0,0,0,.25);

}

.profile-name{
  font-size:18px;
  font-weight:600;
}

.profile-button{
  font-size:22px;
  padding:8px 12px;
}
.profile-mini-avatar{
  transition:all .2s ease;
}

.profile-mini-avatar:hover{
  transform:scale(1.08);
}

.profile-mini-avatar:active{
  transform:scale(.95);
}
/* ================= FOOTER ================= */

.app-footer{

  text-align:center;

  padding:20px;

  font-size:12px;

  opacity:.75;

}

.footer-logo{

  width:40px;

  height:auto;

  margin-bottom:8px;

}

.app-footer a{

  display:block;

  margin-top:6px;

  color:#0a84ff;

  cursor:pointer;

  text-decoration:none;

}

.app-footer a:hover{

  text-decoration:underline;

}

/* ================= HISTORY FILTERS ================= */

.history-filters{

  margin-bottom:15px;

}

#searchLogs{

  width:100%;

  padding:12px 14px;

  border-radius:14px;

  border:1px solid rgba(255,255,255,.15);

  background:rgba(255,255,255,.08);

  color:#fff;

  font-size:15px;

  outline:none;

}

#searchLogs::placeholder{

  color:rgba(255,255,255,.6);

}

#categoryFilter{

  width:100%;

  margin-top:10px;

  padding:12px 14px;

  border-radius:14px;

  border:1px solid rgba(255,255,255,.15);

  background:rgba(255,255,255,.08);

  color:#fff;

  font-size:15px;

  outline:none;

  cursor:pointer;

}

#categoryFilter:focus{

  border-color:#0a84ff;

  background:rgba(255,255,255,.12);

}

#categoryFilter option{

  background:#1f2937;

  color:#fff;

}

/* ================= CATEGORIES ================= */

.log-categories{

  display:flex;

  flex-wrap:wrap;

  gap:6px;

  margin:6px 0 10px;

}

.log-categories span{

  display:inline-block;

  padding:4px 8px;

  border-radius:20px;

  font-size:12px;

  background:rgba(255,255,255,.08);

  border:1px solid rgba(255,255,255,.12);

}

/* ================= TERMS ================= */

.terms{

  line-height:1.7;

}

.terms p{

  opacity:.9;

  margin-bottom:14px;

}

.glass-action{

  flex:1;

  height:42px;

  border-radius:14px;

  background:rgba(255,255,255,.08);

  border:1px solid rgba(255,255,255,.12);

  backdrop-filter:blur(12px);

  -webkit-backdrop-filter:blur(12px);

  font-size:14px;

  font-weight:600;

}

.glass-action.edit{

  color:#0a84ff;

}

.glass-action.delete{

  color:#ff453a;

}

.glass-action:hover{

  background:rgba(255,255,255,.12);

}

.glass-action:active{

  transform:scale(.98);

}
