/* ==========================================================================
   TYLO - Premium Laundry Upload System CSS
   ========================================================================== */

/* 1. RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, sans-serif;
}

body.theme-black-white-mint {
  background-color: #f8f9fa;
  color: #1a1a1a;
  /* Allow scrolling, remove any scroll lock */
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 2. THEME COLORS */
:root {
  --mint-primary: #2ebf91;
  --mint-dark: #249974;
  --mint-light: #e6f7f2;
  --saffron: #ff9933;
  --black: #1a1a1a;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #e0e0e0;
  --gray-text: #666666;
  --danger: #dc3545;
}

/* 3. HEADER STRIP */
.header-main {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.header-logo {
  height: 40px; /* Fix giant logo issue */
  width: auto;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--black);
  display: block;
}

.brand-subtitle {
  font-size: 10px;
  color: var(--saffron);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

.search-action-area {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: flex-end;
}

.search-container {
  display: flex;
  align-items: center;
  background: var(--gray-light);
  border-radius: 20px;
  padding: 6px 16px;
  max-width: 400px;
  width: 100%;
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.user-actions {
  display: flex;
  gap: 16px;
}

.dropdown-trigger {
  background: transparent;
  border: none;
  font-weight: 600;
  cursor: pointer;
  color: var(--black);
}

/* 4. CATEGORY STRIP */
.category-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  overflow-x: auto;
}

.category-list {
  display: flex;
  list-style: none;
  padding: 12px 24px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.category-link {
  text-decoration: none;
  color: var(--gray-text);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.category-link.active-category {
  color: var(--mint-primary);
  border-bottom: 2px solid var(--mint-primary);
  padding-bottom: 4px;
}

/* 5. TOP CATEGORY STRIP (LAUNDRY TABS) */
.laundry-tabs-wrapper {
  background: var(--mint-light);
  padding: 12px 24px;
  border-bottom: 1px solid #d1ede4;
}

.laundry-tabs {
  display: flex;
  list-style: none;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.laundry-tabs::-webkit-scrollbar {
  display: none;
}

.laundry-tab {
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--mint-primary);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mint-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.laundry-tab.active {
  background: var(--mint-primary);
  color: var(--white);
}

/* 6. MAIN LAUNDRY LAYOUT */
.laundry-layout {
  display: flex;
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 24px 100px 24px; /* Padding bottom for summary bar */
  gap: 24px;
  flex: 1;
  width: 100%;
  align-items: flex-start;
}

/* LEFT SIDE: ITEM PANEL */
.item-panel {
  width: 300px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 250px);
  position: sticky;
  top: 150px;
}

.laundry-search-box {
  padding: 16px;
  border-bottom: 1px solid var(--gray-mid);
}

.laundry-search-box input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.laundry-search-box input:focus {
  border-color: var(--mint-primary);
}

.item-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.laundry-item-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--gray-light);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.laundry-item-btn:hover {
  background: var(--mint-light);
  border-color: var(--mint-primary);
}

/* RIGHT SIDE: UPLOAD PREVIEW */
.upload-preview-area {
  flex: 1;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 24px;
  min-height: calc(100vh - 250px);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-mid);
}

.live-count-summary {
  background: var(--mint-light);
  color: var(--mint-dark);
  padding: 6px 12px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
}

.uploaded-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.empty-laundry-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-text);
}

.empty-laundry-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.upload-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s;
}

.upload-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.upload-card-body {
  padding: 16px;
}

.upload-card-title {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--black);
}

.upload-card-meta {
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 12px;
}

.upload-card-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-text-danger {
  background: transparent;
  border: none;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

/* 7. SUMMARY BAR (BOTTOM) */
.laundry-summary-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.summary-details {
  display: flex;
  align-items: center;
}

.total-label {
  font-size: 16px;
  color: var(--gray-text);
  margin-right: 8px;
}

.total-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
}

.proceed-btn {
  background: var(--mint-primary);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.proceed-btn:disabled {
  background: var(--gray-mid);
  cursor: not-allowed;
}

/* 8. MODALS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-text);
}

.btn-outline-mint {
  background: transparent;
  border: 1px solid var(--mint-primary);
  color: var(--mint-primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary-mint {
  background: var(--mint-primary);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.full-width {
  width: 100%;
}

.hidden {
  display: none !important;
}

.input-group {
  position: relative;
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: var(--white);
}

.form-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--gray-text);
  pointer-events: none;
  transition: 0.2s ease;
  background: var(--white);
  padding: 0 4px;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.always-float {
  top: 0;
  font-size: 12px;
  color: var(--mint-primary);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .laundry-layout {
    flex-direction: column;
  }
  .item-panel {
    width: 100%;
    height: 300px;
    position: static;
  }
  .upload-preview-area {
    width: 100%;
    min-height: auto;
  }
}