/* Axira Cloud UI layer
   Uses the same design tokens/style.css as axira.eu, with app-specific layout helpers. */

body {
  margin: 0 !important;
  min-height: 100vh;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(30,198,179,0.14), transparent 26rem),
    radial-gradient(circle at 85% 20%, rgba(80,130,255,0.10), transparent 28rem);
  z-index: -1;
}

body > h1,
body > h2,
body > h3,
body > p,
body > form,
body > ul,
body > hr,
body > table,
body > .card,
body > .grid,
body > .top,
body > .header,
body > .section,
body > .sharebox,
body > .msg,
body > .filters,
body > .badges {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

body > h1,
body > .top,
body > .header {
  margin-top: 2rem;
}

body > h1,
body > h2,
body > h3 {
  color: var(--text);
}

body > p,
.muted,
small {
  color: var(--muted) !important;
}

hr,
.hr {
  border: 0;
  height: 1px;
  background: var(--border) !important;
}

.card,
.msg,
.sharebox,
.status,
.shareform,
form:not(.rename):not([style*="display:inline"]),
table {
  background: linear-gradient(180deg, rgba(11,25,48,0.96), rgba(7,17,32,0.96)) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.card,
.msg,
.sharebox,
.status,
.shareform,
form:not(.rename):not([style*="display:inline"]) {
  padding: 1rem !important;
}

form.rename,
.actions form,
td form {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

input,
select,
textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

input::placeholder,
textarea::placeholder {
  color: rgba(164,175,198,0.8);
}

button,
.button,
.nav-button,
a.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  padding: 0.7rem 1rem !important;
  background: var(--accent) !important;
  color: #020308 !important;
  font-weight: 700;
  cursor: pointer;
}

button:hover,
.button:hover {
  filter: brightness(1.07);
}

button.danger,
.danger button,
button[name="delete"],
button.dangerous {
  background: rgba(243,91,91,0.14) !important;
  border-color: rgba(243,91,91,0.55) !important;
  color: #ffd5d5 !important;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style-position: inside;
}

li {
  border-color: rgba(255,255,255,0.08) !important;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 1rem !important;
}

.top,
.header,
.row,
.actions,
.badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.top,
.header,
.row {
  align-items: flex-start;
  justify-content: space-between;
}

.actions,
.badges {
  align-items: center;
}

.badge {
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  background: var(--accent-soft) !important;
  color: var(--text) !important;
  padding: 0.45rem 0.75rem !important;
}

.badge.warning,
tr.warning {
  background: rgba(255,193,7,0.12) !important;
}

.badge.dangerous,
.badge.quarantine,
tr.dangerous,
tr.quarantine {
  background: rgba(243,91,91,0.13) !important;
}

tr.pending {
  background: rgba(30,198,179,0.09) !important;
}

table {
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  margin-top: 1rem;
}

th,
td {
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text);
  padding: 0.8rem !important;
}

th {
  background: rgba(255,255,255,0.04) !important;
  color: var(--muted) !important;
  text-align: left;
}

.cloud-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem;
}

.cloud-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cloud-header img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(30,198,179,0.35));
}

.cloud-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cloud-hero-card {
  max-width: 760px;
  margin: 3rem auto;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11,25,48,0.96), rgba(7,17,32,0.96));
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

@media (max-width: 700px) {
  body > h1,
  body > h2,
  body > h3,
  body > p,
  body > form,
  body > ul,
  body > hr,
  body > table,
  body > .card,
  body > .grid,
  body > .top,
  body > .header,
  body > .section,
  body > .sharebox,
  body > .msg {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

/* Shared Axira Cloud app shell */
.cloud-page { min-height: 100vh; }
.cloud-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.cloud-main > * + * { margin-top: 1rem; }
.cloud-header .logo-img { height: 64px; }
.cloud-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.cloud-nav a {
  color: var(--muted);
  font-weight: 600;
}
.cloud-nav a:hover { color: var(--text); text-decoration: none; }
.cloud-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 1.5rem 1rem;
  text-align: center;
}
.cloud-footer p { margin: 0; }
.hero-card {
  background: linear-gradient(180deg, rgba(11,25,48,0.96), rgba(7,17,32,0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.4rem, 4vw, 3rem);
  box-shadow: 0 22px 55px rgba(0,0,0,0.26);
}
.page-title {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 68ch; }
.form-card { max-width: 520px; }
@media (max-width: 720px) {
  .nav-inner { align-items: flex-start; }
  .cloud-nav { width: 100%; justify-content: flex-start; }
  .cloud-header .logo-img { height: 52px; }
}
