/* ══════════════════════════════════════════
   WHMCS Bootstrap → Tailwind Uyumluluk
   Sadece .whmcs içinde çalışır
   ══════════════════════════════════════════ */

/* Form Elemanları */
.whmcs .form-control,
.whmcs .form-select,
.whmcs .custom-select,
.whmcs select.form-control,
.whmcs textarea.form-control {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  color: #0f172a;
  font-size: 0.875rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.whmcs .form-control:focus,
.whmcs .form-select:focus,
.whmcs .custom-select:focus {
  border-color: #106cff;
  box-shadow: 0 0 0 1px #106cff;
  background-color: #fff;
}

.whmcs .form-control:disabled,
.whmcs .form-control[readonly] {
  opacity: 0.5;
  cursor: not-allowed;
}

.whmcs .form-control::placeholder {
  color: #94a3b8;
}

.dark .whmcs .form-control,
.dark .whmcs .form-select,
.dark .whmcs .custom-select,
.dark .whmcs select.form-control,
.dark .whmcs textarea.form-control {
  border-color: #1e293b;
  background-color: #0B1120;
  color: #e2e8f0;
}

.dark .whmcs .form-control:focus,
.dark .whmcs .form-select:focus,
.dark .whmcs .custom-select:focus {
  border-color: #106cff;
  box-shadow: 0 0 0 1px #106cff;
  background-color: #0f1829;
}

.dark .whmcs .form-control::placeholder {
  color: #475569;
}

/* Select Dropdown Ok */
.whmcs .form-select,
.whmcs .custom-select,
.whmcs select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.dark .whmcs .form-select,
.dark .whmcs .custom-select,
.dark .whmcs select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.763L10.825 4z'/%3E%3C/svg%3E");
}

/* Checkbox & Radio */
.whmcs .form-check-input {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  cursor: pointer;
}

.whmcs .form-check-input:checked {
  background-color: #106cff;
  border-color: #106cff;
}

.dark .whmcs .form-check-input {
  border-color: #334155;
  background-color: #0B1120;
}

.dark .whmcs .form-check-input:checked {
  background-color: #106cff;
  border-color: #106cff;
}

/* Input Group */
.whmcs .input-group {
  position: relative;
  display: flex;
  width: 100%;
}

.whmcs .input-group .input-group-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #e2e8f0;
  background-color: #f1f5f9;
  color: #64748b;
  border-radius: 0.5rem 0 0 0.5rem;
}

.whmcs .input-group .form-control {
  border-radius: 0 0.5rem 0.5rem 0;
  border-left: none;
}

.dark .whmcs .input-group .input-group-text {
  border-color: #1e293b;
  background-color: #1a2740;
  color: #64748b;
}

/* Label */
.whmcs .col-form-label,
.whmcs .form-control-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: #334155;
}

.dark .whmcs .col-form-label,
.dark .whmcs .form-control-label {
  color: #cbd5e1;
}

/* Butonlar */
.whmcs .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff !important;
  background: #106cff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 108, 255, 0.2);
  transition: all 0.2s;
}

.whmcs .btn-primary:hover {
  background: #0b4fc7;
  box-shadow: 0 4px 14px rgba(16, 108, 255, 0.4);
  transform: translateY(-1px);
}

.whmcs .btn-default,
.whmcs .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}

.whmcs .btn-default:hover,
.whmcs .btn-secondary:hover {
  border-color: #106cff;
  color: #106cff;
}

.dark .whmcs .btn-default,
.dark .whmcs .btn-secondary {
  border-color: #1e293b;
  background: #151f32;
  color: #cbd5e1;
}

.dark .whmcs .btn-default:hover,
.dark .whmcs .btn-secondary:hover {
  border-color: #106cff;
  color: #106cff;
}

