/* Combined styles from the React app */

#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em rgba(240, 122, 43, 0.55));
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em rgba(31, 122, 122, 0.55));
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: var(--color-muted);
}

/* Modal CSS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(26, 27, 31, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--color-paper);
  padding: 20px 22px 24px;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 48px var(--color-shadow);
  border: 1px solid var(--color-border);
}

.modal-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 36px 12px 0;
}

.modal-title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-subtitle {
  margin: 0;
  color: var(--color-muted);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(26, 27, 31, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.modal-close:hover {
  background: var(--color-muted);
  border-color: var(--color-muted);
  color: #fff;
  transform: translateY(-1px);
}

/* Form styles */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-content #loginform p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-content #loginform label {
  display: block;
}

.status-notify {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.status-notify input {
  width: auto;
}

.modal-content #loginform input[type="text"],
.modal-content #loginform input[type="password"],
.modal-content #loginform input[type="email"] {
  width: 100%;
  box-sizing: border-box;
}

.modal-content label {
  margin: 0;
  font-weight: 600;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-ink);
}

.modal-content button[type="submit"],
.modal-content input[type="submit"] {
  padding: 10px 15px;
  background-color: var(--color-button);
  color: #fff;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.modal-content button[type="submit"]:hover,
.modal-content input[type="submit"]:hover {
  background-color: var(--color-button-hover);
}

.modal-content button.models-add-button {
  background-color: var(--color-success);
}

.modal-content button.models-add-button:hover {
  background-color: #2b7f45;
}

/* General button styling */
.button,
button {
  padding: 10px 15px;
  background-color: var(--color-button);
  color: #fff;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin-left: 10px;
  font-weight: 600;
}

.button:hover {
  background-color: var(--color-button-hover);
}

/* Error and success messages */
.error {
  color: var(--color-danger);
  background-color: #fbe6e1;
  border: 1px solid var(--color-danger);
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
}

.success {
  color: var(--color-success);
  background-color: #e2f1e6;
  border: 1px solid var(--color-success);
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
}

/* Landing + section headings */
.landing-page h1,
.models-list h2,
.orders-list h2 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-top: 0;
}

/* Models list styles */
.models-header,
.orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.models-header h2,
.orders-header h2 {
  margin: 0;
}

.models-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.models-filter select,
.orders-filter select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.models-add-button {
  background-color: var(--color-success);
}

.models-add-button:hover {
  background-color: #2b7f45;
}

.models-list ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.model-item {
  border: 1px solid var(--color-border);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(26, 27, 31, 0.06);
}

.model-item.highlight {
  border-color: #f0b429;
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.35);
  background: #fff7df;
}

.model-item h3 {
  margin-top: 0;
  margin-bottom: 4px;
}

.model-meta {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Model screenshots */
.model-screenshots {
  margin: 10px 0;
}

.model-thumbnail {
  max-width: 100px;
  max-height: 100px;
  margin-right: 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

/* Model actions */
.model-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.model-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.model-actions .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
}

.model-actions .danger {
  margin-left: auto;
  background-color: #d64545;
}

.model-actions .danger:hover {
  background-color: #b93b3b;
}

.model-actions button:hover {
  background-color: var(--color-button-hover);
}

/* Orders list styles */
.orders-list ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.order-item {
  margin: 0;
}

.order-card {
  border: 1px solid var(--color-border);
  padding: 15px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(26, 27, 31, 0.06);
}

.order-item.highlight .order-card {
  border-color: #f0b429;
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.35);
  background: #fff7df;
}

.order-card h3 {
  margin: 0 0 4px;
}

.order-meta {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.order-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
}

.order-status.status-new {
  background: #ffe9b5;
  color: #8a5b00;
}

.order-status.status-in-progress,
.order-status.status-inprogress {
  background: #d7ecff;
  color: #1a5fa4;
}

.order-status.status-done {
  background: #d9f4e2;
  color: #2f8f4e;
}

.order-model-preview {
  margin-top: 6px;
}

.order-model-thumbnail {
  max-width: 80px;
  max-height: 80px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.order-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.order-actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-actions .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
}

.order-actions .danger {
  margin-left: auto;
  background-color: #d64545;
}

.order-actions .danger:hover {
  background-color: #b93b3b;
}

.order-actions .danger.is-disabled {
  background-color: #e3a5a5;
  cursor: not-allowed;
  opacity: 0.7;
}

.order-actions .danger.is-disabled:hover {
  background-color: #e3a5a5;
}

/* Order model thumbnail */

/* Current screenshots in edit form */
.current-screenshots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.screenshot-item img {
  max-width: 80px;
  max-height: 80px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.screenshot-item label {
  font-size: 12px;
  margin-top: 5px;
}
