/* Account Page Specific Styles */

.account-header {
  margin: 40px 0 30px;
}

.account-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.account-header p {
  color: #777;
  font-size: 16px;
}

.account-container {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
}

/* Account Sidebar */
.account-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.user-profile {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.user-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.change-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background-color: #e73323;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.change-avatar-btn:hover {
  background-color: #d62c1a;
}

.user-profile h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.user-profile p {
  color: #777;
  font-size: 14px;
}

.account-nav {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.account-nav li {
  border-bottom: 1px solid #eee;
}

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

.account-nav a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #555;
  transition: all 0.3s ease;
}

.account-nav a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.account-nav a:hover {
  background-color: #f5f5f5;
}

.account-nav li.active a {
  background-color: #f5f5f5;
  color: #e73323;
  border-left: 3px solid #e73323;
}

/* Account Content */
.account-content {
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.account-section {
  display: none;
  padding: 30px;
}

.account-section.active {
  display: block;
}

.account-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Profile Form */
.profile-form {
  max-width: 800px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #555;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-actions {
  margin-top: 20px;
}

.save-btn {
  background-color: #e73323;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.save-btn:hover {
  background-color: #d62c1a;
}

/* Linked Games */
.linked-games-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.linked-game {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.game-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.game-info img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.game-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.game-info p {
  font-size: 14px;
  color: #777;
  margin-bottom: 3px;
}

.game-actions {
  display: flex;
  gap: 10px;
}

.unlink-btn,
.edit-btn,
.remove-btn,
.view-btn,
.disable-btn,
.change-btn {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.unlink-btn:hover,
.edit-btn:hover,
.remove-btn:hover,
.view-btn:hover,
.disable-btn:hover,
.change-btn:hover {
  background-color: #eee;
}

.topup-btn {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  background-color: #e73323;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.topup-btn:hover {
  background-color: #d62c1a;
}

.add-game,
.add-payment-method {
  padding: 15px;
  border: 1px dashed #ddd;
  border-radius: 8px;
  text-align: center;
}

.add-game-btn,
.add-payment-btn {
  background: none;
  border: none;
  color: #e73323;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.add-game-btn i,
.add-payment-btn i {
  font-size: 20px;
}

/* Payment Methods */
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.payment-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.payment-method-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.payment-method-info img {
  width: 50px;
  height: 30px;
  object-fit: contain;
}

.payment-method-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.payment-method-info p {
  font-size: 14px;
  color: #777;
  margin-bottom: 3px;
}

.payment-method-actions {
  display: flex;
  gap: 10px;
}

/* Security Settings */
.security-settings {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.security-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.setting-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.setting-info p {
  font-size: 14px;
  color: #777;
}

.status-enabled {
  color: #4caf50;
  font-weight: bold;
}

.status-disabled {
  color: #f44336;
  font-weight: bold;
}

/* Notification Settings */
.notification-settings {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notification-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.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: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #e73323;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .account-container {
    flex-direction: column;
  }

  .account-sidebar {
    width: 100%;
  }

  .user-profile {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 20px;
  }

  .user-avatar {
    margin: 0 20px 0 0;
  }

  .account-nav {
    display: flex;
    flex-wrap: wrap;
  }

  .account-nav li {
    flex: 1;
    min-width: 150px;
    border-bottom: none;
    border-right: 1px solid #eee;
  }

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

  .account-nav a {
    flex-direction: column;
    text-align: center;
    padding: 15px 10px;
  }

  .account-nav a i {
    margin-right: 0;
    margin-bottom: 5px;
    font-size: 20px;
  }

  .account-nav li.active a {
    border-left: none;
    border-bottom: 3px solid #e73323;
  }
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .linked-game,
  .payment-method,
  .security-setting,
  .notification-setting {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .game-actions,
  .payment-method-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

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

  .account-nav li {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .account-nav a {
    flex-direction: row;
    text-align: left;
  }

  .account-nav a i {
    margin-right: 10px;
    margin-bottom: 0;
    font-size: 16px;
  }

  .account-nav li.active a {
    border-bottom: none;
    border-left: 3px solid #e73323;
  }

  .user-profile {
    flex-direction: column;
    text-align: center;
  }

  .user-avatar {
    margin: 0 0 15px 0;
  }
}

