/* Application Manager */

.am-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.am-empty,
.am-no-access {
  text-align: center;
  color: #a6adc8;
}

.am-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.am-card {
  background-color: #313244;
  border: 1px solid #585b70;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-width: 400px;
}

.am-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.am-username {
  font-weight: 600;
  color: #e3e8f9;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.am-status {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.am-status--pending          { background-color: rgba(250, 219, 107, 0.15); color: #fadb6b; }
.am-status--content_approved { background-color: rgba(250, 219, 107, 0.15); color: #fadb6b; }
.am-status--content_rejected { background-color: rgba(243, 139, 168, 0.15); color: #f38ba8; }
.am-status--id_approved      { background-color: rgba(166, 227, 161, 0.15); color: #a6e3a1; }
.am-status--id_rejected      { background-color: rgba(243, 139, 168, 0.15); color: #f38ba8; }

.am-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.am-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.am-link {
  color: rgb(143 193 255);
  font-size: 0.8rem;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
}

.am-link:hover {
  text-decoration: underline;
}

.am-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #aaaec6;
}

.am-empty-field {
  color: #6c7086;
  font-size: 0.8rem;
  font-style: italic;
}

.am-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1e1e2e;
}

.am-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.am-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.am-date {
  color: #aaaec6;
  font-size: 0.75rem;
}

.am-actions {
  display: flex;
  gap: 8px;
}

.am-btn-approve {
  background-color: #1e3a2f;
  color: #a6e3a1;
  border: 1px solid #a6e3a1;
  font-size: 0.8rem;
  padding: 2px 12px;
}

.am-btn-approve:hover {
  background-color: #a6e3a1;
  color: #1e1e2e;
}

.am-btn-reject {
  background-color: #3a1e1e;
  color: #f38ba8;
  border: 1px solid #f38ba8;
  font-size: 0.8rem;
  padding: 2px 12px;
}

.am-btn-reject:hover {
  background-color: #f38ba8;
  color: #1e1e2e;
}
