/* Global Styles */
body {
    font-family: 'Poppins', sans-serif; /* Apply Merriweather font */
    margin: 0;
    padding: 0;
    background-color: #008b8b;
    /* background-color: white; */
    /* color: #333; */
  }

main {
  padding-left: 15%;
  padding-right: 15%;
}

/* main .other {
  background-color: white;
} */
  
  /* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fffaf0;
    padding: 10px 20px;
    font-size: x-large;
  }

/* Left Section (Icon) */
.nav-left {
    display: flex;
    align-items: center;
  }

.navbar-icon {
    width: 80px;
    height: auto;
  }

/* Center Section (Nav Links) */
.nav-center {
    display: flex;
    justify-content: center;
    flex: 1; /* Makes the center section take up all available space */
  }

.nav-center a {
    color: #e65c00;
    text-decoration: solid;
    margin-right: 40px;
    font-weight: bold;
    line-height: 80px;

  }

.nav-center a:hover {
    color: blue; /* Orange on hover */
  }

/* Right Section (Dashboard Button) */
.nav-right {
    display: flex;
    align-items: center;
  }
  
.nav-right .dashboard-btn {
    background-color: none;
    color: black;
    border-width: 2px;
    border-color: #89cff0;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    line-height: 20px;
    font-size: large;
    font-weight: bold;
  }
  
.nav-right .dashboard-btn:hover {
    background-color: #89cff0;
  }

  /* Hero Section */
  .hero {
    background-image: url('/static/banner.jpg');
    background-size: cover;
    background-position: bottom;
    color: white;
    padding: 80px 20px;
    text-align: center;
    padding-left: 15%;
    padding-right: 15%;
}
  
.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
  }
  
.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
  }
  
/* Features Section */
.features {
  background-image: url('/static/feature.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  width: 100%;
  height: 50vh; /* Ensures full viewport height */
}

.text-side {
  width: 50%; /* Left half for text */
  background-color: rgba(255, 255, 255, 0.8); /* Optional, for text background contrast */
  padding: 60px 20px;
  text-align: left;
  position: relative;
}

.text-side h2 {
  font-size: 2rem;
  color: orange;
  margin-bottom: 30px;
}

.text-side ul {
  list-style-type: none;
  padding: 0;
}

.text-side li {
  font-size: 1.2rem;
  margin: 10px 0;
}

.image-side {
  height: 100%;
  width: 50%; /* Right half for image */
  background-image: url('/static/ai.jpg');
  background-size: cover; /* Makes sure the image covers the whole section */
  background-position: center; /* Centers the image */
}
  
  /* Pricing Section */
.pricing {
    background-color: #f7f7f7;
    padding: 20px 20px;
  }
  
.pricing h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #0099ff;
  }
  
