/* =====================================================
   CATTLEMANIA PLAYER OFFER CENTER
   CLEAN MODAL SYSTEM
===================================================== */

/* ===============================
   OVERLAY
================================ */

.offer-center-overlay {
  display: none;

  position: fixed;

  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  background: rgba(0, 0, 0, 0.85);

  align-items: center;
  justify-content: center;

  z-index: 999999999;

  padding: 20px;

  box-sizing: border-box;
}

/* OPEN STATE */

.offer-center-overlay.open {
  display: flex;
}

/* SUPPORT INLINE JS DISPLAY FLEX */

#offerInboxModal[style*="display: flex"] {
  display: flex !important;
}

/* ===============================
   MAIN WINDOW
================================ */

.offer-center-window {
  width: 1100px;

  max-width: 95vw;

  height: 650px;

  max-height: 90vh;

  background: #111827;

  border: 2px solid #334155;

  border-radius: 12px;

  overflow: hidden;

  display: flex;

  flex-direction: column;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

/* ===============================
   HEADER
================================ */

.offer-center-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 15px 20px;

  background: #0f172a;

  color: white;
}

.offer-center-title {
  font-size: 24px;

  font-weight: bold;

  color: #38bdf8;
}

.offer-center-close {
  background: #991b1b;

  color: white;

  border: none;

  border-radius: 6px;

  padding: 8px 14px;

  cursor: pointer;
}

.offer-center-close:hover {
  background: #dc2626;
}

/* ===============================
   TABS
================================ */

.offer-center-tabs {
  display: flex;

  background: #1e293b;
}

.offer-tab {
  flex: 1;

  padding: 12px;

  background: none;

  border: none;

  color: white;

  cursor: pointer;
}

.offer-tab.active {
  background: #2563eb;
}

/* ===============================
   BODY
================================ */

.offer-center-body {
  display: flex;

  flex: 1;

  overflow: hidden;
}

/* ===============================
   OFFER LIST
================================ */

.offer-list-panel {
  width: 35%;

  border-right: 1px solid #334155;

  overflow-y: auto;

  padding: 10px;
}

.offer-list-item {
  background: #1e293b;

  color: white;

  padding: 15px;

  margin-bottom: 10px;

  border-radius: 8px;

  cursor: pointer;
}

.offer-list-item:hover {
  background: #334155;
}

.offer-list-title {
  font-size: 16px;
}

.offer-list-price {
  color: #22c55e;

  font-size: 20px;

  font-weight: bold;
}

.offer-list-date {
  color: #94a3b8;

  font-size: 12px;
}

/* ===============================
   DETAILS
================================ */

.offer-details-panel {
  width: 65%;

  padding: 20px;

  overflow-y: auto;
}

.offer-details-card {
  background: #1e293b;

  color: white;

  padding: 20px;

  border-radius: 10px;
}

.offer-price {
  color: #22c55e;

  font-size: 28px;

  font-weight: bold;
}

.offer-message {
  background: #0f172a;

  padding: 12px;

  border-radius: 8px;
}

/* ===============================
   BUTTONS
================================ */

.accept-offer-btn {
  background: #16a34a;

  color: white;

  border: none;

  padding: 12px 25px;

  border-radius: 8px;

  cursor: pointer;
}

.reject-offer-btn {
  background: #dc2626;

  color: white;

  border: none;

  padding: 12px 25px;

  border-radius: 8px;

  cursor: pointer;
}

.offer-actions {
  display: flex;

  gap: 15px;

  margin-top: 25px;
}

/* ===============================
   PLACEHOLDER
================================ */

.offer-placeholder {
  color: white;

  text-align: center;

  margin-top: 100px;
}

/* ===============================
   SCROLLBARS
================================ */

.offer-list-panel::-webkit-scrollbar,
.offer-details-panel::-webkit-scrollbar {
  width: 8px;
}

.offer-list-panel::-webkit-scrollbar-thumb,
.offer-details-panel::-webkit-scrollbar-thumb {
  background: #475569;

  border-radius: 10px;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 700px) {
  .offer-center-window {
    width: 100%;

    height: 90vh;
  }

  .offer-center-body {
    flex-direction: column;
  }

  .offer-list-panel,
  .offer-details-panel {
    width: 100%;
  }

  .offer-list-panel {
    height: 40%;
  }
}
/* =====================================================
   SEND OFFER MODAL - COMPACT VERSION
===================================================== */

/* MAIN OVERLAY */

#offerModal.offer-modal {
  display: none;

  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.85);

  align-items: center;

  justify-content: center;

  z-index: 999999999;

  padding: 20px;

  box-sizing: border-box;
}

/* OPEN STATE */

#offerModal.offer-modal[style*="display: flex"] {
  display: flex !important;
}

/* BOX */

#offerModal .offer-box {
  width: 400px;

  max-width: 95vw;

  max-height: 85vh;

  background: #111827;

  border: 2px solid #334155;

  border-radius: 12px;

  overflow: hidden;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}

/* HEADER */

#offerModal .offer-header {
  padding: 10px 15px;

  font-size: 20px;

  background: #0f172a;

  color: #38bdf8;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

/* CLOSE BUTTON */

#offerModal .offer-header span {
  color: white;

  cursor: pointer;
}

/* BODY */

#offerModal .offer-body {
  padding: 12px 15px;

  color: white;
}

/* LABELS */

#offerModal .offer-body label {
  margin-top: 6px;

  margin-bottom: 3px;

  font-size: 13px;

  display: block;
}

/* INPUTS */

#offerModal .offer-body input,
#offerModal .offer-body select {
  width: 100%;

  height: 36px;

  padding: 6px 10px;

  box-sizing: border-box;

  background: #020617;

  color: white;

  border: 1px solid #334155;

  border-radius: 8px;
}

/* MESSAGE */

#offerModal .offer-body textarea {
  width: 100%;

  height: 50px;

  min-height: 50px;

  padding: 8px;

  box-sizing: border-box;

  background: #020617;

  color: white;

  border: 1px solid #334155;

  border-radius: 8px;

  resize: none;
}

/* CATTLE RESULTS */

#offerModal #cattleResults {
  max-height: 60px;

  overflow-y: auto;

  margin-top: 5px;
}

#offerModal .cattle-result {
  padding: 5px 8px;

  font-size: 13px;

  background: #1e293b;

  color: white;

  cursor: pointer;
}

/* SEND BUTTON */

#offerModal .offer-send-btn {
  width: 100%;

  height: 38px;

  padding: 8px;

  margin-top: 10px;

  font-size: 14px;

  background: #16a34a;

  color: white;

  border: none;

  border-radius: 8px;

  cursor: pointer;
}
