:root{
  --bg-main:#050910;
  --bg-deep:#03070d;
  --bg-panel:rgba(7,16,28,0.92);
  --bg-card:rgba(9,21,36,0.9);
  --cyan:#00ffe0;
  --blue:#00c8ff;
  --green:#00ff88;
  --amber:#f0b35d;
  --violet:#9470ff;
  --text-main:#f2f7fb;
  --text-muted:#91a5b8;
  --border:rgba(0,200,255,0.14);
  --border-strong:rgba(0,255,224,0.34);
  --sidebar-width:270px;
  --topbar-height:72px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html{
  scroll-behavior:smooth;
}

body{
  min-width:320px;
  min-height:100vh;
  overflow-x:hidden;
  background:var(--bg-main);
  color:var(--text-main);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

button,
input,
textarea{
  font:inherit;
}

button,
a{
  -webkit-tap-highlight-color:transparent;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(115deg,rgba(0,200,255,0.12),transparent 28%),
    linear-gradient(245deg,rgba(240,179,93,0.09),transparent 36%),
    linear-gradient(135deg,#050910 0%,#07111d 50%,#03060b 100%);
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  opacity:0.07;
  background-image:
    linear-gradient(rgba(0,255,224,0.18) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,255,224,0.18) 1px,transparent 1px);
  background-size:44px 44px;
}

.lab-shell{
  min-height:100vh;
}

.lab-topbar{
  min-height:var(--topbar-height);
  padding:10px 28px;
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(280px,620px) minmax(250px,1fr);
  gap:24px;
  align-items:center;
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(3,8,15,0.96);
  border-bottom:1px solid var(--border);
  box-shadow:0 8px 28px rgba(0,0,0,0.28);
  backdrop-filter:blur(16px);
}

.lab-brand{
  width:max-content;
  display:flex;
  align-items:center;
  gap:13px;
  color:inherit;
  text-decoration:none;
}

/* LOGO REAL EN IMAGEN */
.lab-logo{
  width:42px;
  height:42px;
  display:block;
  border:1px solid rgba(0,200,255,0.36);
  border-radius:8px;
  background:
    rgba(0,200,255,0.1)
    url("../img/logo_oravega_vector.svg")
    left center / auto 100%
    no-repeat;
  box-shadow:0 0 18px rgba(0,200,255,0.16);
  padding:4px;
}

.lab-brand-text{
  display:flex;
  flex-direction:column;
}

.lab-brand-text strong{
  font-size:1rem;
  font-weight:850;
}

.lab-brand-text strong span{
  color:#7d92a4;
  font-weight:650;
}

.lab-brand-text small{
  margin-top:2px;
  color:var(--text-muted);
  font-size:0.72rem;
}

.global-search{
  height:42px;
  padding:0 14px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(0,200,255,0.18);
  border-radius:8px;
  background:rgba(255,255,255,0.035);
  color:#607486;
  transition:border-color .2s ease,box-shadow .2s ease;
}

.global-search:focus-within{
  border-color:var(--border-strong);
  box-shadow:0 0 0 3px rgba(0,200,255,0.08);
}

.global-search span{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:5px;
  font-family:"JetBrains Mono",monospace;
  font-size:0.72rem;
}

.global-search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text-main);
}

.global-search input::placeholder{
  color:#718699;
}

.topbar-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:18px;
}

.lab-status{
  display:flex;
  align-items:center;
  gap:8px;
  color:#aac2d3;
  font-size:0.78rem;
  font-weight:650;
  white-space:nowrap;
}

.status-dot{
  width:8px;
  height:8px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 10px var(--green);
}

.user-menu{
  padding:5px 10px 5px 5px;
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:9px;
  background:rgba(255,255,255,0.035);
  color:#c9d7e2;
  cursor:pointer;
  font-size:0.82rem;
}

.user-menu:hover,
.user-menu:focus-visible{
  border-color:rgba(0,255,224,0.28);
  color:var(--cyan);
}

.logout-button{
  padding:8px 10px;
  border:1px solid rgba(0,200,255,0.16);
  border-radius:8px;
  background:transparent;
  color:#7f98a9;
  cursor:pointer;
  font-size:0.72rem;
  font-weight:700;
}

