﻿/* ========================================================
   DHMedia - BẢNG SETUP & QUẢN LÝ PHIM CHO ADMIN
   ======================================================== */

.admin-quick-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000 !important;
  font-weight: 800;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #fbbf24;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-quick-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.55);
  filter: brightness(1.1);
}

.admin-quick-add-btn:active {
  transform: translateY(0);
}

/* Modal Dialog */
.admin-quick-dialog {
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  background: #0d131f;
  color: #f3f4f6;
  padding: 0;
  max-width: 680px;
  width: 95vw;
  max-height: 90vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.15);
  overflow: hidden;
  margin: auto;
}

.admin-quick-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.aq-shell {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.aq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #111a2b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aq-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aq-head-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
}

.aq-head-title p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.aq-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.aq-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Tabs */
.aq-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  background: #090e17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aq-tab {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.aq-tab.is-active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.aq-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}

/* Form Styling */
.aq-form-group {
  margin-bottom: 14px;
}

.aq-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.aq-label span.req {
  color: #f87171;
}

.aq-label small {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

.aq-input, .aq-textarea, .aq-select {
  width: 100%;
  box-sizing: border-box;
  background: #151f30;
  border: 1px solid #27354d;
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  transition: all 0.2s;
}

.aq-input:focus, .aq-textarea:focus, .aq-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  background: #182438;
}

.aq-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.aq-pill {
  font-size: 11.5px;
  background: #1a273b;
  border: 1px solid #2d4160;
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}

.aq-pill:hover {
  background: #253854;
  color: #fff;
}

.aq-pill.is-selected {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #000;
  font-weight: 800;
}

/* Row 2 cols */
.aq-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Thumbnail preview */
.aq-thumbnail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  align-items: start;
}

.aq-preview-box {
  width: 150px;
  height: 90px;
  border-radius: 10px;
  background: #151f30;
  border: 1px dashed #334766;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.aq-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.aq-preview-empty {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  padding: 8px;
}

.aq-file-btn {
  display: inline-block;
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 6px;
  text-align: center;
  transition: all 0.15s;
}

.aq-file-btn:hover {
  background: #334155;
  color: #fff;
}

/* Footer / Submit */
.aq-footer {
  padding: 14px 20px;
  background: #111a2b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.aq-btn-cancel {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.aq-btn-submit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: 1px solid #fbbf24;
  color: #000;
  font-weight: 800;
  padding: 9px 24px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: all 0.2s;
}

.aq-btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Manage List */
.aq-manage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aq-manage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #151f30;
  border-radius: 10px;
  border: 1px solid #27354d;
}

.aq-manage-thumb {
  width: 50px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #090e17;
}

.aq-manage-info {
  flex: 1 1 auto;
  min-width: 0;
}

.aq-manage-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aq-manage-meta {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.aq-del-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.aq-del-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* Toast */
.aq-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #059669;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 999999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.aq-toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 600px) {
  .aq-thumbnail-row {
    grid-template-columns: 1fr;
  }
  .aq-grid-2 {
    grid-template-columns: 1fr;
  }
  .admin-quick-add-btn span {
    display: none;
  }
}
