/* ============================================================
   PRO ADMIN INTERFACE - SIDEBAR, FORMS, TABLES
   ============================================================ */

/* ---- Sidebar Navigation ---- */
.pro-sidebar {
  position: fixed;
  left: 0;
  top: 62px;
  width: 260px;
  height: calc(100vh - 62px);
  background: var(--ink);
  overflow-y: auto;
  padding: 24px 0;
}

.pro-nav-item {
  padding: 12px 24px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  display: block;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.pro-nav-item:hover {
  color: var(--teal-light);
  background: rgba(43, 137, 138, 0.1);
}

.pro-nav-item.active {
  background: rgba(43, 137, 138, 0.2);
  color: var(--teal-light);
}

/* ---- Main Content Area ---- */
.pro-content {
  margin-left: 260px;
  padding: 40px;
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.05);
}

.form-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ---- Buttons ---- */
.cta-button {
  background: var(--teal);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  font-family: inherit;
}

.cta-button:hover {
  background: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.2);
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--txt2);
  color: white;
}

.btn-secondary:hover {
  background: var(--navy);
}

.btn-small {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-delete {
  background: var(--coral);
}

.btn-delete:hover {
  background: var(--coral-s);
}

/* ---- Checkbox Groups ---- */
.checkbox-group {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--navy);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

/* ---- Tables ---- */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table th {
  background: var(--sky3);
  padding: 16px;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid #eee;
}

.table td {
  padding: 16px;
  border-bottom: 1px solid #eee;
  color: var(--txt);
}

.table tr:hover {
  background: rgba(42, 157, 143, 0.05);
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.badge-active {
  background: rgba(82, 183, 136, 0.1);
  color: var(--green);
}

.badge-expired {
  background: rgba(244, 162, 97, 0.1);
  color: var(--coral);
}

/* ---- Cards ---- */
.card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ---- Settings Section ---- */
.settings-section {
  margin-bottom: 40px;
}

.settings-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eee;
}

/* ---- Headings in Pro Pages ---- */
.pro-content h1 {
  font-size: 32px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 40px;
}

.pro-content h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

/* ---- Text Styling ---- */
.pro-content p {
  color: var(--txt2);
  line-height: 1.6;
}

.pro-content a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.pro-content a:hover {
  color: var(--navy);
}

/* ---- Button Groups ---- */
.button-group {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.button-group .cta-button {
  flex: 1;
}

/* ---- Loading State ---- */
.pro-loading {
  text-align: center;
  padding: 4rem 2rem;
}

.pro-loading p {
  color: var(--txt2);
  margin-bottom: 2rem;
  font-size: 14px;
}

/* ---- Responsive Design ---- */
@media (max-width: 1024px) {
  .pro-sidebar {
    width: 220px;
  }

  .pro-content {
    margin-left: 220px;
    padding: 30px;
  }

  .form-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .pro-sidebar {
    width: 200px;
  }

  .pro-content {
    margin-left: 200px;
    padding: 20px;
  }

  .pro-content h1 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .table,
  .table thead,
  .table tbody,
  .table th,
  .table td,
  .table tr {
    display: block;
  }

  .table thead {
    display: none;
  }

  .table tr {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
  }

  .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    text-align: right;
  }

  .table td:before {
    content: attr(data-column);
    float: left;
    font-weight: 700;
    text-align: left;
  }
}
