/* =========================================================
   LegalClarity — Management & HITL tables (rinnovato)
   ========================================================= */

body {
  color: var(--lc-text, #1f2937);
  background: var(--lc-bg-page, #eef5f5);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
}

/* WRAPPER PRINCIPALE */
.table-wrapper {
  background: linear-gradient(180deg, #ffffff 0%, #f8fcfc 100%);
  padding: 0 0 22px;
  margin: 36px 0;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 77, 77, 0.10);
  overflow: hidden;
  border: 1px solid rgba(0, 128, 128, 0.08);
}

/* TABLE TITLE BAR */
.table-title {
  background: linear-gradient(135deg, #003636 0%, #004d4d 60%, #006464 100%);
  color: #fff;
  padding: 22px 30px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.table-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 194, 194, 0.22), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(0, 194, 194, 0.14), transparent 45%);
  pointer-events: none;
}

.table-title > * { position: relative; z-index: 1; }

.table-title h2 {
  margin: 4px 0 0;
  font-family: 'Yeseva One', serif;
  font-size: 26px;
  letter-spacing: 0.5px;
}

.table-title h2 b {
  background: linear-gradient(135deg, #ffffff, #d4f4f4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.table-title .btn-group { float: right; }

.table-title .btn {
  color: #fff;
  float: right;
  font-size: 13.5px;
  border: none;
  min-width: 50px;
  border-radius: 10px;
  outline: none !important;
  margin-left: 10px;
  font-weight: 600;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.table-title .btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.table-title .btn.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.table-title .btn.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.table-title .btn i {
  float: left;
  font-size: 19px;
}

.table-title .btn span {
  float: left;
  margin-top: 2px;
}

/* TABLE */
table.table {
  margin: 0;
  font-size: 14px;
}

table.table tr th,
table.table tr td {
  border-color: #eef4f4;
  padding: 14px 22px;
  vertical-align: middle;
}

table.table tr th {
  background: #f5fafa;
  color: var(--lc-green-dark, #004d4d);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--lc-green-light, #00a3a3);
}

table.table tr th:first-child { width: 60px; }
table.table tr th:last-child { width: 110px; }

table.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fcfdfd;
}

table.table-striped.table-hover tbody tr:hover {
  background: linear-gradient(90deg, #ecfafa, #f5fafa);
  transform: scale(1.001);
}

table.table tbody tr {
  transition: background .2s ease;
}

table.table th i {
  font-size: 13px;
  margin: 0 5px;
  cursor: pointer;
}

table.table td:last-child i {
  opacity: 0.85;
  font-size: 22px;
  margin: 0 5px;
}

table.table td a {
  font-weight: 600;
  color: var(--lc-green-dark, #004d4d);
  display: inline-block;
  text-decoration: none;
  outline: none !important;
  transition: transform .18s ease;
}

table.table td a:hover {
  color: var(--lc-green-accent, #00c2c2);
  transform: scale(1.08);
}

table.table td a.edit { color: #f59e0b; }

table.table td a.delete { color: #ef4444; }

table.table td i { font-size: 19px; }

table.table .avatar {
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
}

/* PAGINATION */
.pagination {
  float: right;
  margin: 14px 22px 0 0;
}

.pagination li a {
  border: none;
  font-size: 13px;
  min-width: 32px;
  min-height: 32px;
  color: var(--lc-text-muted, #6b7785);
  margin: 0 3px;
  line-height: 32px;
  border-radius: 8px !important;
  text-align: center;
  padding: 0 8px;
  font-weight: 600;
  transition: all .2s ease;
}

.pagination li a:hover {
  color: white;
  background: var(--lc-green-light, #00a3a3) !important;
}

.pagination li.active a,
.pagination li.active a.page-link {
  background: linear-gradient(135deg, #00c2c2, #008080) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(0, 128, 128, 0.3);
}

.pagination li.disabled a { color: #cbd5d5; }

.pagination li i {
  font-size: 16px;
  padding-top: 6px;
}

.hint-text {
  float: left;
  margin: 16px 0 0 22px;
  font-size: 13px;
  color: var(--lc-text-muted, #6b7785);
}

.hint-text b { color: var(--lc-green-dark, #004d4d); }

/* CHECKBOX CUSTOM */
.custom-checkbox { position: relative; }

.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  margin: 5px 0 0 3px;
  z-index: 9;
}

.custom-checkbox label:before {
  width: 20px;
  height: 20px;
  content: "";
  margin-right: 10px;
  display: inline-block;
  vertical-align: text-top;
  background: white;
  border: 1.5px solid #c5d4d4;
  border-radius: 6px;
  box-sizing: border-box;
  z-index: 2;
  transition: all .2s ease;
}

.custom-checkbox input[type="checkbox"]:checked + label:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotateZ(45deg);
  z-index: 3;
}

.custom-checkbox input[type="checkbox"]:checked + label:before {
  border-color: var(--lc-green, #008080);
  background: linear-gradient(135deg, #00c2c2, #008080);
}

.custom-checkbox input[type="checkbox"]:disabled + label:before {
  color: #b8b8b8;
  cursor: auto;
  box-shadow: none;
  background: #ddd;
}

/* MODAL (Bootstrap) */
.modal .modal-dialog {
  max-width: 480px;
}

.modal .modal-content {
  border-radius: 18px;
  border: none;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 77, 77, 0.18);
}

.modal .modal-header {
  padding: 22px 28px 12px;
  border-bottom: 1px solid #eef4f4;
  background: linear-gradient(180deg, #ffffff, #f8fcfc);
}

.modal .modal-title {
  display: inline-block;
  font-family: 'Yeseva One', serif;
  font-size: 20px;
  color: var(--lc-green-dark, #004d4d);
}

.modal .modal-body {
  padding: 22px 28px;
}

.modal .modal-footer {
  background: #f8fcfc;
  border-top: 1px solid #eef4f4;
  border-radius: 0 0 18px 18px;
  padding: 16px 28px;
}

.modal .form-control,
.modal .form-select {
  border-radius: 10px;
  box-shadow: none;
  border: 1.5px solid #e2eded;
  padding: 10px 14px;
  font-size: 14px;
  transition: all .2s ease;
}

.modal .form-control:focus,
.modal .form-select:focus {
  border-color: var(--lc-green-accent, #00c2c2);
  box-shadow: 0 0 0 4px rgba(0, 194, 194, 0.16);
}

.modal textarea.form-control { resize: vertical; }

.modal .btn {
  border-radius: 10px;
  min-width: 110px;
  font-weight: 600;
}

.modal form label {
  font-weight: 600;
  font-size: 13px;
  color: var(--lc-green-dark, #004d4d);
  margin-bottom: 6px;
}

.modal .form-group {
  margin-bottom: 16px;
}

/* CLEARFIX adapted */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