.whmcs .btn-success {
  background: #10b981;
  color: #fff !important;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.whmcs .btn-success:hover { background: #059669; }

.whmcs .btn-danger {
  background: #ef4444;
  color: #fff !important;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.whmcs .btn-danger:hover { background: #dc2626; }

/* Tablo */
.whmcs .table {
  width: 100%;
  border-collapse: collapse;
}

.whmcs .table th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.whmcs .table td {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.whmcs .table tr:hover td {
  background: #f8fafc;
}

.dark .whmcs .table th {
  background: #1a2740;
  color: #64748b;
  border-bottom-color: #1e293b;
}

.dark .whmcs .table td {
  color: #cbd5e1;
  border-bottom-color: rgba(30, 41, 59, 0.4);
}

.dark .whmcs .table tr:hover td {
  background: rgba(26, 39, 64, 0.5);
}

/* Card */
.whmcs .card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.whmcs .card-header,
.whmcs .card-footer {
  padding: 1rem 1.25rem;
  background: rgba(248, 250, 252, 0.5);
}

.whmcs .card-header { border-bottom: 1px solid #f1f5f9; }
.whmcs .card-footer { border-top: 1px solid #f1f5f9; }
.whmcs .card-body { padding: 1.25rem; }

.whmcs .card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.dark .whmcs .card {
  background: #151f32;
  border-color: #1e293b;
}

.dark .whmcs .card-header,
.dark .whmcs .card-footer {
  background: #1a2740;
  border-color: #1e293b;
}

.dark .whmcs .card-body { color: #cbd5e1; }
.dark .whmcs .card-title { color: #f1f5f9; }

/* Alert */
.whmcs .alert {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.whmcs .alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: #059669; }
.whmcs .alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #dc2626; }
.whmcs .alert-info { background: rgba(16,108,255,0.08); border: 1px solid rgba(16,108,255,0.15); color: #106cff; }
.whmcs .alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.2); color: #d97706; }

.dark .whmcs .alert-success { background: rgba(16,185,129,0.12); color: #34d399; }
.dark .whmcs .alert-danger { background: rgba(239,68,68,0.12); color: #f87171; }
.dark .whmcs .alert-info { background: rgba(16,108,255,0.1); color: #60a5fa; }
.dark .whmcs .alert-warning { background: rgba(245,158,11,0.12); color: #fbbf24; }

/* Badge / Status */
.whmcs .badge,
.whmcs .label {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.whmcs .status-active { background: rgba(16,185,129,0.1); color: #10b981; }
.whmcs .status-suspended { background: rgba(245,158,11,0.1); color: #f59e0b; }
.whmcs .status-terminated,
.whmcs .status-cancelled { background: rgba(239,68,68,0.1); color: #ef4444; }
.whmcs .status-pending { background: rgba(99,102,241,0.1); color: #6366f1; }
.whmcs .status-open { background: rgba(16,185,129,0.1); color: #10b981; }
.whmcs .status-answered { background: rgba(16,108,255,0.1); color: #106cff; }
.whmcs .status-closed { background: rgba(100,116,139,0.1); color: #64748b; }
.whmcs .status-customer-reply { background: rgba(245,158,11,0.1); color: #f59e0b; }

.dark .whmcs .status-active { background: rgba(16,185,129,0.15); color: #34d399; }
.dark .whmcs .status-suspended { background: rgba(245,158,11,0.15); color: #fbbf24; }
.dark .whmcs .status-terminated,
.dark .whmcs .status-cancelled { background: rgba(239,68,68,0.15); color: #f87171; }
.dark .whmcs .status-pending { background: rgba(99,102,241,0.15); color: #818cf8; }
.dark .whmcs .status-open { background: rgba(16,185,129,0.15); color: #34d399; }
.dark .whmcs .status-answered { background: rgba(16,108,255,0.15); color: #60a5fa; }
.dark .whmcs .status-closed { background: rgba(100,116,139,0.15); color: #94a3b8; }
.dark .whmcs .status-customer-reply { background: rgba(245,158,11,0.15); color: #fbbf24; }

/* List Group */
.whmcs .list-group-item {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: #334155;
  background: transparent;
}

.whmcs .list-group-item:last-child { border-bottom: none; }
.whmcs a.list-group-item:hover { background: #f8fafc; color: #106cff; }

.dark .whmcs .list-group-item {
  color: #cbd5e1;
  border-bottom-color: rgba(30, 41, 59, 0.4);
}

.dark .whmcs a.list-group-item:hover {
  background: rgba(26, 39, 64, 0.5);
  color: #106cff;
}

/* DataTables */
.whmcs .dataTables_wrapper .dataTables_length select,
.whmcs .dataTables_wrapper .dataTables_filter input {
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.875rem;
  outline: none;
}

.dark .whmcs .dataTables_wrapper .dataTables_length select,
.dark .whmcs .dataTables_wrapper .dataTables_filter input {
  background: #0B1120;
  border-color: #1e293b;
  color: #e2e8f0;
}

.whmcs .dataTables_wrapper .dataTables_info,
.whmcs .dataTables_wrapper .dataTables_length label,
.whmcs .dataTables_wrapper .dataTables_filter label {
  font-size: 0.8125rem;
  color: #64748b;
}

.whmcs .dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  background: transparent !important;
  margin: 0 2px;
}

.whmcs .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.whmcs .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(16, 108, 255, 0.1) !important;
  color: #106cff !important;
  border-color: rgba(16, 108, 255, 0.3) !important;
}

.dark .whmcs .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-color: #1e293b !important;
  color: #64748b !important;
}

.dark .whmcs .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dark .whmcs .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: rgba(16, 108, 255, 0.15) !important;
  color: #106cff !important;
}

.dark .whmcs .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  color: #334155 !important;
}

/* Genel Dark Metin */
.dark .whmcs .text-dark,
.dark .whmcs .text-black { color: #e2e8f0 !important; }
.dark .whmcs .text-muted { color: #64748b !important; }
.dark .whmcs hr { border-color: #1e293b; }
.dark .whmcs a { color: #106cff; }.whmcs.whmcs.whmcs