/* ArchitectUI-inspired theme for GeekDiscovery */
:root {
  --arch-primary: #3f6ad8;
  --arch-sidebar-bg: #fff;
  --arch-sidebar-width: 250px;
  --arch-header-height: 60px;
  --arch-body-bg: #f1f4f6;
  --arch-text: #495057;
  --arch-text-muted: #6c757d;
  --arch-card-shadow: 0 0.46875rem 2.1875rem rgba(20,40,80,.03), 0 0.9375rem 1.40625rem rgba(20,40,80,.03), 0 0.25rem 0.53125rem rgba(20,40,80,.05), 0 0.125rem 0.1875rem rgba(20,40,80,.03);
  --arch-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { font-family: var(--arch-font); }
html { font-size: 15px; }
body { background: var(--arch-body-bg); color: var(--arch-text); margin: 0; }

/* Sidebar */
.app-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--arch-sidebar-width);
  background: var(--arch-sidebar-bg);
  border-right: 1px solid #dee2e6;
  z-index: 1030; overflow-y: auto;
  box-shadow: 7px 0 60px rgba(0,0,0,.03);
  transition: width .2s;
}
.app-sidebar .sidebar-brand {
  height: var(--arch-header-height); display: flex; align-items: center;
  padding: 0 1.2rem; font-size: 1.1rem; font-weight: 700;
  color: var(--arch-primary); border-bottom: 1px solid #e9ecef;
  text-decoration: none; gap: .5rem;
}
.app-sidebar .sidebar-brand svg { width: 26px; height: 26px; }
.sidebar-heading {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--arch-primary);
  padding: .8rem 1.2rem .3rem; opacity: .6;
}
.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li a {
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem 1.2rem; color: var(--arch-text);
  text-decoration: none; font-size: .85rem;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.sidebar-menu li a:hover { background: #e0f3ff; color: var(--arch-primary); }
.sidebar-menu li a.active {
  background: rgba(63,106,216,.06);
  color: var(--arch-primary); font-weight: 600;
  border-left-color: var(--arch-primary);
}
.sidebar-menu li a i.menu-icon { font-size: 1rem; width: 22px; text-align: center; opacity: .7; }

/* Header */
.app-header {
  position: fixed; top: 0; right: 0;
  left: var(--arch-sidebar-width);
  height: var(--arch-header-height);
  background: #fff; z-index: 1020;
  display: flex; align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 .46875rem 2.1875rem rgba(20,40,80,.03);
}
.app-header .page-title { font-size: .95rem; font-weight: 600; color: var(--arch-text); margin: 0; }
.app-header .header-right { margin-left: auto; display: flex; align-items: center; gap: .8rem; }
.app-header .user-widget {
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer; padding: .3rem .6rem; border-radius: .5rem;
}
.app-header .user-widget:hover { background: #f1f4f6; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--arch-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600;
}
.user-info { line-height: 1.2; }
.user-info .name { font-size: .8rem; font-weight: 600; color: var(--arch-text); }
.user-info .role { font-size: .7rem; color: var(--arch-text-muted); text-transform: capitalize; }

/* Main content */
.app-main {
  margin-left: var(--arch-sidebar-width);
  padding-top: var(--arch-header-height);
  min-height: 100vh;
}
.app-content { padding: 1.5rem; }

/* Cards */
.card {
  border: 1px solid rgba(63,106,216,.08);
  box-shadow: var(--arch-card-shadow);
  border-radius: .5rem; margin-bottom: 1rem;
}
.card-header {
  background: #fff; font-weight: 600;
  font-size: .85rem; padding: .75rem 1rem;
  border-bottom: 1px solid #e9ecef;
}
.card-body { padding: 1rem; }
.card-title { font-size: .85rem; font-weight: 600; margin-bottom: 0; }

/* Tables */
.table { font-size: .82rem; }
.table thead th {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; color: var(--arch-text-muted);
  background: #f8f9fa; border-bottom: 2px solid #dee2e6;
}
.table td { vertical-align: middle; }

/* Buttons */
.btn { font-size: .8rem; border-radius: .3rem; }
.btn-sm { font-size: .75rem; padding: .25rem .6rem; }
.btn-primary { background: var(--arch-primary); border-color: var(--arch-primary); }
.btn-primary:hover { background: #3560c0; border-color: #3560c0; }

/* Forms */
.form-control, .form-select { font-size: .82rem; border-radius: .3rem; }
.form-label { font-size: .78rem; font-weight: 600; color: var(--arch-text-muted); margin-bottom: .3rem; }
.form-group { margin-bottom: .8rem; }

/* Badges */
.badge { font-size: .7rem; font-weight: 500; }

/* Stat widgets */
.widget-stat { display: flex; justify-content: space-between; align-items: center; }
.widget-stat .stat-label { font-size: .72rem; color: var(--arch-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.widget-stat .stat-value { font-size: 1.6rem; font-weight: 300; color: var(--arch-text); }
.widget-stat .stat-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
}

/* Feed composer */
.feed-card { max-width: 640px; margin: 0 auto 1rem; }
.feed-card .post-media { background: #f8f9fa; text-align: center; }
.feed-card .post-media img { width: 100%; height: auto; object-fit: contain; }
.feed-card .post-media iframe { width: 100%; aspect-ratio: 16/9; border: 0; }
.feed-card .post-media .placeholder-lg { padding: 3rem 0; background: #f1f4f6; }
.feed-search { max-width: 640px; margin: 0 auto .8rem; }

/* Pagination */
.pagination { font-size: .8rem; }

/* Media grid cards */
.media-card .card-img-top { height: 140px; object-fit: cover; }
.media-card .card-body { padding: .6rem; }
.media-card .card-title { font-size: .78rem; }
.media-card .card-footer { padding: .4rem .6rem; }

/* Alerts */
.alert { font-size: .82rem; }

/* Dropdown */
.dropdown-menu { font-size: .82rem; border: 1px solid #dee2e6; box-shadow: var(--arch-card-shadow); }
.dropdown-item { font-size: .82rem; }

/* Scrollbar */
.app-sidebar::-webkit-scrollbar { width: 5px; }
.app-sidebar::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 3px; }

/* Responsive */
@media (max-width: 991px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.show { transform: translateX(0); }
  .app-header { left: 0; }
  .app-main { margin-left: 0; }
}
