html {
  height: 100%;
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}

.auth-form {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

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

.auth-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
}

.auth-button:hover {
  background-color: #0056b3;
}

.auth-link {
  text-align: center;
  margin-top: 1rem;
}

.auth-link a {
  color: #007bff;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.user-info {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logout-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.logout-button:hover {
  background-color: #c82333;
}

/* Dashboard Styles */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  margin: 0;
  color: #333;
}

.dashboard-header .user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.dashboard-content .contacts-full-width {
  grid-column: 1 / -1;
}

.dashboard-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dashboard-card h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
}

.profile-info p {
  margin: 0.5rem 0;
  color: #666;
}

.settings-button {
  padding: 0.5rem 1rem;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.settings-button:hover {
  background-color: #5a6268;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-button {
  padding: 0.75rem;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.action-button:hover {
  background-color: #218838;
}

/* Balance Styles */
.balance-info {
  text-align: center;
}

.balance-amount {
  font-size: 2.5rem;
  font-weight: bold;
  color: #28a745;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.currency {
  font-size: 1.8rem;
}

.currency-code {
  font-size: 1rem;
  color: #666;
  font-weight: normal;
}

.topup-button {
  padding: 0.75rem 2rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

.topup-button:hover {
  background-color: #0056b3;
}

/* Navigation Styles */
.dashboard-nav {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  padding: 0;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.nav-links li {
  flex: 1;
  min-width: 120px;
}

.nav-link {
  display: block;
  padding: 1rem 1.5rem;
  color: #666;
  text-decoration: none;
  text-align: center;
  border-right: 1px solid #eee;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-links li:last-child .nav-link {
  border-right: none;
}

.nav-link:hover {
  background-color: #f8f9fa;
  color: #007bff;
}

.nav-link.active {
  background-color: #007bff;
  color: white;
}

.nav-link.active:hover {
  background-color: #0056b3;
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
  }

  .nav-link {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .nav-links li:last-child .nav-link {
    border-bottom: none;
  }
}

/* Login Logo Container Styles */
.login-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: 2rem auto 0.5rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  border: 2px solid #e9ecef;
}

.login-logo {
  height: 60px;
  margin-right: 1rem;
}

.login-title {
  margin: 0;
  color: #007bff;
  font-size: 2rem;
  font-weight: bold;
}

/* Language Selector Styles */
.language-selector {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
}

.language-button {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.language-button:hover {
  background-color: #f8f9fa;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  z-index: 1000;
  display: none;
}

.language-dropdown.show {
  display: block;
}

.language-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-option:hover {
  background-color: #f8f9fa;
}

.language-option.active {
  background-color: #007bff;
  color: white;
}

/* Contact and Help Styles */
.contact-item {
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  flex: 1;
}

.contact-item h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.contact-item p {
  margin: 0.25rem 0;
  color: #666;
}

.contact-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  margin: 0 1rem;
}

.delete-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.delete-button:hover {
  background-color: #c82333;
}

.quick-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.quick-button {
  padding: 1rem;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
}

.quick-button:hover {
  background-color: #218838;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

.faq-item p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.help-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.help-link {
  color: #007bff;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.help-link:hover {
  text-decoration: underline;
  background-color: #f8f9fa;
}

.help-link:last-child {
  border-bottom: none;
}

textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}

textarea:focus {
  outline: none;
  border-color: #007bff;
}

select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  background-color: white;
  box-sizing: border-box;
}

select:focus {
  outline: none;
  border-color: #007bff;
}

.action-button.danger {
  background-color: #dc3545;
}

.action-button.danger:hover {
  background-color: #c82333;
}

.topup-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

.refresh-button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.5s;
}

.refresh-button:hover {
  background-color: #f0f0f0;
}