/* Weather Token Rewards Plugin Styles */
:root {
  --primary-color: #4a80f0;
  --primary-dark: #3a66c5;
  --secondary-color: #62d7c6;
  --accent-color: #f5bc41;
  --text-color: #333;
  --light-text: #666;
  --lighter-text: #999;
  --error-color: #e74c3c;
  --success-color: #2ecc71;
  --border-color: #e0e0e0;
  --bg-light: #f9fafc;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* Common styles for all forms */
.wtr-registration-form,
.wtr-profile-form,
.wtr-wallet-form,
.wtr-withdraw-form {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 540px;
}

.wtr-registration-form input:not([type="submit"]),
.wtr-registration-form select,
.wtr-profile-form input:not([type="submit"]),
.wtr-profile-form select,
.wtr-wallet-form input:not([type="submit"]),
.wtr-withdraw-form input:not([type="submit"]) {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.wtr-registration-form input:focus,
.wtr-registration-form select:focus,
.wtr-profile-form input:focus,
.wtr-profile-form select:focus,
.wtr-wallet-form input:focus,
.wtr-withdraw-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 128, 240, 0.2);
}

.wtr-registration-form input[type="submit"],
.wtr-profile-form input[type="submit"],
.wtr-wallet-form input[type="submit"],
.wtr-withdraw-form input[type="submit"] {
  width: 100%;
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.wtr-registration-form input[type="submit"]:hover,
.wtr-profile-form input[type="submit"]:hover,
.wtr-wallet-form input[type="submit"]:hover,
.wtr-withdraw-form input[type="submit"]:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

.wtr-registration-message {
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.wtr-registration-error {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--error-color);
  border-left: 4px solid var(--error-color);
}

.wtr-registration-success {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

/* --------- Login & Registration Pages --------- */
.wtr-register-login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .wtr-register-login-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
    gap: 3rem;
  }
}

.wtr-switch-form-link {
  text-align: center;
  margin-top: 1rem;
  color: var(--light-text);
}

.wtr-switch-form-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.wtr-switch-form-link a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Form titles for login and registration */
.wtr-registration-form::before,
.wtr-profile-form::before {
  content: "Create Your Account";
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
}

/* Fix for the login form title */
form.wtr-registration-form:has([name="wtr_login"])::before {
  content: "Welcome Back";
}

/* --------- Dashboard Styles --------- */
.wtr-dashboard {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.wtr-dashboard h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
}

.wtr-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .wtr-dashboard-container {
    flex-direction: row;
  }
}

/* Sidebar Styles */
.wtr-sidebar {
  width: 100%;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

@media (min-width: 992px) {
  .wtr-sidebar {
    width: 320px;
    flex-shrink: 0;
  }
}

.wtr-sidebar h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.wtr-profile-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--light-text);
  font-weight: 500;
}

.wtr-wallet-info {
  margin-top: 2rem;
  padding: 1rem;
  background-color: var(--bg-light);
  border-radius: var(--radius-sm);
}

.wtr-wallet-info p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
}

.wtr-wallet-info p strong {
  color: var(--text-color);
}

.wtr-wallet-update {
  margin-top: 2rem;
}

/* Main Content Styles */
.wtr-main-content {
  flex: 1;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.wtr-main-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-color);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.wtr-transactions table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.wtr-transactions th,
.wtr-transactions td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.wtr-transactions th {
  font-weight: 600;
  color: var(--text-color);
  background-color: var(--bg-light);
}

.wtr-transactions tbody tr:hover {
  background-color: var(--bg-light);
}

.wtr-rainy-info {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
}

.wtr-rainy-info p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.wtr-rainy-info strong {
  color: var(--text-color);
}

/* Enhance token balance display */
p:has(strong:contains("Tokens Balance")) {
  font-size: 1.2rem !important;
  padding: 0.75rem 0;
  color: var(--primary-color);
}

/* Special styling for approved/pending KYC status */
p:has(strong:contains("KYC Status")) span:contains("Approved") {
  color: var(--success-color);
  font-weight: 500;
}

p:has(strong:contains("KYC Status")) span:contains("Pending") {
  color: var(--accent-color);
  font-weight: 500;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .wtr-registration-form,
  .wtr-profile-form,
  .wtr-wallet-form,
  .wtr-withdraw-form {
    padding: 1.5rem;
  }
  
  .wtr-dashboard h2 {
    font-size: 1.5rem;
  }
}

/* Container */
.riga-register-container {
    max-width: 600px;
    margin: 50px auto;
    background: linear-gradient(135deg, #e0f7fa, #b2dfdb);
    border: 2px solid #4dd0e1;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 150, 136, 0.3);
}

/* Title */
.riga-register-container h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    color: #00695c;
    font-weight: bold;
}

/* Form */
.wtr-registration-form {
    display: flex;
    flex-direction: column;
}

.wtr-registration-form input,
.wtr-registration-form select {
    margin-bottom: 15px;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #b2ebf2;
    border-radius: 6px;
    outline: none;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.wtr-registration-form input:focus,
.wtr-registration-form select:focus {
    border-color: #26c6da;
}

/* Submit Button */
.wtr-registration-form input[type="submit"] {
    background-color: #00796b;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.wtr-registration-form input[type="submit"]:hover {
    background-color: #004d40;
}

/* Messages */
.wtr-registration-message {
    text-align: center;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-weight: bold;
}

.wtr-registration-success {
    background-color: #c8e6c9;
    color: #256029;
}

.wtr-registration-error {
    background-color: #ffcdd2;
    color: #c62828;
}
/* Remove any unwanted red border */
body, html, * {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
