/* DeafConnect light-only app.css */

:root{
  --bg:#f5f7fb;
  --panel:rgba(255,255,255,.88);
  --panel-2:rgba(255,255,255,.72);
  --text:#122033;
  --muted:#55657c;
  --border:rgba(90,120,170,.16);
  --accent:#2a6df4;
  --link:#1e3f7a;
  --link-hover:#0f2c5f;

 
  --sidebar-bg: rgba(10,35,110,.28);

..  --sidebar-bg: rgba(20, 55, 140, 0.54);
  --sidebar-border-right: rgba(180, 210, 255, 0.82);
  --sidebar-text: #eaf2ff;
  --sidebar-hover: rgba(255, 255, 255, 0.12);
}

html,
body{
  margin:0;
  padding:0;
}

body,
body.theme-light{
  background:
    url('/main/assets/bg.jpg') center / cover no-repeat fixed;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{
  color:var(--link);
  text-decoration:none;
}

a:hover{
  color:var(--link-hover);
  text-decoration:underline;
}

img{
  max-width:100%;
}

.card,
.panel,
.post-box,
.feed-post,
.friends-dock,
.friends-dock-head,
.friend-row{
  background:var(--panel);
  color:var(--text);
  border:1px solid var(--border);
  box-sizing:border-box;
}

input,
textarea,
select,
button{
  color:var(--text);
  font:inherit;
}

input,
textarea,
select{
  background:var(--panel);
  border:1px solid var(--border);
}

button{
  background:var(--panel);
  border:1px solid var(--border);
  cursor:pointer;
}

.friend-offline,
.room-subtitle,
.dc-note,
.hint{
  color:var(--muted);
}

.dc-main-shell{
  margin-left:260px;
  margin-right:220px;
  display:grid;
  grid-template-columns:680px 260px;
  justify-content:start;
  gap:20px;
  padding:20px 20px 20px 30px;
  box-sizing:border-box;
}

.dc-center,
.dc-right{
  min-width:0;
}

.post-box,
.feed-post,
.panel,
.card{
  padding:14px;
  margin-bottom:16px;
}

.post-box textarea{
  width:100%;
  min-height:90px;
  background:var(--bg);
  color:var(--text);
  border:1px solid var(--border);
  box-sizing:border-box;
  padding:10px;
}

.friends-dock{
  position:fixed;
  top:0;
  right:0;
  width:220px;
  height:100vh;
  background:var(--panel-2);
  color:var(--text);
  border-left:1px solid var(--border);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  display:flex;
  flex-direction:column;
  z-index:999;
  box-sizing:border-box;
}

.friends-dock-head{
  padding:12px 14px;
  font-weight:800;
  border-bottom:1px solid var(--border);
  background:rgba(255,255,255,.02);
}

.friend-row{
  margin-bottom:10px;
  padding:10px;
  background:rgba(255,255,255,.03);
}

@media (max-width:1100px){
  .dc-main-shell{
    margin-left:0;
    margin-right:0;
    grid-template-columns:1fr;
    padding:14px;
  }
}
/* ===== APP WINDOW SYSTEM ===== */
.app-window{
  margin-left:300px;
  margin-right:24px;
  max-width:1100px;
  padding:20px 24px;
  ..box-sizing:border-box;

  background:rgba(10,20,60,.55);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);

  box-shadow:
    0 20px 60px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.app-window-title{
  margin:0 0 6px;
  font-size:22px;
  font-weight:900;
  letter-spacing:.02em;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.6);
}

.app-window-subtitle{
  margin:0 0 18px;
  color:rgba(255,255,255,.78);
  line-height:1.45;
}

.app-card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  padding:14px;
  color:#fff;
  box-sizing:border-box;
}

.app-grid{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:16px;
}

@media (max-width: 900px){
  .app-window{
    margin-left:0;
    margin-right:0;
    padding:14px;
  }

  .app-grid{
    grid-template-columns:1fr;
  }
}
html, body {
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;

  /* your background */
  background: url('/main/images/stonewall.jpg') no-repeat center center fixed;
  background-size: cover;

  /* fallback color */
  background-color: #0b1f3a;
}
.friends-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.friend-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px;
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
}

.friend-row:hover{
  background:rgba(255,255,255,.08);
}

.friend-avatar{
  position:relative;
  width:40px;
  height:40px;
  flex:0 0 40px;
  background:rgba(12,34,78,.9);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

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

.friend-meta{
  min-width:0;
}

.friend-name{
  font-weight:800;
}

.friend-status{
  font-size:12px;
  color:rgba(255,255,255,.65);
}

/* presence dot */
.friend-presence{
  position:absolute;
  bottom:2px;
  right:2px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#666;
}

.friend-presence.online{
  background:#00ff88;
  box-shadow:0 0 6px #00ff88;
}