/* style.css - Dark Navy Blue Investment Platform Theme */

:root {
  --bg-dark: #0a192f;
  --bg-darker: #09172a;
  --bg-card: rgba(17, 34, 64, 0.85);
  --text-light: #e6f1ff;
  --text-muted: #8892b0;
  --accent-gold: #f1c40f;
  --accent-teal: #00bcd4;
  --radius: 12px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-gold);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar ul li a {
  text-decoration: none;
  color: var(--text-light);
  transition: var(--transition);
}

.navbar ul li a:hover {
  color: var(--accent-teal);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--accent-gold);
}

.hero p {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  background: var(--accent-teal);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: var(--accent-gold);
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--accent-gold);
}


/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero h1 {
  font-size: 2.5rem;
  color: #fff;
}

.hero p {
  margin: 1rem 0;
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* About */
.about, .how-it-works, .why-choose, .plans, .testimonials, .cta {
  padding: 4rem 2rem;
  text-align: center;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  background: #0f172a;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* Why Choose Us */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  background: #1e293b;
  padding: 1.5rem;
  border-radius: var(--radius);
}

/* Plans */
.plan-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.plan-cards .card {
  background: #0f172a;
  padding: 2rem;
  width: 280px;
  border-radius: var(--radius);
  box-shadow: 0 0 12px rgba(255,215,0,0.2);
}

/* Testimonials */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.testimonial {
  background: #1e293b;
  padding: 1.5rem;
  max-width: 300px;
  border-radius: var(--radius);
  font-style: italic;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 3rem 2rem;
  text-align: center;
}

.cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: rgba(10, 25, 47, 0.95);
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  color: var(--text-muted);
}


/* ---------- Forms ---------- */
.form-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
}

.form-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.6s ease;
}

.form-card h2 {
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  text-align: left;
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.form-group input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--text-muted);
  background: transparent;
  color: var(--text-light);
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--accent-teal);
  outline: none;
  box-shadow: 0 0 8px var(--accent-teal);
}

.form-footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: var(--transition);
}

.form-footer a:hover {
  color: var(--accent-gold);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Extra spacing for register form */
.form-card .form {
  margin-top: 1rem;
}


/* Gender Select */
.form select {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--text-muted);
  background: transparent;
  color: var(--text-light);
  transition: var(--transition);
}

.form select option {
  background: var(--bg-dark);
  color: var(--text-light);
}

.form select:focus {
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 8px var(--accent-gold);
}



/* ---------- Dashboard Layout ---------- */
.dashboard {
  display: flex;
  min-height: 80vh;
}

.sidebar {
  width: 220px;
  background: rgba(9, 23, 42, 0.95);
  padding: 2rem 1rem;
  border-right: 1px solid var(--bg-dark);
}

.sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar ul li a {
  text-decoration: none;
  color: var(--text-light);
  padding: 0.7rem 1rem;
  display: block;
  border-radius: var(--radius);
  transition: var(--transition);
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background: var(--accent-teal);
  color: #fff;
  box-shadow: 0 0 8px var(--accent-teal);
}

.dashboard-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Profile Card */
.profile-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.profile-card h2 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 12px var(--accent-teal);
}

.stat-card h3 {
  font-size: 1.8rem;
  color: var(--accent-gold);
}

.stat-card p {
  color: var(--text-muted);
}


/* ---------- Deposit & Withdraw ---------- */
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--text-muted);
  background: transparent;
  color: var(--text-light);
  transition: var(--transition);
  cursor: pointer;
}

.form-group select:focus {
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 8px var(--accent-gold);
}


/* File Input Custom Style */
.form-group input[type="file"] {
  background: transparent;
  padding: 0.6rem;
  border: 1px solid var(--text-muted);
  border-radius: var(--radius);
  color: var(--text-light);
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  background: var(--accent-teal);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.form-group input[type="file"]::file-selector-button:hover {
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

/* Dashboard */
.dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #0F172A;
  padding: 1rem;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 1rem;
}

.sidebar ul li a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--text-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.sidebar ul li a.active,
.sidebar ul li a:hover {
  background: var(--accent-teal);
  color: #fff;
  box-shadow: 0 0 8px var(--accent-teal);
}

/* Content */
.dashboard-content {
  flex: 1;
  padding: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Stat Cards */
.stat-card {
  text-align: center;
}

.stat-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.stat-amount {
  font-size: 1.5rem;
  font-weight: bold;
}

.text-green { color: #10B981; }
.text-gold { color: #FFD700; }

/* Transactions Table */
.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #1E293B;
  text-align: left;
  color: var(--text-light);
}

.transactions-table th {
  color: var(--text-muted);
}


/* ADMIN STYLES BEGIN HERE */
/* ADMIN STYLES BEGIN HERE */
/* ADMIN STYLES BEGIN HERE */

/* ---------- Admin Dashboard ---------- */
.admin-title {
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
}

.admin-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.panel-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: var(--transition);
}

.panel-card h3 {
  color: var(--accent-teal);
  margin-bottom: 0.5rem;
}

.panel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 12px var(--accent-gold);
}

/* ---------- Admin Tables ---------- */
.table-container {
  overflow-x: auto;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-light);
}

.admin-table th, .admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--text-muted);
}

.admin-table th {
  color: var(--accent-gold);
  font-weight: 600;
}

.admin-table tr:hover {
  background: rgba(255,255,255,0.05);
}

/* Status Tags */
.status {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: bold;
}
.status.pending { background: #f39c12; color: #fff; }
.status.approved { background: #27ae60; color: #fff; }
.status.rejected { background: #c0392b; color: #fff; }

/* Small Buttons */
.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn-sm.approve { background: var(--accent-teal); color: #fff; }
.btn-sm.reject { background: #e74c3c; color: #fff; }
.btn-sm.disabled { background: var(--text-muted); color: #333; cursor: not-allowed; }

.btn-sm:hover:not(.disabled) {
  opacity: 0.9;
  box-shadow: 0 0 10px var(--accent-gold);
}

/* ---------- User Management Styles ---------- */
.status.role {
  background: var(--accent-teal);
  color: #fff;
  font-weight: bold;
}

.btn-sm.suspend {
  background: #f39c12;
}

.btn-sm.promote {
  background: #3498db;
}

.btn-sm.delete {
  background: #c0392b;
}

/* ---------- Notifications ---------- */
.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notification-item {
  padding: 0.8rem;
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-item .time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 1rem;
}

.notification-item.success {
  background: rgba(39, 174, 96, 0.2);
  border-left: 4px solid #27ae60;
}

.notification-item.warning {
  background: rgba(241, 196, 15, 0.2);
  border-left: 4px solid #f1c40f;
}

.notification-item.info {
  background: rgba(52, 152, 219, 0.2);
  border-left: 4px solid #3498db;
}

.notification-item.danger {
  background: rgba(192, 57, 43, 0.2);
  border-left: 4px solid #c0392b;
}

textarea {
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: var(--radius);
  padding: 0.8rem;
  color: var(--text-light);
  resize: none;
}

/* ---------- Settings ---------- */
.dashboard-content form .form-group {
  margin-bottom: 1rem;
}

.dashboard-content input[type="number"],
.dashboard-content input[type="email"],
.dashboard-content input[type="password"],
.dashboard-content input[type="text"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--text-muted);
  background: transparent;
  color: var(--text-light);
  transition: var(--transition);
}

.dashboard-content input:focus {
  border-color: var(--accent-gold);
  outline: none;
  box-shadow: 0 0 8px var(--accent-gold);
}
