/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 2rem 0;
}

.hero {
  background: var(--cta-bg, #415972);
  color: var(--cta-text);
  padding: 4rem 0;
  text-align: center;
}

.hero .btn-primary, #see {
  background: #ffdd00;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 1rem;
  display: inline-block;
}

.features-preview {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.feature-box {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 30%;
  min-width: 250px;
  text-align: center;
}

/* Features Page */
.features-page h1,
.pricing-page h1,
.contact-page h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.feature-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
}

/* Pricing Page */
.pricing-cards {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pricing-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1 1 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured {
  border: 3px solid #0066cc;
  box-shadow: 0 6px 12px rgba(0, 102, 204, 0.3);
}

.price {
  font-size: 2rem;
  font-weight: bold;
  margin: 1rem 0;
}

.pricing-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.pricing-card ul li {
  margin-bottom: 0.8rem;
}

.btn-primary {
  background: #0066cc;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background: #004999;
}

/* Contact Page */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  align-self: flex-start;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  /* background: white;sidebar */
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #0066cc;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: #0066cc;
  color: white;
}
.themeToggle {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  margin-right: 5px;
  /* left: 0; */
}

.themeToggle:hover{ 
  background-color: #0066cc;
}

.btn-primary {
  background: #ffdd00;
  color: #333 !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #e6c200;
  color: #000 !important;
}

/* Footer */
footer {
  background: #222;
  color: #ccc;
  /* padding: 1rem 0; */
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-content p {
  margin: 0.2rem 0;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #cccccc;
}

/* Responsive */
@media (max-width: 800px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    background: #1e1e2f;
    height: calc(100vh - 60px);
    width: 200px;
    flex-direction: column;
    padding: 2rem 1rem;
    box-shadow: -3px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }
}

