@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap");
.ac-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ac-shell > .mud-layout {
  flex: 1 1 auto;
}

.mud-main-content {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 25px);
  overflow: hidden;
}

.ac-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.ac-page-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  flex-shrink: 0;
}

.ac-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 8px 0;
}
.ac-section-title:first-child {
  margin-top: 0;
}

.ac-info-bar {
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
  flex-shrink: 0;
}

.ac-content-wrapper {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.ac-content-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.ac-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
}

.ac-bottom-bar {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  flex-shrink: 0;
}

.ac-aside {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid rgba(128, 128, 128, 0.2);
  overflow-y: auto;
  position: relative;
  transition: width 0.2s ease;
}
.ac-aside--collapsed {
  width: 36px;
  min-width: 36px;
}

.ac-aside-toggle {
  display: flex;
  justify-content: flex-start;
  padding: 4px 0 4px 4px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}
.ac-aside-toggle .mud-icon-button {
  opacity: 0.5;
}
.ac-aside-toggle .mud-icon-button:hover {
  opacity: 1;
}

.ac-aside--collapsed .ac-aside-toggle {
  justify-content: center;
  padding-left: 0;
}

.ac-aside-content {
  overflow-y: auto;
  flex: 1 1 auto;
}

.ac-footer {
  display: flex;
  align-items: center;
  height: 25px;
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  flex-shrink: 0;
  position: relative;
  z-index: 1300;
  background: var(--mud-palette-surface);
}

.mud-drawer {
  height: calc(100vh - 48px - 25px) !important;
  min-width: 48px !important;
}
.mud-drawer .mud-drawer-content {
  display: flex;
  flex-direction: column;
}
.mud-drawer .mud-nav-group-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.ac-drawer-toggle {
  display: flex;
  justify-content: flex-end;
  padding: 4px 4px 0 0;
  flex-shrink: 0;
}
.ac-drawer-toggle .mud-icon-button {
  opacity: 0.5;
}
.ac-drawer-toggle .mud-icon-button:hover {
  opacity: 1;
}

.mud-drawer:not(.mud-drawer--open) .ac-drawer-toggle {
  justify-content: center;
  padding-right: 0;
}

.mud-drawer:not(.mud-drawer--open) .mud-nav-link-expand-icon {
  margin-left: -7px;
}

.ac-drawer-bottom {
  margin-top: auto;
}

.mud-dialog {
  background: #262626;
}

.mud-popover {
  background: #262626;
}

.mud-card {
  border-radius: 4px;
  border: 1px solid rgba(128, 128, 128, 0.2);
  box-shadow: none;
}

.mud-card-actions {
  padding-right: 16px !important;
}

.mud-paper {
  border-radius: 4px;
}

.mud-theme-dark .mud-paper:not(.mud-popover):not(.mud-dialog) {
  box-shadow: none;
}
.mud-theme-dark .mud-elevation-1,
.mud-theme-dark .mud-elevation-2,
.mud-theme-dark .mud-elevation-3,
.mud-theme-dark .mud-elevation-4 {
  box-shadow: none;
}
.mud-theme-dark .mud-appbar {
  box-shadow: none;
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}
.mud-theme-dark .mud-drawer {
  box-shadow: none;
  border-right: 1px solid rgba(128, 128, 128, 0.2);
}