.pricing-plans {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
.plan {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    width: 200px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
.plan h3 {
    font-size: 1.5rem;
    color: #ff6600;
    margin-bottom: 10px;
  }
  
.plan p {
    font-size: 1rem;
    color: #333;
  }
  
/* Call-to-Action Section */
.cta {
  padding: 20px 20px;
  background-color: #002147; /* Sky blue */
  color: white;
  display: flex;
  justify-content: space-between; /* Space between left and right sections */
  align-items: center;
}

.cta-left {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 5px 0;
  text-align: left;
}

.cta-left a {
  color: #ff6600;
  text-decoration: none;
}

.cta-left .contact {
  font-size: x-large;
}

.cta-left .info {
  font-size: large;
}

.cta-right {
  width: 50%; /* Takes up the other 50% of the CTA section */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: end;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-right p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-btn {
  background-color: #ff6600; /* Orange */
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.cta-btn:hover {
  background-color: #e65c00;
}

  
/* Footer */
footer {
  display: flex;
  justify-content: space-between; /* Distribute space between left and right sections */
  align-items: flex-start; /* Align items to the top of the footer */
  background-color: white; /* Gray background */
  color: #002147;
  padding: 20px;
}

/* Left Section (Support Info) */
.footer-left {
  display: flex;
  flex-direction: column; /* Stack the support info vertically */
  align-items: flex-start; /* Align text to the left */
}

.footer-support p {
  margin: 5px 0;
}

.footer-support a {
  color: #ff6600;
  text-decoration: none;
}

.footer-support a:hover {
  color: #e65c00;
}

/* Right Section (Other Footer Content) */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #002147;
  margin: 0 10px;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ff6600;
}

  /* Regiser */
.register {
    background-color: #f0faff;
    padding: 60px 20px;
    text-align: center;
}

.register-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.register h2 {
    font-size: 2rem;
    color: #0099ff;
    margin-bottom: 20px;
}

.register p {
    margin-bottom: 40px;
    color: #333;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.warning-text {
  font-size: 0.5rem;
  color: gray;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group label {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #0099ff;
}

.register-btn {
    background-color: #ff6600;
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.register-btn:hover {
    background-color: #e65c00;
}

/* Login */
.login {
  background-color: #f0faff;
  padding: 60px 20px;
  text-align: center;
}

.login-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background-color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.login h2 {
  font-size: 2rem;
  color: #0099ff;
  margin-bottom: 20px;
}

.login p {
  margin-bottom: 40px;
  color: #333;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-btn {
  background-color: #ff6600;
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.login-btn:hover {
  background-color: #e65c00;
}

/* Features Section (Optional custom styling for the new list items) */
.features li {
  font-size: 1.2rem;
  margin: 10px 0;
  padding-left: 20px; /* Optional padding for better alignment */
  position: relative;
}

.features li:before {
  content: "✔"; /* Adding checkmarks before each list item */
  position: absolute;
  left: 0;
  color: green;
  font-weight: bold;
}

.dashboard {
  background-color: white;
}

.other {
  background-color: white;
}

/* Container for API Key and Copy Button */
.api-key-container {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.copy-button, .new-api-button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.copy-button {
  background-color: #ff6600;
  color: white;
}

.copy-button:hover {
  background-color: #e65c00;
}

.new-api-button {
  background-color: #007bff;
  color: white;
}

.new-api-button:hover {
  background-color: #0056b3;
}

/* Credit Container */
.credit-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1em 0; /* Margin on top and bottom, similar to the API Key div */
  padding: 20px; /* Padding inside the container */
  background-color: #f8f9fa; /* Similar background color to the API Key div */
  border-radius: 8px; /* Rounded corners to match the API Key container */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for a more polished look */
}

.credit-text {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0; /* Removed bottom margin to align better with the button */
  margin-right: 10px;
}

.credit-amount {
  font-weight: bold;
  color: #28a745;
}

.topup-btn {
  margin-left: 10px;
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.topup-btn:hover {
  background-color: #218838;
}


/* Responsive Design */
@media (max-width: 768px) {
  .api-key-container,
  .credit-container {
    padding: 20px 10px;
  }

  .api-key-actions {
    flex-direction: column;
    align-items: center;
  }

  .copy-button,
  .new-api-button {
    width: 100%;
    margin-bottom: 10px;
  }

  .topup-btn {
    width: 100%;
  }
}

.topup {
  background-color: #f0faff;
  padding: 60px 20px;
  text-align: center;
}

.topup h2 {
  font-size: 2rem;
  color: #0099ff;
  margin-bottom: 20px;
}

.topup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.topup .form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.topup .form-group label {
  font-size: 1rem;
  color: #333;
  margin-bottom: 8px;
}

.topup .form-group input, 
.topup .form-group select {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
}

.topup .form-group input:focus, 
.topup .form-group select:focus {
  outline: none;
  border-color: #0099ff;
}

.topup-button {
  background-color: olive;
  color: lightyellow;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
}

.topup-button:hover {
  background-color: darkgreen;
}

/* Container for payment method section */
.payment-method-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

/* Label for the section */
.payment-method-label {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Style for each payment method option */
.payment-method-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hide the default checkbox and use custom design */
input[type="checkbox"] {
  display: none;
}

/* Custom checkbox label styling */
.custom-checkbox {
  position: relative;
  display: inline-block;
  padding-left: 35px;
  font-size: 1rem;
  cursor: pointer;
  color: #333;
  user-select: none;
  font-weight: normal;
  transition: color 0.3s ease;
}

/* Custom checkbox icon */
.checkbox-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Checkmark on checkbox checked */
input[type="checkbox"]:checked + .custom-checkbox .checkbox-icon {
  background-color: #ff6600;
  border-color: #ff6600;
  box-shadow: 0 0 0 5px rgba(255, 102, 0, 0.2);
}

input[type="checkbox"]:checked + .custom-checkbox .checkbox-icon:after {
  content: "✔";
  position: absolute;
  left: 4px;
  top: 1px;
  font-size: 16px;
  color: white;
}

/* Change label color when checkbox is checked */
input[type="checkbox"]:checked + .custom-checkbox {
  color: #ff6600; /* Change text color to orange when checked */
}

/* Disabled checkbox style */
.custom-checkbox.disabled {
  color: gray;
  cursor: not-allowed;
}

.custom-checkbox.disabled .checkbox-icon {
  border-color: #ccc;
  background-color: #f0f0f0;
}

.custom-checkbox.disabled:hover {
  color: gray;
}

/* Hover effects */
.custom-checkbox:hover {
  color: #ff6600;
}

.custom-checkbox:hover .checkbox-icon {
  border-color: #ff6600;
}

/* Card Input Form */
.card-form {
  background-color: #fff;
  padding: 30px;
  max-width: 500px;
  margin: 20px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
}

/* Form Title */
.card-form h2 {
  font-size: 2rem;
  color: #0099ff;
  margin-bottom: 30px;
  text-align: center;
}

/* Form Group */
.card-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

/* Label Styling */
.card-form .form-group label {
  font-size: 1rem;
  color: #333;
  margin-bottom: 8px;
  font-weight: bold;
}

/* Input Fields */
.card-form .form-group input {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Focused Input */
.card-form .form-group input:focus {
  outline: none;
  border-color: #0099ff;
  box-shadow: 0 0 5px rgba(0, 153, 255, 0.2);
}

/* Input Placeholder */
.card-form .form-group input::placeholder {
  color: #999;
}

/* Amount Field */
.topup-form #amount {
  font-size: 1.1rem;
  color: #333;
}

/* Card Number Input */
.card-form #number {
  font-family: 'Courier New', Courier, monospace; /* Ensures card number looks consistent */
}

/* Expiry Date Inputs */
.card-form #month,
.card-form #year {
  width: 48%; /* Ensures two fields fit side by side */
  margin-right: 4%;
}

/* CVV Input */
.card-form #cvv {
  width: 48%; /* Ensures CVV fits side by side with expiry date */
}

/* Submit Button */
.card-form .topup-button {
  background-color: #ff6600;
  color: white;
  padding: 15px 30px;
  font-size: 1.1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.card-form .topup-button:hover {
  background-color: #e65c00;
  transform: translateY(-2px); /* Hover effect */
}

/* Button Disabled State */
.card-form .topup-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Error Message */
.card-form .error-message {
  color: red;
  font-size: 0.875em;
  margin-top: 5px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Form Layout for Smaller Devices */
  .card-form {
    padding: 20px;
    width: 90%;
  }

  .card-form h2 {
    font-size: 1.5rem;
  }

  /* Amount input */
  .card-form #amount {
    font-size: 1rem;
  }

  /* Card Number, Expiry, and CVV Fields */
  .card-form #month,
  .card-form #year,
  .card-form #cvv {
    width: 100%; /* Stack inputs on small devices */
    margin-right: 0;
    margin-bottom: 10px;
  }

  /* Button */
  .card-form .topup-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Table Container */
.topup-table-container {
  background-color: #f9f9f9;
  padding: 40px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Table Title */
#topups-container h3 {
  font-size: 2rem;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Table Styling */
#topupTable {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Table Header Styling */
#topupTable th {
  background-color: #0066cc;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 15px 25px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 3px solid #004d99;
}

/* Table Row Styling */
#topupTable td {
  background-color: #f7f7f7;
  color: #333;
  padding: 15px 25px;
  text-align: center;
  font-size: 1.1rem;
  border-bottom: 1px solid #e3e3e3;
  transition: background-color 0.3s ease;
}

#topupTable tr:nth-child(even) td {
  background-color: #f9f9f9; /* Alternate row color */
}

/* Hover Effect */
#topupTable tr:hover td {
  background-color: #e0f7fa; /* Light Blue for hover effect */
  cursor: pointer;
  color: #0066cc;
  font-weight: bold;
}

/* Table Row Focus Effect */
#topupTable tr:focus-within {
  background-color: #e3f2fd;
  outline: 2px solid #0066cc;
  box-shadow: 0 0 5px rgba(0, 102, 204, 0.4);
}

/* Table Footer */
#topups-container .table-footer {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Pagination Links */
#topups-container .pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}

#topups-container .pagination a {
  color: #0066cc;
  font-size: 1rem;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

#topups-container .pagination a:hover {
  background-color: #0066cc;
  color: white;
}

