﻿/* filepath: c:\xampp\htdocs\new\assets\templates\ptc_prime\css\custom.css */
/* ===== ProxySeva — non-theme utilities ===== */

/* Copy Animation */
.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.copied::after {
  position: absolute;
  top: 4px;
  right: 10%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: hsl(var(--base));
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% { opacity: 0; transform: translateX(100%); }
  50% { opacity: 0.7; transform: translateX(40%); }
  70% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; }
}

.cookies-card {
  width: 520px;
  padding: 30px;
  color: #1e2337;
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all 0.5s;
  background: #d1d1d1;
  border-radius: 5px;
}
.cookies-card.hide { bottom: -500px !important; }
.radius--10px { border-radius: 10px; }
.cookies-card__icon {
  width: 55px; height: 55px; border-radius: 50%;
  background-color: #6e6f70; color: #fff; font-size: 32px;
  display: inline-flex; justify-content: center; align-items: center;
}
.cookies-card__content { margin-bottom: 0; }
.cookies-btn { color: #363636; text-decoration: none; padding: 10px 35px; margin: 3px 5px; display: inline-block; border-radius: 999px; }
.cookies-btn:hover { color: #363636; }
@media (max-width: 767px) {
  .cookies-card { width: 100%; left: 0; bottom: 0; font-size: 14px; padding: 15px; }
}

.hover-input-popup { position: relative; }
.input-popup { display: none; }
.hover-input-popup .input-popup {
  display: block; position: absolute; bottom: 130%; left: 50%; width: 280px;
  background-color: #1a1a1a; color: #fff; padding: 20px; border-radius: 5px;
  transform: translateX(-50%); transition: all 0.3s;
}
.input-popup::after {
  position: absolute; content: ""; bottom: -19px; left: 50%; margin-left: -5px;
  border-width: 10px; border-style: solid;
  border-color: transparent transparent #1a1a1a transparent;
  transform: rotate(180deg);
}
.input-popup p { padding-left: 20px; position: relative; }
.input-popup p::before { position: absolute; content: ""; font-family: "Line Awesome Free"; font-weight: 900; left: 0; top: 4px; line-height: 1; font-size: 18px; }
.input-popup p.error { text-decoration: line-through; }
.input-popup p.error::before { content: "\f057"; color: #ea5455; }
.input-popup p.success::before { content: "\f058"; color: #28c76f; }

label.required:after { content: "*"; color: #dc3545 !important; margin-left: 2px; }
.dashboard-body .table .btn.btn-sm { padding: 8px; font-size: 15px; border-radius: 4px; }
.dashboard-body .btn--lg { padding: 15px 25px; }

.badge--pending,.badge--warning,.badge--success,.badge--primary,.badge--danger,.badge--dark {
  border-radius: 999px; padding: 2px 15px; position: relative;
}
.badge--warning  { background-color: rgba(255,159,67,0.1);  border: 1px solid #ff9f43; color: #ff9f43; }
.badge--success  { background-color: rgba(40,199,111,0.1);  border: 1px solid #28c76f; color: #28c76f; }
.badge--danger   { background-color: rgba(234,84,85,0.1);   border: 1px solid #ea5455; color: #ea5455; }
.badge--primary  { background-color: rgba(115,103,240,0.1); border: 1px solid #4634ff; color: #4634ff; }
.badge--dark     { background-color: rgba(0,0,0,0.1);       border: 1px solid #000;    color: #000; }

.show-filter { display: none; }
.alert.kyc-alert { background: #ffecb5 !important; border: #ff9f43; }
@media (max-width: 767px) {
  .responsive-filter-card { display: none; transition: none; }
  .show-filter { display: block; }
}

/* select2 */
.select2-dropdown { border: 0 !important; margin-top: 8px !important; border-radius: 5px !important; box-shadow: 0 3px 9px rgba(50,50,9,0.05), 6px 4px 19px rgba(115,103,240,0.2); }
.select2-search--dropdown { padding: 10px !important; border-color: #ced4da !important; }
.select2-container--default .select2-search--dropdown .select2-search__field { border-color: #ced4da !important; padding: 10px 20px; }
.select2-results__option.select2-results__option--selected,.select2-results__option--selectable,.select2-container--default .select2-results__option--disabled { padding: 12px 14px !important; border-bottom: 1px solid #eee; }
.select2-results__option.select2-results__message { text-align: center !important; padding: 12px 14px !important; }
.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar { width: 8px; border-radius: 5px; }
.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 5px; }
.select2-container--default .select2-results>.select2-results__options::-webkit-scrollbar-thumb { background: #ddd; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { display: none; }
.select2-container--default .select2-selection--single .select2-selection__arrow:after { position: absolute; right: 10px; top: 0; content: "\f107"; font-family: "Line Awesome Free"; font-weight: 900; transition: 0.3s; }
.select2-container--default .select2-selection--single { border-color: #ced4da !important; border-width: 1px !important; border-radius: 0.375rem !important; padding: 0.375rem 0.75rem !important; height: 100% !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 8px !important; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow:after { transform: rotate(-180deg); }
.select2-results__option:last-child { border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; }
.select2-results__option:first-child { border-top-left-radius: 5px; border-top-right-radius: 5px; }
.select2-results__option.select2-results__option--selected,.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background-color: #f1f1f1 !important; color: #000 !important; }
.select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: hsl(var(--base)) !important; outline: 0 !important; }
.select2-dropdown .country-flag { width: 25px; height: 25px; border-radius: 8px; }
.select2-dropdown .gateway-title { font-size: 14px; font-weight: 600; margin-bottom: 0 !important; }
.select2-dropdown .gateway-subtitle { font-size: 12px; margin-bottom: 0 !important; }
.select2-container--open .select2-selection.select2-selection--single,.select2-container--open .select2-selection.select2-selection--multiple { border-color: hsl(var(--base)) !important; border-width: 1px !important; border-radius: 0.375rem !important; }
.select2-container--default .select2-selection--single { border: 1px solid hsl(var(--black) / 0.2) !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow:after { top: 2px; }
.select2 .selection { width: 100% !important; height: 46px; }

.gateway-card { padding: 15px; }
.payment-card-title { padding: 13px 25px; text-align: center; background-color: hsl(var(--base)); border-radius: 5px; border: 0; margin-bottom: 0; color: #fff; }
.payment-system-list {
  --thumb-width: 100px; --thumb-height: 40px; --radio-size: 12px;
  --border-color: #cccccf59; --hover-border-color: hsl(var(--base));
  background-color: #fff; border-radius: 5px; height: 100%;
}
.payment-system-list.is-scrollable { max-height: min(388px, 70vh); overflow-x: auto; padding-block: 4px; }
.payment-system-list.is-scrollable::-webkit-scrollbar { width: 5px; }
.payment-system-list.is-scrollable::-webkit-scrollbar-thumb { background-color: hsl(var(--base)); border-radius: 10px; }
.payment-item { width: 100%; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 10px 18px; border: 1px solid #fff; border-top-color: var(--border-color); transition: all 0.3s; border-left: 3px solid transparent; }
.payment-item:first-child { border-top-color: #fff; border-radius: 5px 5px 0 0; }
.payment-item:has(.payment-item__radio:checked) { border-left: 3px solid var(--hover-border-color); border-radius: 0; }
.payment-item__check { border: 3px solid transparent; }
.payment-item:has(.payment-item__radio:checked) .payment-item__check { border: 3px solid hsl(var(--base)); }
.payment-item__info { display: flex; align-items: center; flex-wrap: wrap; max-width: calc(100% - var(--thumb-width)); }
.payment-item__check { width: var(--radio-size); height: var(--radio-size); border: 1px solid hsl(var(--base)); display: inline-block; border-radius: 100%; }
.payment-item__name { padding-left: 10px; width: calc(100% - var(--radio-size)); transition: all 0.3s; }
.payment-item__thumb { width: var(--thumb-width); height: var(--thumb-height); text-align: right; padding-left: 10px; }
.payment-item__thumb img { max-width: var(--thumb-width); max-height: var(--thumb-height); object-fit: cover; }
.deposit-info { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.deposit-info__title { max-width: 50%; margin-bottom: 0; text-align: left; }
.deposit-info__input { max-width: 50%; text-align: right; width: 100%; }
.deposit-info__input-select { border: 1px solid var(--border-color); width: 100%; border-radius: 5px; padding-block: 6px; }
.deposit-info__input-group { border: 1px solid var(--border-color); border-radius: 5px; }
.deposit-info__input-group .deposit-info__input-group-text { align-self: center; padding-left: 5px; }
.deposit-info__input-group .form--control { padding: 5px; border: 0; height: 35px; text-align: right; }
.deposit-info__input-group .form--control:focus { box-shadow: unset; }
.info-text .text,.deposit-info__input .text { font-size: 14px; }
.deposit-info__title .text.has-icon { display: flex; align-items: center; gap: 5px; }
.total-amount { border-top: 1px solid var(--border-color); }
.total-amount .deposit-info__title { font-weight: 600; }
.payment-item__btn { border: 0; border-block: 1px solid var(--border-color); border-bottom: 0; background: #fff; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; font-weight: 500; }
.payment-item:hover + .payment-item__btn { border-top-color: #fff; }
button .spinner-border { --bs-spinner-width: 1.5rem; --bs-spinner-height: 1.5rem; }
.adjust-height .payment-system-list.is-scrollable { max-height: 461px; display: flex; flex-direction: column; align-items: center; justify-content: start; }

.btn--primary { background-color: hsl(var(--base)) !important; }
.btn--primary:hover,.btn--primary:focus,.btn--primary:focus-visible { background-color: #063862 !important; }
.btn.disabled,.btn:disabled,fieldset:disabled .btn { background-color: hsl(var(--base)) !important; color: #fff !important; opacity: 0.5; }
.btn-outline--danger:disabled { background-color: hsl(var(--danger)) !important; opacity: 0.5; }

/* ===== Topbar: avatar + alignment fix (all screen sizes) ===== */

/* Initials avatar — always visible */
.dashboard .dashboard-header .topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #c51e39, #6c4fd8);
  color: #fff; font-weight: 800; font-size: 0.75rem;
  display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; letter-spacing: 0.5px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
}

/* Name text — always hidden (avatar replaces it everywhere) */
.dashboard .dashboard-header .user-info__name {
  display: none !important;
}

/* User button — strip extra chrome, just avatar + chevron */
.dashboard .dashboard-header .user-info__button {
  padding: 0 20px 0 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  gap: 0 !important;
}

/* Mobile layout fixes (≤991px) */
@media (max-width: 991px) {
  .dashboard .dashboard-header__inner {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .dashboard .dashboard-header__left {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
  }
  .dashboard .dashboard-header__grettings {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem !important;
  }

  .dashboard .dashboard-header__right {
    flex: 0 0 auto;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .dashboard .dashboard-body__bar { flex-shrink: 0; }

  /* Upgrade button: crown icon only on mobile */
  .dashboard .dashboard-header .btn-outline--base {
    padding: 6px 10px !important;
    font-size: 0.78rem !important;
    white-space: nowrap;
  }
  .dashboard .dashboard-header .btn-outline--base .btn-text {
    display: none !important;
  }
}

/* ===== Dashboard: .db-nav is now a sibling of .dashboard-header in
       master.blade.php — no body padding-top needed, .db-page handles
       the spacing below the nav bar.                                ===== */
.db-page { padding-top: 24px; }
@media screen and (max-width: 767px) { .db-page { padding-top: 18px; } }
@media screen and (max-width: 575px) { .db-page { padding-top: 14px; } }
