.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Header ===== */
.site-header {
 background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
  border-bottom: 1.5px solid #fce7f3 !important;
  box-shadow: 0 2px 12px rgba(233,30,140,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
	border-radius:10px;
	
}
.headers{
	    text-align: center;
    margin-bottom: 40px;
    padding: 40px 1px;
    background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
    border-radius: 12px;
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(233, 30, 99, 0.1) !important;

}
.headers h1{
	    font-size: 45px !important;
    font-weight: 700 !important;
    margin-bottom: 10px;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}
.headers p{
	    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px !important;
  height: 68px;
  display: flex;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white !important;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.site-subtitle {
  font-size: 0.75rem;
  color: #e6e4e4;
  margin-top: 1px;
}

/* ===== Main content ===== */
/* .main-content {
  flex: 1;
  padding: 32px 24px 48px;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 100%);
} */

.tool-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== Options bar ===== */
.options-bar {
  background: #ffffff;
  border: 1.5px solid #fce7f3 !important;
  border-radius: 16px !important;
  padding: 20px 24px !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(233,30,140,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

.options-left {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #be185d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.styled-select {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #404040;
  background: #fdf2f8;
  border: 1.5px solid #fbcfe8 !important;
  border-radius: 6px;
  padding: 8px 36px 8px 12px !important;
  appearance: none !important;
  cursor: pointer !important;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  min-width: 140px;
  outline: none !important;
}

.styled-select:hover {
  border-color: #f472b6 !important;
  background: #ffffff !important;
}

.styled-select:focus {
  border-color: #e91e8c;
  box-shadow: 0 0 0 3px rgba(233,30,140,0.12);
  background: #ffffff;
}

.select-arrow {
  position: absolute;
  right: 10px;
  width: 16px;
  height: 16px;
  color: #f472b6;
  pointer-events: none;
}

/* ===== Checkboxes ===== */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.styled-checkbox {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 5px !important;
  border: 2px solid #f9a8d4 !important;
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  position: relative;
}

.checkbox-custom::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s ease;
  margin-top: -2px;
}

.styled-checkbox:checked + .checkbox-custom {
  background: #e91e8c;
  border-color: #e91e8c;
  box-shadow: 0 0 0 3px rgba(233,30,140,0.12);
}

.styled-checkbox:checked + .checkbox-custom::after {
  transform: rotate(-45deg) scale(1);
}

.checkbox-label:hover .checkbox-custom {
  border-color: #ec4899;
}

.checkbox-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #525252;
}

/* ===== Panels grid ===== */
.panels-grid {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 0 16px;
  align-items: start;
}

.panel {
  background: #ffffff;
  border: 1.5px solid #fce7f3 !important; 
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(233,30,140,0.10), 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.panel:hover {
  box-shadow: 0 8px 32px rgba(233,30,140,0.13), 0 4px 12px rgba(0,0,0,0.07);
}

.panel-header {
  padding: 18px 20px 0;
	border-bottom: 0.5px solid #00000021;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.panel-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #404040 !important;
  letter-spacing: -0.2px;
}

.panel-hint {
  font-size: 0.72rem !important;
  color: #a3a3a3 !important;
  margin-bottom: 14px;
  line-height: 1.4;
}

.detected-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #be185d;
  background: #fdf2f8 !important;
  border: 1px solid #fbcfe8 !important;
  border-radius: 20px !important;
  padding: 3px 10px 3px 8px !important;
  white-space: nowrap;
}

.detected-badge strong {
  color: #e91e8c;
}

.result-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #be185d !important;
  background: #fdf2f8;
  border: 1px solid #fbcfe8 !important;
  border-radius: 20px !important;
  padding: 3px 10px !important;
  white-space: nowrap;
}

.result-count-badge strong {
  color: #e91e8c;
}

/* ===== Textarea ===== */
.text-area {

  font-size: 0.83rem;
  line-height: 1.6;
  color: #404040 !important;
  background: #fafafa;
  border: none !important;
  border-top: 1.5px solid #fce7f3;
  resize: vertical;
  width: 100%;
  min-height: 280px;
  padding: 16px 18px !important;
  outline: none !important;
  transition: background 0.18s;
}

.text-area:not([readonly]):focus {
  background: #ffffff !important;
}

.text-area::placeholder {
  color: #d4d4d4 !important;
  font-style: italic;
}

.text-area[readonly] {
  cursor: default;
  color: #525252;
}

/* ===== Panel actions ===== */
.panel-actions {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1.5px solid #fce7f3;
  background: #fdf2f8;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px !important;
  border: 1.5px solid transparent !important;
  padding: 7px 14px !important;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(219deg, #FB0E76 0%, #910694 100%) !important;
  color: #ffffff !important;
  border-color: #be185d !important;
  box-shadow: 0 2px 8px rgba(233,30,140,0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ec4899 0%, #e91e8c 100%);
  box-shadow: 0 4px 16px rgba(233,30,140,0.35);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-secondary {
  background: #ffffff !important;
  color: #be185d !important;
  border-color: #fbcfe8 !important;
}

.btn-secondary:hover {
  background: #fdf2f8 !important;
  border-color: #f472b6 !important;
  color: #e91e8c !important;
}

.btn-ghost {
  background: transparent !important;
  color: #737373 !important;
  border-color: transparent !important;
}

.btn-ghost:hover {
  background: #f5f5f5 !important;
  color: #404040 !important;
  border-color: #e5e5e5 !important;
}

#file-upload {
  display: none;
}

/* ===== Sort column ===== */
.sort-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding-top: 80px;
}

.sort-btn {
 
  justify-content: center;
  padding: 12px 10px !important;
  font-size: 0.78rem !important;
  flex-direction: column;
  gap: 8px;
  border-radius: 10px !important;
}

.sort-btn svg {
  flex-shrink: 0;
}

.sort-arrow-icon {
  opacity: 0.5;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #262626;
  color: #ffffff !important;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 10px 20px !important;
  border-radius: 30px !important;
  box-shadow: 0 8px 32px rgba(233,30,140,0.13), 0 4px 12px rgba(0,0,0,0.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 9999;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { background: #16a34a; }
.toast.error   { background: #dc2626; }
.toast.info    { background: var(--pink-700); }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.75rem;
  color: #a3a3a3;
  border-top: 1px solid #fce7f3;
  background: #ffffff;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .panels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sort-column {
    flex-direction: row;
    padding-top: 0;
    justify-content: center;
  }

  .sort-btn {
    flex-direction: row;
    width: auto;
    padding: 11px 28px;
    font-size: 0.875rem;
  }

  .sort-arrow-icon {
    display: none;
  }
}

@media (max-width: 640px) {
  .main-content { padding: 20px 16px 40px; }

  .options-bar { padding: 16px; gap: 16px; }
  .options-left { gap: 14px; }

  .panel-actions { padding: 12px; gap: 6px; }

  .btn { padding: 7px 12px; font-size: 0.78rem; }

  .header-inner { padding: 0 16px; }

  .headers h1 { font-size: 33px !important; }


  .text-area { min-height: 220px; }
}

@media (max-width: 400px) {
  .checkbox-group { gap: 10px; }
  .options-left { flex-direction: column; gap: 12px; }
}