.logout-button:hover{
  border-color:rgba(0,255,224,0.34);
  color:var(--cyan);
}

.user-avatar,
.profile-avatar{
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#00c8ff,#0068ff);
  color:white;
  font-family:"JetBrains Mono",monospace;
  font-weight:800;
  box-shadow:0 0 18px rgba(0,200,255,0.2);
}

.user-avatar{
  width:29px;
  height:29px;
  border-radius:7px;
  font-size:0.7rem;
}

.lab-tabs{
  min-height:48px;
  padding:0 28px;
  display:flex;
  align-items:flex-end;
  gap:8px;
  position:relative;
  z-index:20;
  background:rgba(4,10,18,0.94);
  border-bottom:1px solid rgba(255,255,255,0.07);
}

.lab-tabs a{
  height:48px;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:2px solid transparent;
  color:#91a5b8;
  text-decoration:none;
  font-size:0.85rem;
  font-weight:650;
}

.lab-tabs a:hover,
.lab-tabs a.active{
  color:var(--text-main);
  border-bottom-color:var(--cyan);
}

.lab-tabs a span{
  padding:2px 7px;
  border-radius:999px;
  background:rgba(255,255,255,0.07);
  font-size:0.7rem;
}

.lab-layout{
  min-height:calc(100vh - 120px);
  display:grid;
  grid-template-columns:var(--sidebar-width) minmax(0,1fr);
}

.lab-sidebar{
  padding:32px 24px;
  position:relative;
  background:rgba(4,10,18,0.82);
  border-right:1px solid var(--border);
}

.profile-card{
  padding-bottom:28px;
  border-bottom:1px solid rgba(255,255,255,0.07);
}

.profile-avatar{
  width:70px;
  height:70px;
  margin-bottom:18px;
  border-radius:8px;
  font-size:1.1rem;
}

.profile-card h1{
  font-size:1.25rem;
}

.profile-handle{
  margin:3px 0 16px;
  color:#728799;
  font-family:"JetBrains Mono",monospace;
  font-size:0.8rem;
}

.sidebar-description{
  color:#9bafc0;
  font-size:0.86rem;
  line-height:1.65;
}

.private-badge{
  margin-top:17px;
  padding:6px 10px;
  display:inline-flex;
  border:1px solid rgba(0,255,224,0.18);
  border-radius:999px;
  background:rgba(0,255,224,0.06);
  color:var(--cyan);
  font-size:0.7rem;
  font-weight:750;
}

.sidebar-nav{
  margin-top:28px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.sidebar-nav p{
  margin:0 10px 8px;
  color:#5f7486;
  font-size:0.67rem;
  font-weight:800;
  letter-spacing:1.5px;
}

.sidebar-nav a{
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid transparent;
  border-radius:9px;
  color:#91a8b9;
  text-decoration:none;
  font-size:0.84rem;
  font-weight:600;
}

.sidebar-nav a:hover,
.sidebar-nav a.active{
  border-color:rgba(0,200,255,0.14);
  background:rgba(0,200,255,0.065);
  color:#dcf8ff;
}

.sidebar-nav a span{
  color:var(--blue);
}

.sidebar-terminal{
  margin-top:36px;
  padding:15px;
  border:1px solid rgba(0,255,224,0.1);
  border-radius:8px;
  background:rgba(0,0,0,0.28);
  color:#7fa1b5;
  font-family:"JetBrains Mono",monospace;
  font-size:0.7rem;
  line-height:1.8;
}

.terminal-heading{
  margin-bottom:8px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#b6cbd8;
  font-family:Inter,sans-serif;
  font-size:0.66rem;
  font-weight:800;
  letter-spacing:1px;
}

.terminal-user{
  color:var(--cyan);
}

.lab-main{
  width:100%;
  max-width:1380px;
  padding:44px 48px 70px;
}

.dashboard-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
}

.eyebrow{
  display:block;
  margin-bottom:9px;
  color:var(--blue);
  font-size:0.68rem;
  font-weight:850;
  letter-spacing:2.4px;
}

.dashboard-header h2{
  font-size:3rem;
  letter-spacing:0;
}