.auth-page, .contact-page {
  max-width: 400px;
  margin: 2rem auto 5rem auto;
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.auth-page h1 {
  text-align: center;
  margin-bottom: 1.8rem;
}

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

.auth-form label {
  font-weight: 600;
}

.auth-form input {
  padding: 0.7rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.auth-form button {
  margin-top: 1rem;
  padding: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background-color: #0066cc;
  color: white;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.auth-form button:hover {
  background-color: #004999;
}

.text-center {
  text-align: center;
  margin-top: 1.5rem;
}

.alert {
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.alert.error {
  background-color: #fddede;
  color: #d8000c;
  border: 1px solid #d8000c;
}

.alert.success {
  background-color: #ddf5dd;
  color: #007700;
  border: 1px solid #007700;
}
.alert.warning {
  background-color: #fff4e5;
  color: #9f6000;
  border: 1px solid #9f6000;
}

/* body {
  font-family: Arial, sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 20px;
} */

.profile-container {
  background: white;
  max-width: 600px;
  margin: auto;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.profile-pic {
  text-align: center;
  margin-bottom: 15px;
}

.profile-pic img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

input,
select,
button {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background: #0056b3;
}

.main-content {
  margin-left: 240px;
  padding: 40px;
  background-color: var(--bg-color);
  flex: 1;
}

.profile-form {
  max-width: 500px;
  margin: auto;
}

.profile-form label {
  display: block;
  margin: 10px 0 5px;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
}

.profile-pic {
  text-align: center;
  margin-bottom: 20px;
}

.profile-pic img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}


:root {
  --bg-color: #f4f4f4;
  --text-color: #000;
  --cta-bg: #205fa3;
  --cta-text: #f4f4f4;
}

[data-theme="dark"] {
  --bg-color: #1e1e2f;
  --text-color: #fff;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background-color: #1e1e2f;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  top: var(--header-height, 60px);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* background-color: #fff; */
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
}


.sidebar h2,
.sidebar .user-info {
  margin-bottom: 30px;
}

.sidebar .user-info {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    cursor: pointer;
}

.sidebar .user-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  object-fit: cover;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebar .user-info strong {
  display: block;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  word-break: break-word;
}

.sidebar a {
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
  transition: background 0.3s;
}
.sidebar a i {
  margin-right: 8px;
  font-size: 1.1em;
  vertical-align: middle;
}


.sidebar a:hover {
  background-color: #007BFF;
  border-radius: 5px;
}

/* .main-content {
      margin-left: 240px;
      padding: 40px;
      background-color: #f4f4f4;
      flex: 1;
    } */

.logout-btn {
  background-color: crimson;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-right: 10px;
}

.hamburger {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .sidebar {
    width: 200px;
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 10;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
    overflow: auto;
  }

  .hamburger {
    display: block;
    right: 0;
    top: 0;
  }
}

body,
.sidebar,
header {
  transition: background-color 0.5s, color 0.5s;
}

/* Icons inside feature boxes */
.feature-box .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

/* Grid layout for features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Internet plans section */
.plans-preview {
  background-color: var(--bg-color, #f9f9f9);
  padding: 60px 20px;
  text-align: center;
}

.plans-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.plan-card {
  background: white;
  color: var(--text-color, #333);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 30px;
  width: 260px;
  transition: transform 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
}

.plan-card h3 {
  margin-bottom: 10px;
}

.plan-card.popular {
  border: 2px solid #007BFF;
}

/* Testimonials section */
.testimonials {
  background: #f0f4f8;
  padding: 60px 20px;
  text-align: center;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.testimonial-box {
  background: white;
  border-radius: 10px;
  padding: 25px;
  max-width: 300px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* CTA section */
.cta {
  background: linear-gradient(135deg, #007BFF, #0056b3);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.cta .btn-primary {
  background: white;
  color: #007BFF;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 20px;
  display: inline-block;
}
@media (max-width: 768px) {
  .plans-grid,
  .testimonial-grid,
  .feature-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .plan-card, .testimonial-box {
    width: 90%;
  }
}
.feature-box .icon {
  width: 40px;
  height: 40px;
  color: #007BFF;
  margin-bottom: 10px;
}
/* Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-color);
  color: var(--text-color);
}

.main-content {
  flex-grow: 1;
  padding: 2rem;
  background-color: var(--bg-color);
}

/* Header */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* User Greeting */
.user-greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-greeting .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* Actions */
.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-actions a {
  padding: 0.6rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: 0.2s ease;
}

.btn-primary {
  background: #007bff;
  color: #fff;
}

.btn-secondary {
  background: #ccc;
  color: #222;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover {
  opacity: 0.9;
}

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

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

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

.stat-box p {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Status Tag */
.status.active {
  color: #28a745;
}

.status.inactive {
  color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .dashboard-actions {
    width: 100%;
    flex-direction: column;
  }

  .dashboard-actions a {
    width: 100%;
    text-align: center;
  }

  .dashboard-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}



/* Layout */
/* .dashboard-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  flex-direction: column;
} */

/* @media (min-width: 768px) {
  .dashboard-container {
    flex-direction: row;
  }
} */

/* .dashboard-main {
  flex: 1;
  padding: 2rem;
  box-sizing: border-box;
} */

/* Header */
.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.subheading {
  color: var(--text-color-secondary, #777);
  font-size: 1rem;
}

/* Cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card-bg, #f4f4f4);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 1.25rem;
  font-weight: bold;
}

/* Status styling */
.status.active {
  color: green;
}

.status.inactive {
  color: red;
}

/* Buttons */
.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

@media (min-width: 600px) {
  .dashboard-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  display: inline-block;
}

.btn-primary {
  background: #1d72b8;
  color: #fff;
}

.btn-secondary {
  background: #ccc;
  color: #222;
}

.btn-danger {
  background: #e63946;
  color: #fff;
}


/* .dashboard-container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
} */

/* .sidebar {
  width: 250px;
  flex-shrink: 0;
} */

/* .dashboard-main {
  flex-grow: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--bg-color);
  color: var(--text-color);
} */

/* Light theme card fallback */
.card {
  background: var(--card-bg, #f4f4f4);
  color: var(--text-color, #333);
}

/* Dark mode overrides */
[data-theme="dark"] .card {
  background: #2c2c3a;
  color: #f0f0f0;
}

[data-theme="dark"] .status.active {
  color: #9be19b;
}

[data-theme="dark"] .status.inactive {
  color: #ff9999;
}



.table-responsive {
  overflow-x: auto;
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-top: 1rem;
}

.subs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.subs-table th, .subs-table td {
  padding: 12px 16px;
  text-align: left;
  color: var(--text-color);
  border-bottom: 1px solid #ddd;
}

.subs-table th {
  background-color: rgba(0,0,0,0.05);
  color: var(--text-color);
}

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

.status.ACTIVE {
  color: green;
  font-weight: bold;
}

.status.EXPIRED {
  color: red;
  font-weight: bold;
}

.status.PENDING {
  color: #856404;
  font-weight: bold;
}


.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
}

.custom-modal-content {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.custom-modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-around;
}

.btn-confirm, .btn-cancel {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin: 5px;
}

.btn-confirm {
    background: lightgrey;
    color: black;
}

.btn-cancel {
  background: #dc3545;
  color: white;
}



.contact-form,
.message-history {
  background: var(--bg-color, #fff);
  color: var(--text-color, #333);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.contact-form h3,
.message-history h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  border-left: 4px solid #007bff;
  padding-left: 0.5rem;
}

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

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: var(--bg-color, #fff);
  color: var(--text-color, #000);
  transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007bff;
  outline: none;
}

.contact-form button {
  padding: 0.75rem;
  background: #007bff;
  color: #fff;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #0056b3;
}

.message-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.message-list li {
  background: rgba(0, 123, 255, 0.05);
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #007bff;
  border-radius: 5px;
  white-space: pre-wrap;
}

  /*.alert.success { 
  background: #d4edda;
  color: #155724;
  padding: 0.75rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}  

.alert.error {
  background: #f8d7da;
  color: #721c24;
  padding: 0.75rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}*/


.pricing-card, .feature-item, .feature-box, .say, .testimonial-box, .contact-page, .auth-page, .auth-form {
  
  background: var(--bg-color, #fff);
  color: var(--text-color, #000);
  /* box-shadow: 0 3px 7px rgba(206, 202, 202, 0.301); */
}
