/* -------------------------------------------------
   SEGEX – Dashboard & Editor Layout
   Used for: dashboard, manage events/articles,
   add/edit event, add/edit article, login, etc.
   ------------------------------------------------- */

/* PAGE SHELL (centered, wide, same everywhere) */
.sx-wrap,
.sx-auth-wrap {
  max-width: 1180px;
  margin: 48px auto 96px;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Make sure auth wrapper is not squeezing content */
.sx-auth-wrap {
  display: block;
}

/* MAIN CARD (forms / lists) */
.sx-card {
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(8, 55, 102, 0.06);
  padding: 32px 32px 36px;
  box-sizing: border-box;
}

/* Page titles */
.sx-title,
.sx-card h1,
.sx-card h2 {
  font-family: inherit;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 600;
  color: #1a1f36;
  margin: 0 0 24px;
}

/* Small notes / alerts */
.sx-note {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ffd6d6;
  background: #fff5f5;
  color: #b13148;
  margin: 0 0 20px;
}

/* -------------------------------------------------
   FORMS
   ------------------------------------------------- */

.sx-field {
  margin-bottom: 20px;
}

.sx-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1a1f36;
  margin-bottom: 6px;
}

.sx-field input[type="text"],
.sx-field input[type="email"],
.sx-field input[type="password"],
.sx-field input[type="datetime-local"],
.sx-field input[type="file"],
.sx-field textarea,
.sx-field select {
  width: 100%;
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e6f0;
  font-size: 14px;
  color: #1a1f36;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sx-field textarea {
  min-height: 150px;
  resize: vertical;
}

.sx-field input:focus,
.sx-field textarea:focus,
.sx-field select:focus {
  outline: none;
  border-color: #e04f6a;
  box-shadow: 0 0 0 1px rgba(224, 79, 106, 0.08);
}

/* Two-column rows inside forms (city/date etc.) */
.sx-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.sx-row .sx-field {
  flex: 1 1 0;
}

/* -------------------------------------------------
   TABLES (manage events/articles, dashboard lists)
   ------------------------------------------------- */

.sx-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(8, 55, 102, 0.06);
  margin-top: 18px;
}

.sx-table thead {
  background: #f9fafc;
}

.sx-table th,
.sx-table td {
  padding: 16px 22px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid #eef1f6;
  color: #1a1f36;
}

.sx-table th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.sx-table tr:last-child td {
  border-bottom: none;
}

.sx-table tbody tr:nth-child(even) {
  background: #fbfcff;
}

.sx-table tbody tr:hover {
  background: #f5f7ff;
}

/* Right aligned actions column when needed */
.sx-table td.sx-actions-cell,
.sx-table th.sx-actions-cell {
  text-align: right;
  white-space: nowrap;
}

/* -------------------------------------------------
   BUTTONS
   ------------------------------------------------- */

.sx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #e04f6a;
  background: #ffffff;
  color: #e04f6a;
  transition: background-color 0.15s ease, color 0.15s ease,
              box-shadow 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
}

.sx-btn.primary {
  background: #e04f6a;
  color: #ffffff;
}

.sx-btn.bad {
  border-color: #f36a6a;
  color: #f36a6a;
}

.sx-btn:hover {
  background: #e04f6a;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(224, 79, 106, 0.25);
}

.sx-btn.primary:hover {
  background: #d64661;
}

.sx-btn.bad:hover {
  background: #f36a6a;
  border-color: #f36a6a;
  color: #ffffff;
}

/* Small “Back” button used above forms */
.sx-back {
  margin-bottom: 16px;
}

/* -------------------------------------------------
   HEADERS ABOVE TABLES (Manage Events / Articles)
   ------------------------------------------------- */

.sx-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.sx-section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1a1f36;
}

/* -------------------------------------------------
   RESPONSIVE
   ------------------------------------------------- */

@media (max-width: 960px) {
  .sx-wrap,
  .sx-auth-wrap {
    margin: 32px auto 64px;
    padding: 0 16px;
  }

  .sx-card {
    padding: 24px 18px 26px;
    border-radius: 18px;
  }

  .sx-table th,
  .sx-table td {
    padding: 12px 14px;
  }

  .sx-row {
    flex-direction: column;
  }

  .sx-actions {
    justify-content: flex-start;
  }
}