.workspace-path{
  margin:0 0 4px;
  color:#79dfff;
  font-family:"JetBrains Mono",monospace;
  font-size:0.78rem;
}

.workspace-path span{
  color:#91a5b8;
}

.dashboard-header p{
  margin-top:10px;
  color:var(--text-muted);
  line-height:1.6;
}

.access-note{
  margin-top:24px;
  padding:18px 20px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  border:1px solid rgba(240,179,93,0.24);
  border-radius:8px;
  background:
    linear-gradient(90deg,rgba(240,179,93,0.1),transparent),
    rgba(6,15,26,0.72);
}

.access-note strong{
  color:#ffe2b0;
  font-size:0.9rem;
}

.access-note p{
  max-width:720px;
  color:#9fb2c2;
  font-size:0.82rem;
  line-height:1.6;
}

.new-repo-button{
  padding:11px 15px;
  border:1px solid rgba(0,255,224,0.22);
  border-radius:9px;
  background:rgba(0,255,224,0.08);
  color:#7faaa7;
  font-size:0.82rem;
  font-weight:750;
  cursor:not-allowed;
}

.new-repo-button span{
  margin-right:5px;
  color:var(--cyan);
}

.stats-grid{
  margin:30px 0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.stats-grid article{
  min-height:122px;
  padding:20px;
  display:grid;
  grid-template-columns:1fr auto;
  align-content:space-between;
  gap:8px;
  border:1px solid var(--border);
  border-radius:8px;
  background:linear-gradient(145deg,rgba(10,24,40,0.92),rgba(5,13,24,0.86));
  box-shadow:0 18px 34px rgba(0,0,0,0.18);
}

.stats-grid span{
  color:#8da3b4;
  font-size:0.78rem;
  font-weight:650;
}

.stats-grid strong{
  grid-row:1 / 3;
  grid-column:2;
  color:#dffaff;
  font-family:"JetBrains Mono",monospace;
  font-size:1.8rem;
}

.stats-grid small{
  color:#607789;
  font-size:0.72rem;
}

.repositories-panel,
.activity-panel{
  border:1px solid var(--border);
  border-radius:8px;
  background:rgba(6,15,26,0.84);
  box-shadow:0 22px 48px rgba(0,0,0,0.24);
  overflow:hidden;
}

.profile-panel{
  margin-top:28px;
  padding:22px;
  border:1px solid var(--border);
  border-radius:8px;
  background:rgba(6,15,26,0.84);
  box-shadow:0 22px 48px rgba(0,0,0,0.2);
}

.profile-form{
  max-width:760px;
  margin-top:22px;
}

.profile-identity{
  margin-bottom:22px;
  padding-bottom:20px;
  display:flex;
  align-items:center;
  gap:15px;
  border-bottom:1px solid rgba(255,255,255,0.07);
}

.profile-avatar.large{
  width:52px;
  height:52px;
  margin:0;
  border-radius:8px;
  font-size:0.85rem;
}

.profile-identity strong{
  font-family:"JetBrains Mono",monospace;
  font-size:0.9rem;
}

.profile-identity p{
  margin-top:5px;
  color:#718697;
  font-size:0.72rem;
}

.profile-form label{
  margin:17px 0 8px;
  display:block;
  color:#aebfcb;
  font-size:0.76rem;
  font-weight:650;
}

.profile-form input,
.profile-form textarea{
  width:100%;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,0.09);
  border-radius:9px;
  outline:0;
  resize:vertical;
  background:rgba(0,0,0,0.24);
  color:var(--text-main);
}

.profile-form input:focus,
.profile-form textarea:focus{
  border-color:rgba(0,200,255,0.5);
  box-shadow:0 0 0 3px rgba(0,200,255,0.07);
}

