/* BRANDSCOUT CUSTOM THEME DIALOGS & TOAST NOTIFICATIONS */

/* FLOATING TOAST NOTIFICATIONS */
#brand-toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.brand-toast {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 5px solid #583322;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0F172A;
  pointer-events: auto;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s;
}

.brand-toast.success { border-left-color: #10B981; }
.brand-toast.error { border-left-color: #EF4444; }
.brand-toast.info { border-left-color: #3B82F6; }

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* CUSTOM THEME MODAL POPUPS */
.brand-dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  animation: backdropFade 0.2s ease-out;
}

@keyframes backdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.brand-dialog-box {
  background-color: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: dialogScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dialogScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.brand-dialog-header {
  padding: 1.5rem 1.75rem 1rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-dialog-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.brand-dialog-body {
  padding: 0 1.75rem 1.5rem 1.75rem;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

.brand-dialog-input {
  width: 100%;
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: #0F172A;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  box-sizing: border-box;
}
.brand-dialog-input:focus { border-color: #1B1D1F; outline: none; background-color: #FFFFFF; }

.brand-dialog-footer {
  padding: 1.25rem 1.75rem;
  background-color: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.brand-btn-cancel {
  background-color: #F1F5F9;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  padding: 0.65rem 1.25rem;
  border-radius: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.brand-btn-cancel:hover { background-color: #E2E8F0; }

.brand-btn-confirm {
  background-color: #1B1D1F;
  color: #FFFFFF;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.brand-btn-confirm:hover { background-color: #E0481D; }

.brand-btn-danger {
  background-color: #EF4444;
  color: #FFFFFF;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.brand-btn-danger:hover { background-color: #DC2626; }

/* GLOBAL MEDIA MANAGER MODAL TABS & GRID STYLES */
.modal-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.modal-tab-btn:hover {
  color: #0F172A;
  background: #E2E8F0;
}
.modal-tab-btn.active {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  font-weight: 700;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.modal-media-item {
  position: relative;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 14px;
  padding: 0.6rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.modal-media-item:hover {
  transform: translateY(-3px);
  border-color: #0F172A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-media-item.selected {
  border-color: #0F172A !important;
  background-color: #F8FAFC !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15) !important;
}

.modal-media-img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  border-radius: 8px;
  background-color: #F8FAFC;
  margin-bottom: 0.5rem;
  border: 1px solid #F1F5F9;
}

.modal-media-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-media-item.selected .modal-media-badge {
  display: flex;
}
