#profile-picture {
  display: flex;
  justify-content: center;
}

#profile-picture img.avatar {
  object-fit: cover;
  width: 128px;
  height: 128px;
  border-radius: 50%;
}

#profile-upload-holder {
  padding-top: 0.5em;
}

#profile-upload-holder input[type="file"] {
  display: none;
}

.progress-bar {
  background-color: var(--primary);
  width: 2px;
}

#progress-bar-message {
  color: var(--gray);
}

.add-loading-dots:after {
  content: ' .';
  animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% {
    color: rgba(0, 0, 0, 0);
    text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
  }

  40% {
    color: black;
    text-shadow: .25em 0 0 rgba(0, 0, 0, 0), .5em 0 0 rgba(0, 0, 0, 0);
  }

  60% {
    text-shadow: .25em 0 0 black, .5em 0 0 rgba(0, 0, 0, 0);
  }

  80%, 100% {
    text-shadow: .25em 0 0 black, .5em 0 0 black;
  }
}

/* this makes the list items look nice on mobile */
.upgrade-features li {
  display: flex;
}

.upgrade-features li .pg-icon {
  margin-right: 0.5rem;
}

.upgrade-features li .upgrade-feature {
  width: 100%;
}

#subscription-details-table .subscription-detail {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin: 0.5rem;
}

#subscription-details-table .subscription-detail .subscription-detail-label {
  width: 16rem;
  text-align: right;
  margin-right: 1rem;
}

#subscription-details-table .subscription-detail .subscription-detail-value {
  width: 100%;
}

#subscription-details-table .subscription-detail .subdetail {
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

#plan-selector .plan {
  height: 100%; /* fill the whole column */
  /* prevent shifting when border is added */
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  padding: 1rem;
}

#plan-selector .plan.is-selected {
  border: 3px solid var(--primary);
}

#plan-selector .plan .plan-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
}

#plan-selector .plan .price {
  font-size: 1.5rem;
}

/* alpine.js cloak support */
[x-cloak] {
  display: none !important;
}

/* ensure htmx links use pointers */
a[hx-get] {
  cursor: pointer;
}

/* Ensure deep-chat web component behaves like a block container */
deep-chat {
  display: block;
}

/* When the global chat is expanded, shift app content so it doesn't sit underneath. */
@media (min-width: 768px) { /* md */
  body.chat-expanded .app-content { padding-right: 380px; }
}
@media (min-width: 1024px) { /* lg */
  body.chat-expanded .app-content { padding-right: 460px; }
}
@media (min-width: 1280px) { /* xl */
  body.chat-expanded .app-content { padding-right: 500px; }
}

.h-100 {
  height: 100%;
}

.muted-link {
  color: hsl(0, 0%, 71%);
}

.muted-link:hover {
  color: hsl(0, 0%, 48%);
  text-decoration: underline;
}

/* this is the default class assigned to errors by django forms */
.errorlist {
  color: var(--danger);
}

img.socialicon {
  padding-right: 0.5em;
  max-width: 24px;
  max-height: 24px;
}

/* css loader https://loading.io/css/ */
.lds-ripple {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid var(--primary);
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

@charset "utf-8";

/*
  App layout refinements for logged-in pages
  - Use more horizontal space
  - Keep a clean, professional density
  These classes are applied from templates/web/app/app_base.html
*/

/* Remove outer gutters from the app section and let content breathe edge-to-edge */
.section.app-shell {
  margin: 0; /* override tailwind m-4 from app-components */
}

/* Full-width container with subtle responsive gutters */
.app-container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(10px, 1.5vw, 24px);
  padding-right: clamp(10px, 1.5vw, 24px);
}

/* Slightly narrower, crisp sidebar */
.app-sidebar {
  /* 14rem = 224px; keeps labels readable while freeing space */
  width: 14rem;
  flex: 0 0 14rem;
}

/* Content should take all remaining width and avoid overflow issues */
.app-content {
  flex: 1 1 auto;
  min-width: 0; /* prevent table overflow squeezing */
}

/* Cards on app pages: reduce padding for a denser, pro feel */
.app-content .app-card {
  padding: 1rem; /* override lg:p-8 with a tighter default */
}

/* Tables: make rows more compact but still readable */
.app-content .table th,
.app-content .table td {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.app-content .table {
  font-size: 0.9375rem; /* ~15px, slightly denser than default */
}

/* Filter controls and inputs: slightly shorter controls for density */
.app-content .input,
.app-content input[type="text"],
.app-content .select,
.app-content select,
.app-content .btn {
  min-height: 2.25rem; /* ~36px */
}

/* Keep section inner cards and filter blocks visually lean */
.app-content .card .card-body {
  padding: 0.75rem 1rem;
}

/* Ensure long content (tables, code, etc.) can use full width without wrapping too early */
.app-content .pg-content {
  max-width: none;
}

@charset "utf-8";

