
@import url('/fonts.css');

:root {
  --ink: #19243b;
  --muted: #78839a;
  --line: #e8ecf3;
  --purple: #6547e8;
  --surface: #ffffff;
  --page: #f6f7fb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

a { text-decoration: none; }
button, input { font: inherit; }

.dashboard-body { min-height: 100vh; }

.sidebar {
  width: 245px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 17px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #202b43;
  padding: 0 9px;
  margin-bottom: 43px;
}

.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, #8065fa, #5030cf);
  box-shadow: 0 5px 12px #6547e833;
}

.brand-light { font-weight: 500; margin-left: 5px; }

.side-label {
  color: #a0a8b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  margin: 0 11px 12px;
}

.nav-link {
  padding: 12px 13px;
  border-radius: 9px;
  margin-bottom: 5px;
  color: #667188;
  font-size: 13px;
  font-weight: 600;
  transition: .2s;
}

.nav-link:hover, .nav-link.active {
  background: #f0edff;
  color: #6044df;
}

.nav-link.active { box-shadow: inset 3px 0 #6547e8; }
.nav-link + .side-label { margin-top: 29px; }

.sidebar-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 16px 4px 0;
  border-top: 1px solid var(--line);
}

.profile-avatar, .top-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #e9e4ff;
  color: #6146dd;
  border-radius: 11px;
  font-weight: 800;
}