.profile-form-footer{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.profile-form-footer p{
  color:#7fa8b7;
  font-size:0.75rem;
}

.profile-form-footer button{
  padding:9px 14px;
  border:1px solid rgba(0,255,224,0.25);
  border-radius:8px;
  background:rgba(0,255,224,0.08);
  color:var(--cyan);
  cursor:pointer;
  font-weight:750;
}

.profile-form-footer button:hover{
  background:rgba(0,255,224,0.13);
}

.panel-toolbar{
  min-height:86px;
  padding:18px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  border-bottom:1px solid rgba(255,255,255,0.07);
}

.panel-toolbar h2{
  font-size:1.08rem;
}

.panel-toolbar p{
  margin-top:5px;
  color:#718697;
  font-size:0.75rem;
}

.repo-filters{
  padding:4px;
  display:flex;
  gap:3px;
  border:1px solid rgba(255,255,255,0.07);
  border-radius:9px;
  background:rgba(0,0,0,0.2);
}

.filter-button{
  padding:7px 10px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#7f94a5;
  cursor:pointer;
  font-size:0.72rem;
  font-weight:700;
}

.filter-button:hover,
.filter-button.active{
  background:rgba(0,200,255,0.1);
  color:#bcf3ff;
}

.repository-row{
  min-height:142px;
  padding:22px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:18px;
  align-items:start;
  border-bottom:1px solid rgba(255,255,255,0.065);
  transition:background .2s ease,border-color .2s ease;
}

.repository-row:last-of-type{
  border-bottom:0;
}

.repository-row:hover{
  background:rgba(0,200,255,0.035);
}

.repository-row[hidden]{
  display:none;
}

.repo-mark{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid rgba(0,200,255,0.24);
  border-radius:11px;
  background:rgba(0,200,255,0.08);
  color:var(--blue);
  font-family:"JetBrains Mono",monospace;
  font-weight:800;
}

.repo-mark.with-logo{
  overflow:hidden;
  background:#050b11;
}

.repo-mark.with-logo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.repo-title-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.repo-title-line > a{
  color:#72ddff;
  text-decoration:none;
  font-family:"JetBrains Mono",monospace;
  font-size:1rem;
  font-weight:700;
}

.repo-title-line > a:hover{
  color:var(--cyan);
  text-decoration:underline;
}

.visibility-badge,
.status-badge{
  padding:4px 8px;
  border-radius:999px;
  font-size:0.62rem;
  font-weight:750;
}

.visibility-badge{
  border:1px solid rgba(255,255,255,0.11);
  color:#8297a8;
}

.visibility-badge.shared{
  border-color:rgba(145,112,255,0.24);
  background:rgba(145,112,255,0.08);
  color:#b7a2ff;
}

.status-badge{
  border:1px solid rgba(0,255,224,0.14);
  background:rgba(0,255,224,0.06);
  color:var(--cyan);
}

.status-badge.beta{
  border-color:rgba(255,190,70,0.18);
  background:rgba(255,190,70,0.07);
  color:#ffc75c;
}

.status-badge.research{
  border-color:rgba(145,112,255,0.22);
  background:rgba(145,112,255,0.08);
  color:#b7a2ff;
}

.status-badge.structure{
  border-color:rgba(0,200,255,0.2);
  color:#7bdfff;
}

.repo-information > p{
  max-width:740px;
  margin:11px 0 16px;
  color:#93a8b9;
  font-size:0.86rem;
  line-height:1.6;
}

.repo-metadata{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
  color:#61788a;
  font-size:0.7rem;
}

.repo-metadata span{
  display:flex;
  align-items:center;
  gap:6px;
}

.language-dot{
  width:9px;
  height:9px;
  display:inline-block;
  border-radius:50%;
  background:var(--blue);
}

.language-dot.html{ background:#ff6746; }
.language-dot.python{ background:#ffd343; }
.language-dot.javascript{ background:#f0db4f; }
.language-dot.docs{ background:#9b78ff; }
.language-dot.csharp{ background:#9b4fdd; }

.repository-loading,
.repository-error{
  min-height:140px;
  padding:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  text-align:left;
  color:#7890a2;
}

.repository-loading strong,
.repository-error strong{
  display:block;
  margin-bottom:6px;
  color:#c9d7e2;
}

.repository-loading p,
.repository-error p{
  margin:0;
  font-size:0.8rem;
  line-height:1.55;
}

.repository-error{
  color:#d28f96;
  text-align:center;
}

.repository-error strong{
  color:#ff9ca7;
}

.loading-pulse{
  width:13px;
  height:13px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 16px rgba(0,255,224,0.65);
  animation:lab-pulse 1.2s ease-in-out infinite;
}

@keyframes lab-pulse{
  50%{
    opacity:0.35;
    transform:scale(0.72);
  }
}

.open-repo{
  margin-top:4px;
  padding:8px 11px;
  display:inline-flex;
  gap:7px;
  align-items:center;
  border:1px solid rgba(0,200,255,0.18);
  border-radius:8px;
  background:rgba(0,200,255,0.06);
  color:#9ddff0;
  text-decoration:none;
  font-size:0.72rem;
  font-weight:750;
}

.open-repo:hover{
  border-color:rgba(0,255,224,0.34);
  background:rgba(0,255,224,0.1);
  color:var(--cyan);
}

.empty-results{
  padding:48px 24px;
  text-align:center;
}

.empty-results strong{
  color:#c4d7e3;
}

.empty-results p{
  margin-top:8px;
  color:#6d8495;
  font-size:0.82rem;
}

.activity-panel{
  margin-top:28px;
  padding:22px;
}

.section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.section-heading h2{
  font-size:1.2rem;
}

.static-label{
  padding:5px 9px;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:999px;
  color:#718697;
  font-size:0.66rem;
}

.activity-list{
  margin-top:20px;
  list-style:none;
}

.activity-list li{
  padding:15px 0;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  border-top:1px solid rgba(255,255,255,0.06);
}

.activity-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:1px solid rgba(0,200,255,0.16);
  border-radius:8px;
  color:var(--blue);
  font-family:"JetBrains Mono",monospace;
  font-size:0.62rem;
}

.activity-list strong{
  font-size:0.82rem;
}

.activity-list p,
.activity-list time{
  margin-top:4px;
  color:#718697;
  font-size:0.72rem;
}

.documentation-note{
  margin-top:28px;
  padding:24px;
  display:flex;
  gap:18px;
  align-items:center;
  border:1px dashed rgba(0,255,224,0.2);
  border-radius:8px;
  background:rgba(0,255,224,0.035);
}

.documentation-note > span{
  color:var(--cyan);
  font-family:"JetBrains Mono",monospace;
  font-weight:700;
}

.documentation-note h2{
  font-size:1rem;
}

.documentation-note p{
  margin-top:6px;
  color:#7890a1;
  font-size:0.8rem;
  line-height:1.6;
}

@media(max-width:1080px){
  .lab-topbar{
    grid-template-columns:auto minmax(250px,1fr) auto;
  }

  .lab-status{
    display:none;
  }

  .lab-main{
    padding:38px 30px 60px;
  }
}

@media(max-width:850px){
  .lab-topbar{
    padding:12px 18px;
    grid-template-columns:1fr auto;
  }

  .global-search{
    grid-column:1 / -1;
    grid-row:2;
  }

  .lab-tabs{
    padding:0 12px;
    overflow-x:auto;
  }

  .lab-layout{
    display:block;
  }

  .lab-sidebar{
    display:none;
  }

  .lab-main{
    padding:32px 20px 50px;
  }

  .dashboard-header h2{
    font-size:2.25rem;
  }

  .access-note{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media(max-width:650px){
  .user-menu > span:last-child{
    display:none;
  }

  .logout-button{
    padding:8px;
    font-size:0.68rem;
  }

  .dashboard-header{
    align-items:flex-start;
    flex-direction:column;
  }

  .dashboard-header h2{
    font-size:1.9rem;
  }

  .new-repo-button{
    display:none;
  }

  .stats-grid{
    grid-template-columns:1fr;
  }

  .panel-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }

  .repo-filters{
    width:100%;
    overflow-x:auto;
  }

  .repository-row{
    grid-template-columns:42px minmax(0,1fr);
    padding:18px;
  }

  .repo-mark{
    width:38px;
    height:38px;
  }

  .open-repo{
    grid-column:2;
    width:max-content;
  }

  .repo-metadata{
    gap:10px;
  }

  .activity-list li{
    grid-template-columns:32px minmax(0,1fr);
  }

  .activity-list time{
    display:none;
  }
}
