/* 
   Opay-inspired iOS Bold Green Theme
   Modern, vibrant design with iOS-style elements
*/

/* Import SF Pro fonts - Apple's system font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Text:wght@400;500;600;700&display=swap');

/* Base Styles with enhanced green palette */
:root {
  --primary-color: #00C853; /* Brighter green */
  --primary-dark: #009624; /* Darker green */
  --primary-light: #5EFC82; /* Light green */
  --primary-ultra-light: #E8F5E9; /* Ultra light green background */
  --text-color: #111111; /* Darker text for contrast */
  --light-text: #666666; /* Slightly darker gray for better readability */
  --background: #F7F7FA; /* Subtle iOS background color */
  --card-bg: #FFFFFF;
  --border-radius: 16px;
  --small-radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --success: #00E676; /* Bright green success */
  --error: #FF3B30; /* iOS red */
  --warning: #FFCC00; /* iOS yellow */
  --border-color: #E5E5EA;
  --highlight-bg: rgba(0, 200, 83, 0.12); /* Subtle green highlight */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Inter', Helvetica, Arial, sans-serif;
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.5;
  padding-bottom: 68px;
  min-height: 100vh;
  font-weight: 500; /* Slightly bolder body text */
}

/* Typography - more bold and iOS-like */
h1, h2, h3, h4, h5, h6 {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-weight: 700; /* Bolder headings */
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 2.2rem; /* Larger heading */
  letter-spacing: -0.04em;
}

h2 {
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  font-weight: 500; /* Slightly bolder text */
}

/* Card Styles - more prominent */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  transition: var(--transition);
  border: 0.5px solid var(--border-color);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 200, 83, 0.15);
}

/* Section Styles */
.section {
  padding: 1.2rem;
  max-width: 420px;
  margin: 0 auto;
  min-height: calc(100vh - 68px);
}

/* Auth Section */
.auth-container {
  text-align: center;
  padding: 1.5rem;
}

.auth-tabs {
  display: flex;
  justify-content: center;
  margin: 1.2rem 0;
}

.auth-tab {
  background: none;
  border: none;
  font-size: 0.95rem;
  padding: 0.4rem 1.2rem;
  margin: 0 0.5rem;
  color: var(--light-text);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-weight: 600; /* Bolder tabs */
}

.auth-tab.active {
  color: var(--primary-color);
  font-weight: 700;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px; /* Thicker underline */
  background-color: var(--primary-color);
  border-radius: 2px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Input Styles - more iOS-like */
input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--small-radius);
  font-size: 1rem;
  font-weight: 500; /* Bolder input text */
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Inter', Helvetica, Arial, sans-serif;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  background-color: rgba(242, 242, 247, 0.8);
  color: var(--text-color);
}

input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.25);
  background-color: #FFFFFF;
}

input::placeholder {
  color: #8E8E93;
  font-weight: 400;
}

/* Button Styles - bolder and more iOS-like */
button {
  background-color: var(--primary-color);
  color: #FFFFFF;
  border: none;
  border-radius: var(--small-radius);
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-weight: 700; /* Bolder button text */
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Inter', Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
}

button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.25);
}

/* Bottom Navigation - iOS style */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  box-shadow: 0 -1px 20px rgba(0, 0, 0, 0.05);
  z-index: 100;
  border-top: 0.5px solid var(--border-color);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 0.7rem;
  padding: 0.4rem;
  transition: var(--transition);
  font-weight: 600; /* Bolder navigation */
}

.nav-btn i {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

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

/* User Info */
.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem;
}

.balance {
  font-size: 1.3rem;
  margin-top: 0.4rem;
  color: var(--primary-color);
  font-weight: 700; /* Bolder balance */
}

/* Description Card */
.description-card {
  border-left: 4px solid var(--primary-color); /* Thicker border */
  border-radius: 12px 16px 16px 12px;
  background-color: var(--primary-ultra-light); /* Light green background */
}

.description-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.description-header i {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-right: 0.7rem;
}

.version-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
}

.version-tag {
  background-color: var(--primary-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
}

.update-date {
  color: var(--light-text);
  font-weight: 600;
}

.feature-list {
  margin-top: 1.2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.7rem;
}

.feature-item i {
  color: var(--primary-color);
  margin-right: 0.7rem;
  width: 1.4rem;
  text-align: center;
  font-size: 1.1rem;
}

/* Referral Section */
.referral-info {
  text-align: center;
}

#referral-code {
  font-weight: 700;
  color: var(--primary-color);
  padding: 0.5rem;
  background-color: var(--primary-ultra-light);
  border-radius: 8px;
  margin: 0 0.4rem;
  letter-spacing: 0.5px;
}

/* Withdrawal Section */
#withdrawal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Admin Section */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.stat-card {
  text-align: center;
  padding: 1rem;
  border-radius: var(--small-radius);
  background-color: var(--primary-ultra-light);
  border: 1px solid rgba(0, 200, 83, 0.2);
}

