/* Vertix x - Custom CSS Stylesheet */

:root {
  --primary-color: #1e88e5;
  --primary-hover: #1565c0;
  --secondary-color: #0d47a1;
  --bg-light: #f4f6f9;
  --card-bg: #ffffff;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --success-color: #16a34a;
  --danger-color: #dc2626;
  --warning-color: #f57f17;
  --border-radius: 14px;
}

body {
  background-color: var(--bg-light);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  padding-bottom: 75px; /* Leave room for fixed bottom nav */
}

/* App Outer Wrapper */
.app-container {
  max-width: 500px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #ffffff;
  position: relative;
  box-shadow: 0 0 25px rgba(0,0,0,0.08);
}

/* Header Navbar */
.app-header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.app-header h1, .app-header h5 {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.app-header .logo-img {
  height: 36px;
  border-radius: 6px;
  object-fit: contain;
}

/* Top Carousel Banner */
.banner-slider {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.banner-slider img {
  height: 170px;
  object-fit: cover;
  width: 100%;
}

/* Card Component */
.v-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 16px;
  margin: 15px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Wallet Card */
.wallet-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  border-radius: var(--border-radius);
  padding: 22px;
  margin: 15px;
  box-shadow: 0 8px 20px rgba(30, 136, 229, 0.3);
}

.wallet-balance {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 5px;
}

.wallet-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.wallet-stat-item h6 {
  font-size: 0.8rem;
  opacity: 0.85;
  margin: 0;
  text-transform: uppercase;
}

.wallet-stat-item p {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

/* Plan Card Layout */
.plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 16px;
  margin: 15px;
  border: 1px solid #eef2f6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.plan-info {
  flex: 1;
  padding-right: 12px;
}

.plan-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.plan-badge {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.plan-media {
  text-align: center;
}

.plan-media img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid #eee;
}

.btn-buy-plan {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
  border: none;
  font-size: 0.9rem;
  width: 100%;
  transition: background-color 0.2s ease;
}

.btn-buy-plan:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

/* HIGHLY DISTINCT DEPOSIT CARD STYLE (Green Left Border + Light Tint) */
.deposit-record-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #16a34a;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deposit-record-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.12);
}

.deposit-details-box {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 8px;
  padding: 8px 10px;
}

/* HIGHLY DISTINCT WITHDRAWAL CARD STYLE (Red Left Border + Light Tint) */
.withdrawal-record-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.withdrawal-record-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.withdrawal-details-box {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 8px 10px;
}

/* Compact Badges & Status */
.badge-status-pending {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 700;
  font-size: 0.7rem;
}

.badge-status-approved {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-weight: 700;
  font-size: 0.7rem;
}

.badge-status-rejected {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  font-weight: 700;
  font-size: 0.7rem;
}

/* Menu Icon Box */
.menu-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Fixed Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 62px;
  background: #ffffff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.08);
  z-index: 1050;
  border-top: 1px solid #f0f0f0;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #8e8e93;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  flex: 1;
  transition: color 0.2s ease;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.bottom-nav-item.active {
  color: var(--primary-color);
}

/* EXACT USER REQUESTED DARK CENTERED TOAST POPUP */
.custom-centered-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: rgba(18, 18, 18, 0.92);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  min-width: 220px;
  max-width: 85%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.custom-centered-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* Record / History Tabs */
.nav-tabs-custom {
  border: none;
  background: #eef2f6;
  border-radius: 25px;
  padding: 4px;
  margin: 15px;
  display: flex;
}

.nav-tabs-custom .nav-link {
  flex: 1;
  text-align: center;
  border: none;
  border-radius: 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 10px;
}

.nav-tabs-custom .nav-link.active {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Member Item Card */
.member-item-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
  border: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Custom Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  border: none;
  width: 100%;
  transition: all 0.2s ease;
}

.btn-primary-custom:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

/* Form Inputs */
.form-control-custom {
  border-radius: var(--border-radius);
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

/* Copy Link Field */
.copy-box {
  background: #f8f9fa;
  border: 1px dashed var(--primary-color);
  border-radius: var(--border-radius);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Timer Progress */
.timer-progress {
  height: 8px;
  border-radius: 4px;
  background-color: #eef2f6;
  overflow: hidden;
  margin-top: 8px;
}

.timer-progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  transition: width 1s linear;
}
