/*********************************
 ProxyLists.org - style.css
 Custom Bootstrap 5 theme + sitewide styles
**********************************/

/*----- Color Variables -----*/
:root {
  --primary: #2952A3;
  --secondary: #49526A;
  --accent: #29A36C;
  --danger: #E04242;
  --soft-border: #E3E7EE;
  --bg-main: #F7F9FB;
  --bg-white: #FFF;
  --text-main: #212529;
  --text-muted: #7A839B;
  --shadow: 0 2px 12px rgba(41,82,163,0.07);
  --radius: 1.25rem;
}

/*---- Typography ----*/
body,
input,
button,
select,
textarea {
  font-family: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h2, .display-5 { margin-bottom: 0.8rem; }
h3 { color: var(--secondary); margin-bottom: 0.6rem; font-weight: 700; }
a {
  color: var(--primary);
  text-decoration: none;
  transition: color .13s;
}
a:hover, a:focus {
  color: var(--accent);
  text-decoration: underline;
}
.text-primary { color: var(--primary)!important; }
.text-secondary { color: var(--secondary)!important; }
.text-success { color: var(--accent)!important; }
.text-danger { color: var(--danger)!important; }
.text-muted { color: var(--text-muted)!important; }
.bg-primary { background-color: var(--primary)!important; }
.bg-secondary { background-color: var(--secondary)!important; }
.bg-main { background-color: var(--bg-main)!important; }
.bg-light { background-color: #F7F9FB!important; }
.bg-white { background-color: #FFF!important; }
.border-soft { border-color: var(--soft-border)!important; }
.fw-bold { font-weight: 700!important; }
.fw-semibold { font-weight: 600!important; }

/*---- Spacing & Layout ----*/
.container {
  max-width: 1300px;
}
main {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 767.98px) {
  main { padding-left: 0.5rem; padding-right: 0.5rem; }
}

/*---- Hero Section ----*/
.hero-section {
  background: linear-gradient(180deg, #F7F9FB 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--soft-border);
  box-shadow: none;
}
.hero-logo {
  font-size: 2.7rem;
  font-family: 'Roboto',sans-serif;
  letter-spacing: 2px;
}
@media (max-width: 575.98px) {
  .hero-logo { font-size: 2rem; }
}

/*---- Buttons ----*/
.btn {
  text-decoration: none!important;
  font-weight: 500;
  border-radius: 2rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  transition: background .15s, color .13s, border-color .13s;
}
.btn-primary, .btn-primary:visited {
  background: var(--primary)!important;
  border-color: var(--primary)!important;
  color: #FFF!important;
}
.btn-primary:hover, .btn-primary:focus {
  background: #224583!important;
  border-color: #224583!important;
  color: #FFF!important;
}
.btn-outline-secondary {
  border-color: var(--secondary)!important;
  color: var(--secondary)!important;
  background: transparent!important;
}
.btn-outline-secondary:hover, .btn-outline-secondary:focus {
  background: var(--secondary)!important;
  color: #FFF!important;
}
.btn-success, .btn-success:visited {
  background: var(--accent)!important;
  border-color: var(--accent)!important;
  color: #FFF!important;
}
.btn-success:hover, .btn-success:focus {
  background: #208c5a!important;
  border-color: #208c5a!important;
}
.btn-sm { font-size: 0.98rem; padding: 0.33rem 1.1rem; }
.btn-lg { font-size: 1.15rem; padding: 0.7rem 2.2rem; }

/*---- Card Styles ----*/
.card {
  border-radius: var(--radius)!important;
  border: 1px solid var(--soft-border)!important;
  background: #FFF;
  box-shadow: var(--shadow);
}
.card .card-body { padding: 1.25rem 1.4rem; }
.card.bg-light { background: #F7F9FB!important; }
.card.bg-white { background: #FFF!important; }
.card.feature-card {
  min-height: 215px;
  transition: box-shadow .13s;
}
.card.feature-card:hover {
  box-shadow: 0 4px 24px rgba(41,82,163,0.13);
  border-color: var(--primary)!important;
}

/*---- Feature Grid ----*/
.features-grid .feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(41,82,163,0.08);
  border-radius: 0.9rem;
}
.features-grid h5 { font-size: 1.18rem; }
@media (max-width: 991.98px) {
  .features-grid .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 575.98px) {
  .features-grid .col-lg-4, .features-grid .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
}

/*---- Table Styles ----*/
.table {
  font-size: 1rem;
  background: #FFF;
  border-radius: var(--radius);
  overflow: hidden;
}
.table th, .table td {
  vertical-align: middle!important;
  border-color: var(--soft-border)!important;
}
.table thead th {
  font-weight: 700;
  background: #F7F9FB!important;
  color: var(--primary)!important;
  border-bottom-width: 2px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.table-striped>tbody>tr:nth-of-type(odd)>* {
  background-color: #F7F9FB;
}
.table-hover>tbody>tr:hover>td, .table-hover>tbody>tr:hover>th {
  background-color: #F1F6FD!important;
  transition: background .09s;
}
.proxy-table {
  border-radius: var(--radius);
  border: 1.5px solid var(--soft-border)!important;
}
.proxy-table td, .proxy-table th {
  padding: 0.65rem 0.8rem;
}
@media (max-width: 991.98px) {
  .proxy-table th, .proxy-table td { padding: 0.5rem 0.6rem; font-size: 0.97rem; }
}
@media (max-width: 767.98px) {
  .proxy-table th, .proxy-table td { font-size: 0.95rem; }
}
@media (max-width: 575.98px) {
  .proxy-table th, .proxy-table td { padding-left: 0.32rem; padding-right: 0.32rem; }
}

/*---- Sticky Table Header ----*/
.table-responsive {
  position: relative;
}
.proxy-table thead th.sticky-top { top: 0; z-index: 3; }

/*---- Premium Proxy Blur/Lock ----*/
.table-premium-blur td {
  position: relative;
  pointer-events: none;
}
.blurred {
  filter: blur(2.2px);
  user-select: none;
  color: #BBB;
  letter-spacing: 0.06em;
}
.premium-lock {
  position: absolute;
  right: -1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  background: #F7F9FB;
  border-radius: 50%;
  padding: 0.18em 0.2em;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}
.table-premium-blur .btn { pointer-events: none; }

/*---- Copy Button ----*/
.btn-copy {
  background: var(--accent)!important;
  color: #FFF!important;
  border: none!important;
  font-size: 1rem;
  transition: background .13s;
}
.btn-copy:hover, .btn-copy:focus {
  background: #208c5a!important;
  color: #FFF!important;
}
.btn-copy[disabled], .btn[disabled] {
  background: #E3E7EE!important;
  color: #B9BFCB!important;
  border: none!important;
  cursor: not-allowed;
}
.btn[disabled]:hover { background: #E3E7EE!important; color: #B9BFCB!important; }

/*---- Pagination ----*/
.pagination {
  margin-bottom: 0;
  --bs-pagination-border-radius: 2rem;
}
.pagination .page-item .page-link {
  border-radius: 2rem!important;
  border: 1.5px solid var(--soft-border)!important;
  color: var(--primary)!important;
  background: #FFF;
  font-weight: 500;
  margin: 0 0.17rem;
  transition: background .13s, color .13s, border-color .13s;
}
.pagination .page-item.active .page-link,
.pagination .page-item .page-link.bg-primary {
  background: var(--primary)!important;
  color: #FFF!important;
  border-color: var(--primary)!important;
}
.pagination .page-link:hover, .pagination .page-link:focus {
  background: #F1F6FD;
  color: var(--primary)!important;
  border-color: var(--primary)!important;
}

/*---- Sidebar ----*/
.sidebar-widget {
  border-radius: var(--radius);
  border: 1px solid var(--soft-border);
  background: #FFF;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.3rem 1.1rem 1.3rem;
}
.sidebar-widget h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}
@media (max-width: 991.98px) {
  .sidebar-widget { padding: 1.1rem 0.8rem; }
}
@media (max-width: 767.98px) {
  .sidebar-widget { margin-bottom: 1.1rem; }
}

/*---- Forms & Inputs ----*/
.form-control, .form-select {
  border-radius: 1.3rem!important;
  border: 1.5px solid var(--soft-border)!important;
  font-size: 1rem;
  transition: border .13s, box-shadow .12s;
  background: #FFF;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary)!important;
  box-shadow: 0 0 0 1.5px var(--primary)!important;
  outline: none;
}
input[type="password"]:not(:placeholder-shown):not(:focus):invalid {
  border-color: var(--danger)!important;
}

/* Password Meter */
.pw-strength-meter {
  margin-top: 0.2rem;
  height: 0.25rem;
  border-radius: 1rem;
  background: #E3E7EE;
  overflow: hidden;
}
.pw-strength-meter .strength-bar {
  height: 100%;
  border-radius: 1rem;
  transition: width .22s;
}
.pw-strength-weak  { background: #E04242!important; }
.pw-strength-med   { background: #F3B91A!important; }
.pw-strength-good  { background: #29A36C!important; }
.pw-strength-strong{ background: #2952A3!important; }

/*---- Filters ----*/
.filter-group label {
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 0.18rem;
}
.filter-group select, .filter-group input[type="range"] {
  width: 100%;
  margin-bottom: 0.6rem;
}

/*---- Tips Card ----*/
.tips-card {
  background: #F7F9FB;
  border: 1px solid var(--soft-border);
  border-radius: var(--radius);
  box-shadow: none;
  margin-bottom: 1.15rem;
  padding: 1.1rem 1.2rem;
}
.tips-card .tips-close {
  position: absolute;
  right: 0.9rem;
  top: 0.85rem;
  font-size: 1.12rem;
  color: #A7B2C6;
  cursor: pointer;
  background: none;
  border: none;
}
.tips-list {
  padding-left: 1.1em;
}
.tips-list li {
  color: var(--secondary);
  font-size: 0.98rem;
  margin-bottom: 0.25em;
}
.tips-list strong { color: var(--primary); }

/*---- Modal ----*/
.modal-content {
  border-radius: var(--radius)!important;
}
.modal-header {
  border-bottom: none;
  padding-bottom: 0;
}
.modal-title {
  font-weight: 700;
  color: var(--primary)!important;
}

/*---- Latency Visualizer ----*/
#latencyVisualizer .progress {
  height: 18px;
  background: #E3E7EE;
  border-radius: 2rem;
}
#latencyVisualizer .progress-bar {
  font-size: 0.97rem;
  border-radius: 2rem;
  transition: width .39s, background .13s;
}
#latencyVisualizer .small {
  font-size: 0.96rem;
  line-height: 1.4;
}

/*---- Related Resources (Explore More) ----*/
.related-resource {
  border-radius: var(--radius)!important;
  border: 1px solid var(--soft-border)!important;
  background: #F7F9FB!important;
  transition: box-shadow .12s, border-color .13s;
  min-height: 140px;
}
.related-resource .card-body {
  padding: 1.1rem 1.2rem 0.9rem 1.2rem;
}
.related-resource:hover {
  box-shadow: 0 4px 16px rgba(41,82,163,0.13);
  border-color: var(--primary)!important;
  background: #FFF!important;
}
.related-resource .fw-bold { font-size: 1.05rem; }
.related-resource .bi-chevron-right {
  font-size: 1rem;
  float: right;
  margin-top: 0.2rem;
}
@media (max-width: 767.98px) {
  .related-resource { min-height: 120px; }
}

/*---- Footer ----*/
footer {
  background: #FFF;
  border-top: 1.5px solid var(--soft-border);
  font-size: 1.01rem;
  color: var(--secondary);
  margin-top: 2.5rem;
}
footer .fw-bold {
  letter-spacing: 1.1px;
  font-family: 'Roboto',sans-serif;
}
footer ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.45rem;
}
footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.01rem;
}
footer a:hover { color: var(--accent); text-decoration: underline; }
footer .text-muted { color: var(--text-muted)!important; }
footer .text-primary { color: var(--primary)!important; }
footer .small { font-size: 0.95rem; }

/*---- Navbar (override Bootstrap) ----*/
.navbar {
  border-bottom: 1.5px solid var(--soft-border)!important;
  box-shadow: 0 2px 10px rgba(41,82,163,0.05);
  background: #FFF!important;
  padding-top: 0.38rem!important;
  padding-bottom: 0.38rem!important;
}
.navbar-brand {
  font-family: 'Roboto',sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--primary)!important;
}
.navbar-nav .nav-link {
  color: var(--primary)!important;
  font-weight: 500;
  letter-spacing: 0.1px;
  font-size: 1.07rem;
  transition: color .13s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-toggle:hover,
.navbar-nav .nav-link.active {
  color: var(--accent)!important;
}
.navbar-nav .dropdown-menu {
  border-radius: 0.8rem;
  border: 1px solid var(--soft-border);
  min-width: 210px;
  box-shadow: 0 4px 16px rgba(41,82,163,0.07);
  font-size: 1rem;
  margin-top: -3px!important;
}
@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    border-radius: 0;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
  }
}

/*---- Tooltip ----*/
.tooltip-inner {
  background-color: var(--secondary);
  color: #FFF;
  font-size: 0.99rem;
  border-radius: 0.55rem;
  padding: 0.4em 0.8em;
}
.bs-tooltip-auto[x-placement^=top] .arrow::before, 
.bs-tooltip-top .arrow::before {
  border-top-color: var(--secondary);
}
.bs-tooltip-bottom .arrow::before {
  border-bottom-color: var(--secondary);
}

/*---- Utility Classes ----*/
.rounded-4 { border-radius: 1.5rem!important; }
.shadow-sm { box-shadow: 0 2px 12px rgba(41,82,163,0.07)!important; }
.border-soft { border-color: var(--soft-border)!important; }

.fs-4 { font-size: 1.25rem!important; }
.fs-5 { font-size: 1.12rem!important; }
.fs-6 { font-size: 1.01rem!important; }

/*---- General ----*/
::-webkit-scrollbar-thumb { background: #E3E7EE; border-radius: 12px; }
::-webkit-scrollbar { background: #F7F9FB; width: 8px; }
::-webkit-input-placeholder { color: #B9BFCB; }
::-moz-placeholder { color: #B9BFCB; }
:-ms-input-placeholder { color: #B9BFCB; }
::placeholder { color: #B9BFCB; }

[tabindex]:focus, button:focus, .btn:focus, input:focus, .form-control:focus {
  outline: 2px solid var(--primary)!important;
  outline-offset: 1px;
  box-shadow: 0 0 0 2px rgba(41,82,163,0.08)!important;
}

/*---- Accessibility ----*/
.sr-only {
  position: absolute!important;
  width: 1px!important; height: 1px!important;
  padding: 0!important; margin: -1px!important;
  overflow: hidden!important; clip: rect(0,0,0,0)!important;
  border: 0!important;
}

/*----------------------------------
   END style.css
-----------------------------------*/