#topups-container .pagination .active {
  background-color: #0066cc;
  color: white;
  font-weight: bold;
}

#registered_name {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 20px;
}

.user-name {
  font-weight: bold;
  color: #ff6600; /* Oranges for emphasis */
}

.api-key-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.key-text {
  font-size: 1.2rem;
  color: #333;
}

.key-value {
  font-weight: bold;
  color: #007bff;
}

.api-key-actions {
  display: flex;
  gap: 10px;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pagination Container */
#paginationContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  background-color: #f9f9f9; /* Light background color to match the table container */
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Pagination Links */
#paginationContainer a {
  color: #0066cc; /* Blue for pagination links */
  font-size: 1rem;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  background-color: #f2f2f2; /* Light gray background */
  border: 1px solid #ddd;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0 5px; /* Spacing between pagination links */
}

#paginationContainer a:hover {
  background-color: #0066cc; /* Darker blue on hover */
  color: white;
}

/* Active Pagination Link */
#paginationContainer .active {
  background-color: #0066cc; /* Blue background for active page */
  color: white; /* White text for active link */
  font-weight: bold;
}

/* Disabled Pagination Link */
#paginationContainer .disabled {
  color: #ccc; /* Light gray for disabled links */
  background-color: #f0f0f0; /* Light background for disabled links */
  cursor: not-allowed; /* Cursor to indicate it's disabled */
}

/* Pagination Previous and Next Button */
#paginationContainer .prev,
#paginationContainer .next {
  font-size: 1.2rem;
  padding: 12px 18px;
  border-radius: 5px;
  background-color: #ff6600; /* Orange background for prev/next buttons */
  color: white;
  border: none;
  transition: background-color 0.3s ease;
  margin: 0 10px;
}

#paginationContainer .prev:hover,
#paginationContainer .next:hover {
  background-color: #e65c00; /* Darker orange on hover */
}

#paginationContainer .prev.disabled,
#paginationContainer .next.disabled {
  background-color: #ccc; /* Disabled color for prev/next buttons */
  cursor: not-allowed;
}