.mud-table {
  border-radius: 4px;
}
.mud-table .mud-table-head .mud-table-cell {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mud-button-root {
  text-transform: none;
}

.mud-button-root + .mud-button-root {
  margin-left: 8px;
}

.mud-nav-link {
  border-radius: 2px;
}

.mud-input-control-boolean-input {
  margin-top: 0;
  margin-bottom: 0;
  min-height: 38px;
}

.mud-icon-button.mud-button-root {
  width: 36px;
  height: 36px;
  padding: 6px;
}

.ac-kanban-card {
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 4px;
  transition: border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}
.ac-kanban-card:hover {
  border-color: rgba(128, 128, 128, 0.6);
  background-color: rgba(128, 128, 128, 0.06);
}
.ac-kanban-card--dragging {
  opacity: 0.4;
}

.ac-kanban--dragging .ac-kanban-card:not(.ac-kanban-card--dragging) {
  pointer-events: none;
}

.ac-kanban-col--drag-over > .mud-paper {
  outline: 2px dashed var(--mud-palette-primary);
  outline-offset: -2px;
  background-color: rgba(128, 128, 128, 0.04);
}

/* Kanban card description — 3-line clamp */
.ac-kanban-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Kanban column cards — scrollable */
.ac-kanban-col-cards {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* Kanban tag badges */
.ac-kanban-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 12px;
  white-space: nowrap;
  line-height: 1.4;
  flex-shrink: 0;
  margin-left: 8px;
}
.ac-kanban-tag--blocked {
  color: #d32f2f;
  border: 1.5px solid #d32f2f;
}
.ac-kanban-tag--review {
  color: #1976d2;
  border: 1.5px solid #1976d2;
}

html, body {
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

.ac-brand {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.fw-bold {
  font-weight: 700 !important;
}

/* Empty layout — centered content */
.ac-empty-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: var(--mud-palette-background);
}

/* Login card — pure HTML, no MudBlazor */
.ac-login-card {
  width: 100%;
  max-width: 440px;
  padding: 1rem;
}

.ac-login-paper {
  background: var(--mud-palette-surface);
  border-radius: 8px;
  padding: 2rem;
  min-width: 350px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.ac-login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ac-login-logo img {
  object-fit: contain;
}

.ac-login-logo h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--mud-palette-text-primary);
}

.ac-login-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--mud-palette-text-primary);
}

.ac-login-subtitle {
  text-align: center;
  font-size: 0.875rem;
  color: var(--mud-palette-text-secondary);
  margin: 0 0 1.5rem 0;
}

.ac-login-error {
  margin-bottom: 1rem;
}

/* Login form inputs — plain HTML styling */
.ac-login-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mud-palette-text-secondary);
  margin-bottom: 0.25rem;
}

.ac-login-card input[type="text"],
.ac-login-card input[type="password"],
.ac-login-card input[type="email"] {
  display: block;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.95rem;
  color: var(--mud-palette-text-primary);
  background: transparent;
  border: 1px solid var(--mud-palette-lines-inputs);
  border-radius: 4px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.ac-login-card input:focus {
  border-color: var(--mud-palette-primary);
}

.ac-login-card button[type="submit"] {
  display: block;
  width: 100%;
  padding: 0.625rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mud-palette-primary-text);
  background: var(--mud-palette-primary);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ac-login-card button[type="submit"]:hover {
  opacity: 0.9;
}

/* --- Resizable Textarea --- */
.ac-resizable-textarea textarea {
  resize: vertical !important;
  min-height: var(--ac-resizable-textarea-min-height, 80px);
  max-height: var(--ac-resizable-textarea-max-height, none);
}

/* --- Chip close button size fix --- */
.mud-chip .mud-icon-button.mud-button-root {
  width: 18px;
  height: 18px;
  padding: 0;
}

/* --- Outlined textarea (matches MudBlazor outlined variant) --- */
.ac-input-outlined {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--mud-palette-text-primary);
  background: transparent;
  border: 1px solid var(--mud-palette-lines-inputs);
  border-radius: var(--mud-default-borderradius);
  outline: none;
  box-sizing: border-box;
  resize: none;
  overflow-y: auto;
  transition: border-color 0.2s;
}

.ac-input-outlined:focus {
  border-color: var(--mud-palette-primary);
  border-width: 2px;
  padding: calc(0.625rem - 1px) calc(0.875rem - 1px);
}

.ac-input-outlined:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ac-input-outlined::placeholder {
  color: var(--mud-palette-text-secondary);
}

/* Clickable list item — cursor + hover highlight */
.ac-clickable {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--mud-default-borderradius);
  transition: background-color 0.15s ease;
}

.ac-clickable:hover {
  background-color: var(--mud-palette-action-default-hover);
}