.stat-card p {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Leaderboard */
.leaderboard-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.leaderboard-tab {
  background: none;
  border: none;
  font-size: 0.95rem;
  padding: 0.4rem 1.2rem;
  margin: 0 0.4rem;
  color: var(--light-text);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-weight: 600;
}

.leaderboard-tab.active {
  color: var(--primary-color);
  font-weight: 700;
}

.leaderboard-tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px; /* Thicker underline */
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Custom Alert - iOS style */
#custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.alert-content {
  width: 85%;
  max-width: 340px;
  text-align: center;
  background-color: var(--card-bg);
  border-radius: 20px; /* More rounded iOS-style */
  padding: 1.5rem;
  border: 0.5px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Footer */
.footer {
  background-color: var(--card-bg);
  padding: 1.2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--light-text);
  margin-top: 1.5rem;
  border-top: 0.5px solid var(--border-color);
  font-weight: 500;
}

.footer-bottom {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 0.5px solid #D1D1D6;
}

.standard-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.standard-link:hover {
  text-decoration: underline;
}

/* Tasks Container */
#tasks-container {
  display: grid;
  gap: 1rem;
}

.task-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: var(--small-radius);
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--primary-color); /* Thicker border */
}

.task-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 200, 83, 0.18);
}

.task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.task-title {
  font-weight: 700; /* Bolder title */
  font-size: 1rem;
  color: var(--text-color);
}

.task-description {
  color: var(--light-text);
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 500;
}

.task-reward {
  font-weight: 700; /* Bolder reward */
  font-size: 1rem;
  color: var(--primary-color);
  background-color: var(--primary-ultra-light);
  padding: 0.4rem 0.8rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.task-reward i {
  font-size: 0.9rem;
}

.task-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.task-progress {
  height: 5px; /* Slightly thicker */
  background-color: #E5E5EA;
  border-radius: 3px;
  width: 100%;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.task-button {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 12px;
  background-color: var(--primary-color);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-weight: 700; /* Bolder text */
}

.task-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.25);
}

.task-button.completed {
  background-color: var(--success);
  cursor: default;
}

.task-button.in-progress {
  background-color: var(--warning);
  color: #000000;
  font-weight: 700;
}

@media (max-width: 480px) {
  .task-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .task-reward {
    align-self: flex-start;
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 0.8rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .nav-btn span {
    display: none;
  }
  
  .nav-btn i {
    font-size: 1.4rem; /* Larger icons */
    margin-bottom: 0;
  }
}

/* iOS-specific Enhancements */
.card, 
.task-card, 
.stat-card, 
.alert-content, 
button, 
input {
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.03), var(--shadow);
}

button, 
.task-button {
  font-weight: 700; /* Bolder buttons */
  letter-spacing: -0.01em;
}

/* Animation for page transitions - iOS style */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  animation: fadeIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* iOS style pill buttons */
.pill-button {
  border-radius: 22px; /* More rounded */
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
}

/* Action sheets - iOS style */
.action-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--card-bg);
  border-radius: 24px 24px 0 0; /* More rounded top */
  padding: 1.5rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* iOS spring curve */
}

.action-sheet.active {
  transform: translateY(0);
}

.action-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.action-sheet-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* iOS style toggle - green */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D1D1D6;
  transition: .3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* iOS segmented control - green */
.segmented-control {
  display: flex;
  background-color: #E5E5EA;
  border-radius: 10px;
  overflow: hidden;
  padding: 2px;
}

.segment {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 600;
}

.segment.active {
  background-color: var(--primary-color);
  color: white;
  font-weight: 700;
}

/* New iOS-specific styles */

/* SF Symbol-style icons with gradient */
.ios-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.5rem;
}

/* iOS-style card with subtle gradient */
.ios-card {
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff, #f9f9fc);
  padding: 1.5rem;
  border: 0.5px solid var(--border-color);
}

/* iOS-style floating button */
.float-button {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.float-button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 200, 83, 0.4);
}

/* iOS-style badge */
.badge {
  background-color: var(--primary-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* iOS-style notification */
.ios-notification {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 18px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Curved Bottom Navigation - iOS style */
.bottom-nav {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 400px;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  border-radius: 32px;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 0.5px solid rgba(0, 0, 0, 0.05);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 0.7rem;
  padding: 0.4rem 0.6rem;
  transition: var(--transition);
  font-weight: 600;
  box-shadow: none;
}

.nav-btn i {
  font-size: 1.5rem;
  margin-bottom: 3px;
}

.nav-btn.active {
  color: var(--primary-color);
  transform: translateY(-4px);
}

/* Add bottom padding to body to account for floating nav */
body {
  padding-bottom: 96px;
}

/* Media query for smaller devices */
@media (max-width: 380px) {
  .bottom-nav {
    width: 96%;
    height: 68px;
  }
  
  .nav-btn i {
    font-size: 1.4rem;
  }
}