.profile-avatar { width: 38px; height: 38px; }
.profile-info { min-width: 0; flex: 1; }
.profile-info strong, .profile-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-info strong { font-size: 12px; }
.profile-info span { font-size: 10px; color: var(--muted); margin-top: 4px; }
.logout-icon { border: 0; background: transparent; color: #7a8498; cursor: pointer; font-size: 20px; }

.main-content { margin-left: 245px; padding: 32px 42px 22px; max-width: 1800px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.breadcrumb { color: #9aa3b4; font-size: 11px; margin-bottom: 13px; }
.breadcrumb strong { color: #5e6980; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Inter, sans-serif; }
.topbar h1 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.9px; margin-bottom: 7px; }
.muted { color: var(--muted); font-size: 12px; margin-bottom: 0; line-height: 1.7; }
.topbar-right { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.online-dot { width: 8px; height: 8px; background: #28ba82; border-radius: 50%; box-shadow: 0 0 0 4px #e0f8ed; }
.online-text { color: #65738b; font-size: 11px; margin-right: 12px; }
.top-avatar { width: 37px; height: 37px; border-radius: 50%; }

.welcome-banner {
  min-height: 235px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding: 30px 38px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(110deg, #27215f 0%, #4436a0 56%, #7657e9 100%);
  box-shadow: 0 12px 28px #4634a01c;
}

.banner-content { position: relative; z-index: 2; max-width: 500px; }
.eyebrow { font-size: 9px; font-weight: 800; letter-spacing: 1.8px; color: #c9bfff; }
.banner-content h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.23; letter-spacing: -1px; margin: 11px 0; }
.banner-content p { color: #d6d2fa; font-size: 12px; line-height: 1.7; max-width: 365px; margin-bottom: 18px; }
.banner-button { display: inline-block; padding: 10px 15px; border-radius: 8px; background: #fff; color: #4832ba; font-size: 11px; font-weight: 700; }

.banner-art { position: absolute; right: 9%; top: 50%; width: 200px; height: 200px; transform: translateY(-50%); }
.art-orbit { position: absolute; inset: 15px; border: 1px solid #ffffff36; border-radius: 50%; }
.orbit-two { inset: -5px; border-style: dashed; }
.art-center { position: absolute; inset: 52px; display: grid; place-items: center; border: 1px solid #ffffff40; border-radius: 26px; background: #ffffff20; backdrop-filter: blur(5px); font: 800 55px Inter; box-shadow: 0 10px 40px #17103f30; }
.art-tile { position: absolute; display: grid; place-items: center; width: 43px; height: 43px; background: #fff; color: #5d43d9; border-radius: 13px; font-size: 22px; box-shadow: 0 8px 20px #15113d30; }
.tile-one { top: 5px; left: 17px; }
.tile-two { right: 2px; top: 64px; }
.tile-three { bottom: 5px; left: 30px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 35px; }
.stat-card { display: flex; align-items: center; gap: 15px; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px; min-width: 0; }
.stat-icon { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.stat-icon.purple { color: #6649e6; background: #f0edff; }
.stat-icon.blue { color: #3282d8; background: #eaf4ff; }
.stat-icon.green { color: #14986c; background: #e6f8f0; }
.stat-label, .stat-card strong, .stat-card small { display: block; }
.stat-label { color: #7d879b; font-size: 11px; margin-bottom: 5px; }
.stat-card strong { font-size: 23px; font-family: Inter, sans-serif; }
.stat-card small { color: #a0a8b7; font-size: 10px; margin-top: 4px; }
.stat-card .status-value { color: #14986c; font-size: 18px; }

.applications-section { scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.dark-eyebrow { color: #8b7adf; }
.section-heading h2 { font-size: 22px; margin: 7px 0 5px; letter-spacing: -.6px; }
.search-input { width: 235px; max-width: 100%; padding: 11px 13px; border: 1px solid #e3e7f0; border-radius: 9px; outline: none; background: white; font-size: 11px; }
.search-input:focus { border-color: #8e7af0; box-shadow: 0 0 0 3px #6547e814; }

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.app-card { min-width: 0; display: flex; flex-direction: column; padding: 21px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.app-card:hover { transform: translateY(-4px); border-color: #d9d1ff; box-shadow: 0 13px 25px #25284b0a; }
.app-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 14px; font-size: 25px; margin-bottom: 20px; }
.app-icon.music { background: #f0eaff; color: #7854e9; }
.app-icon.crm { background: #e8f2ff; color: #317bd2; }
.app-icon.cms { background: #e2f8f0; color: #13966c; }
.app-icon.hr { background: #fff1e4; color: #d57b28; }
.app-icon.projects { background: #ffeaf1; color: #d54e83; }
.app-icon.default { background: #edf0f6; color: #56647a; }
.app-category { font-size: 8px; letter-spacing: 1px; font-weight: 800; color: #939db0; margin-bottom: 8px; }
.app-card h3 { font-size: 16px; letter-spacing: -.3px; margin-bottom: 8px; }
.app-description { min-height: 55px; color: #7f899c; font-size: 11px; line-height: 1.7; margin-bottom: 18px; }
.app-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #f0f2f7; padding-top: 15px; margin-top: auto; }
.app-status { color: #21956e; font-size: 9px; white-space: nowrap; }
.app-open { color: #6045dc; font-size: 10px; font-weight: 700; white-space: nowrap; }
.app-open:hover { color: #3621a6; }

.loading-card { grid-column: 1 / -1; padding: 25px; background: white; border-radius: 12px; color: var(--muted); font-size: 12px; }
.empty-message, .error-message { font-size: 12px; color: var(--muted); margin-top: 20px; }
.error-message { color: #c43c48; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 45px; border-top: 1px solid #e7eaf2; padding-top: 17px; color: #9ba4b5; font-size: 10px; }

.container { max-width: 900px; margin: 70px auto; padding: 24px; }
.card { background: white; padding: 24px; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 20px #00000008; }
button, .button-link { display: inline-block; padding: 12px 18px; border: 0; border-radius: 8px; background: #4338ca; color: white; text-decoration: none; cursor: pointer; }
label { display: block; margin: 16px 0 6px; font-weight: bold; }
input { display: block; width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 16px; margin-bottom: 12px; }
#message { color: #b91c1c; }

.demo-credentials {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #f8fafc;
  color: #475467;
  font-size: 13px;
}

.demo-credentials strong {
  display: block;
  color: #172033;
  font-size: 14px;
  margin-bottom: 12px;
}

.demo-credentials p {
  margin: 10px 0 4px;
  font-weight: 700;
  color: #344054;
}

.demo-credentials code {
  display: block;
  padding: 9px 10px;
  border: 1px solid #e1e6ef;
  border-radius: 7px;
  background: #fff;
  color: #4338ca;
  font-family: Consolas, monospace;
  line-height: 1.6;
  user-select: all;
}

@media (max-width: 1150px) {
  .main-content { padding: 28px 25px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner-art { right: 4%; opacity: .75; }
}

@media (max-width: 760px) {
  .sidebar { width: 68px; padding: 20px 8px; align-items: center; }
  .brand { padding: 0; margin-bottom: 35px; }
  .brand > span:last-child, .side-label, .nav-link:not(.active), .nav-link.active { font-size: 0; }
  .nav-link { width: 47px; height: 44px; padding: 13px; overflow: hidden; white-space: nowrap; }
  .nav-link.active { font-size: 0; }
  .sidebar-bottom { flex-direction: column; }
  .profile-info, .logout-icon { display: none; }
  .main-content { margin-left: 68px; padding: 24px 16px; }
  .topbar { align-items: flex-start; }
  .topbar-right { display: none; }
  .welcome-banner { padding: 25px; }
  .banner-art { right: -85px; opacity: .3; }
  .stats-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-input { width: 100%; }
  .app-grid { grid-template-columns: 1fr; }
  .dashboard-footer { flex-direction: column; }
}
