:root {
    /* Main Colors */
    --primary-color: #21ed58;
    --secondary-color: #26cde0;
    --accent-color: #9c27b0;
    --danger-color: #ff3d00;
    --success-color: #00e676;
  
    /* Background Colors */
    --bg-dark: #121212;
    --bg-card: rgba(30, 30, 30, 0.7);
    --bg-input: rgba(45, 45, 45, 0.5);
  
    /* Text Colors */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
  
    /* Glass Effect */
    --glass-bg: rgba(25, 25, 25, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.25);
    --glass-blur: 4px;
  
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #21ed58, #26cde0);
    --gradient-secondary: linear-gradient(135deg, #26cde0, #9c27b0);
  
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
  
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
  
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
  }
  
  /* Reset & Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
  }
  
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
  }
  
  /* Preloader */
  #preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .spinner {
    width: 60px;
    height: 60px;
    position: relative;
  }
  
  .double-bounce1,
  .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
  }
  
  .double-bounce2 {
    background-color: var(--secondary-color);
    animation-delay: -1.0s;
  }
  
  @keyframes sk-bounce {
    0%,
    100% {
      transform: scale(0.0);
    }
    50% {
      transform: scale(1.0);
    }
  }
  
  /* Container Styles */
  .container {
    width: 90%;
    max-width: 1000px;
    padding: 0;
    position: relative;
  }
  
  .dashboard-container,
  .login-container {
    padding: 0;
  }
  
  /* Glass Card Effect */
  .glass-card,
  .login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  }
  
  .glass-card:hover,
  .login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  }
  
  /* Dashboard Header */
  .dashboard-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  
  .logo-container {
    width: 70px;
    height: 70px;
    margin-right: 1.5rem;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }
  
  .logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
  }
  
  .logo:hover {
    transform: scale(1.1);
  }
  
  .header-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
  }
  
  .app-title {
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Weather Info */
  .weather-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .weather-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .weather-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .weather-item i {
    color: var(--secondary-color);
    font-size: 1rem;
    flex-shrink: 0;
  }
  
  /* Dashboard Main */
  .dashboard-main {
    padding: 1.5rem;
  }
  
  /* Time and Message */
  .time,
  .message {
    text-align: center;
    font-family: "Montserrat", sans-serif;
  }
  
  .time {
    font-size: 2.0rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* animation: pulse 10s infinite ease-in-out; */
  }
  
  .message {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
  }
  
  /* Switch Container */
  .switch-container {
    margin-top: 1.5rem;
    width: 100%;
  }
  
  /* New grid layout for switches - always visible */
  .switch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
  }
  
  .switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: 0; /* Ensures the wrapper can shrink below content size */
    cursor: pointer; /* Add pointer cursor to indicate clickable area */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  
  .switch-wrapper:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  
  /* Add glow effect on hover */
  .switch-wrapper:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(33, 237, 88, 0.1) 0%, transparent 70%);
    pointer-events: none;
  }
  
  .switch-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0; /* Prevents flex item from overflowing */
    flex: 1;
    overflow: hidden;
  }
  
  .switch-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
  }
  
  .switch-wrapper:hover .switch-icon {
    transform: scale(1.2);
  }
  
  .switch-label {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  
  /* Switch Toggle */
  .switch {
    position: relative;
    width: 60px;
    height: 30px;
    flex-shrink: 0;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
    border-radius: 30px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    overflow: hidden;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-normal);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
  }
  
  /* Add glow effect behind the slider button */
  .slider::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 4px;
    bottom: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transition: var(--transition-normal);
    opacity: 0.6;
    z-index: 1;
  }
  
  input:checked + .slider {
    background: var(--gradient-primary);
  }
  
  input:checked + .slider:before {
    transform: translateX(30px);
  }
  
  input:checked + .slider::after {
    transform: translateX(30px);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 2px var(--primary-color);
  }
  
  /* Token Selector Styles */
  .token-selector-container {
    margin-top: 1.5rem;
    width: 100%;
  }
  
  .token-selector-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
  }
  
  .token-selector-wrapper:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
  }
  
  .token-selector-wrapper:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(38, 205, 224, 0.1) 0%, transparent 70%);
    pointer-events: none;
  }
  
  .token-selector-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
  }
  
  .token-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
  }
  
  .token-selector-wrapper:hover .token-icon {
    transform: scale(1.2);
  }
  
  .token-dropdown {
    position: relative;
    min-width: 180px;
  }
  
  .token-select {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all var(--transition-normal);
  }
  
  .token-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(38, 205, 224, 0.2);
  }
  
  .token-dropdown-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    pointer-events: none;
    transition: transform var(--transition-normal);
  }
  
  .token-select:focus + .token-dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
  }
  
  /* Logout Button */
  .logout-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
  }
  
  .logout-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
  }
  
  .logout-button:hover {
    color: var(--danger-color);
    background: rgba(255, 61, 0, 0.1);
  }
  
  .logout-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 61, 0, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
  }
  
  .logout-button:hover::before {
    width: 300%;
    height: 300%;
  }
  
  .logout-button i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
  }
  
  .logout-button span {
    position: relative;
    z-index: 1;
  }
  
  /* Geolocation Prompt */
  .geolocation-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .geo-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    max-width: 90%;
    width: 400px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .prompt-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
  }
  
  .prompt-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
  }
  
  .prompt-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }
  
  .prompt-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 237, 88, 0.3);
  }
  
  .prompt-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
  }
  
  .prompt-button:hover::before {
    left: 100%;
  }
  
  .prompt-button i {
    font-size: 1.1rem;
  }
  
  /* Loader */
  .loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  .hidden {
    display: none;
  }
  
  /* Login Page Styles */
  .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  .login-card {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
  }
  
  .login-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(38, 205, 224, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    z-index: -1;
  }
  
  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  .login-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }
  
  .login-title {
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .login-main {
    margin-bottom: 2rem;
  }
  
  .login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .error-container {
    margin-bottom: 1rem;
  }
  
  .error {
    background-color: rgba(255, 61, 0, 0.2);
    color: var(--danger-color);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .error i {
    font-size: 1.1rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .form-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .input-group {
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--bg-input);
    transition: all var(--transition-normal);
    position: relative;
  }
  
  .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(33, 237, 88, 0.2);
  }
  
  .input-group:focus-within::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 237, 88, 0.1), transparent);
    animation: shimmer 1.5s infinite;
  }
  
  @keyframes shimmer {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
  }
  
  .input-group-text {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
  }
  
  .form-input {
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    width: 100%;
  }
  
  .form-input::placeholder {
    color: var(--text-muted);
  }
  
  /* Custom Checkbox */
  .save-token {
    margin-top: 0.5rem;
  }
  
  .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--bg-input);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-normal);
  }
  
  .custom-checkbox:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
  }
  
  .custom-checkbox:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  
  .checkbox-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .login-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
  }
  
  .login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 237, 88, 0.3);
  }
  
  .login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
  }
  
  .login-btn:hover::before {
    left: 100%;
  }
  
  .login-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
  }
  
  /* Responsive Design - ALWAYS KEEP SWITCHES VISIBLE */
  @media (max-width: 768px) {
    .container {
      width: 95%;
    }
  
    .app-title {
      font-size: 1.5rem;
    }
  
    .weather-info {
      grid-template-columns: 1fr;
    }
  
    .time {
      font-size: 2rem;
    }
  
    .message {
      font-size: 1rem;
    }
  
    /* Keep switches visible but make them more compact */
    .switch-grid {
      gap: 0.75rem;
    }
  
    .switch-wrapper {
      padding: 0.75rem;
    }
  
    /* Token selector responsive */
    .token-selector-wrapper {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
    }
  
    .token-dropdown {
      width: 100%;
    }
  }
  
  @media (max-width: 576px) {
    .dashboard-header {
      flex-direction: column;
      text-align: center;
    }
  
    .logo-container {
      margin-right: 0;
      margin-bottom: 1rem;
    }
  
    .header-content {
      text-align: center;
    }
  
    .weather-row {
      justify-content: center;
    }
  
    /* Keep 2x2 grid but make it more compact */
    .switch-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem;
    }
  
    .switch-wrapper {
      padding: 0.5rem;
    }
  
    .switch-label {
      font-size: 0.9rem;
    }
  
    /* Make switches smaller on small screens */
    .switch {
      width: 50px;
      height: 26px;
    }
  
    .slider:before {
      height: 18px;
      width: 18px;
    }
  
    input:checked + .slider:before {
      transform: translateX(24px);
    }
  }
  
  /* For very small screens - still keep all switches visible */
  @media (max-width: 360px) {
    .logo-container {
      width: 50px;
      height: 50px;
    }
  
    .app-title {
      font-size: 1.2rem;
    }
  
    .weather-item {
      font-size: 0.8rem;
    }
  
    .time {
      font-size: 1.5rem;
    }
  
    .message {
      font-size: 0.9rem;
      margin-bottom: 1rem;
    }
  
    /* Keep 2x2 grid but make it even more compact */
    .switch-grid {
      gap: 0.4rem;
    }
  
    .switch-wrapper {
      padding: 0.4rem;
    }
  
    .switch-icon {
      font-size: 1rem;
    }
  
    .switch-label {
      font-size: 0.8rem;
    }
  
    /* Make switches even smaller */
    .switch {
      width: 40px;
      height: 22px;
    }
  
    .slider:before {
      height: 16px;
      width: 16px;
      left: 3px;
      bottom: 3px;
    }
  
    input:checked + .slider:before {
      transform: translateX(18px);
    }
  
    /* Token selector for very small screens */
    .token-selector-label {
      font-size: 0.9rem;
    }
  
    .token-select {
      font-size: 0.8rem;
      padding: 0.4rem 2rem 0.4rem 0.8rem;
    }
  }
  
  /* For extremely small screens */
  @media (max-width: 320px) {
    .dashboard-main {
      padding: 1rem 0.5rem;
    }
  
    .time {
      font-size: 1.2rem;
    }
  
    .message {
      font-size: 0.8rem;
      margin-bottom: 0.75rem;
    }
  
    /* Still keep 2x2 grid but minimize padding and spacing */
    .switch-grid {
      gap: 0.3rem;
    }
  
    .switch-wrapper {
      padding: 0.3rem;
    }
  
    .switch-info {
      gap: 0.3rem;
    }
  
    .switch-icon {
      font-size: 0.9rem;
    }
  
    .switch-label {
      font-size: 0.7rem;
    }
  
    /* Make switches tiny but still functional */
    .switch {
      width: 36px;
      height: 20px;
    }
  
    .slider:before {
      height: 14px;
      width: 14px;
      left: 3px;
      bottom: 3px;
    }
  
    input:checked + .slider:before {
      transform: translateX(16px);
    }
  }
  
  /* Animation Keyframes */
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  /* Dark Mode Support */
  .dark {
    --bg-dark: #000000;
    --bg-card: rgba(15, 15, 15, 0.8);
    --bg-input: rgba(30, 30, 30, 0.7);
  }
  
  /* Landscape Mode Optimization - ALWAYS KEEP SWITCHES VISIBLE */
  @media only screen and (max-height: 600px) and (orientation: landscape) {
    body.landscape-mode .dashboard-container {
      height: 100vh;
      overflow: hidden;
      padding: 0.5rem;
    }
  
    body.landscape-mode .glass-card {
      display: flex;
      flex-direction: row;
      height: calc(100vh - 1rem);
    }
  
    body.landscape-mode .dashboard-header {
      padding: 0.5rem;
      height: auto;
      flex-shrink: 0;
      flex-direction: column;
      width: 30%;
      border-right: 1px solid var(--glass-border);
      border-bottom: none;
    }
  
    body.landscape-mode .logo-container {
      width: 40px;
      height: 40px;
      margin-right: 0;
      margin-bottom: 0.5rem;
    }
  
    body.landscape-mode .app-title {
      font-size: 1rem;
      margin-bottom: 0.2rem;
    }
  
    body.landscape-mode .weather-info {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.2rem;
    }
  
    body.landscape-mode .weather-item {
      font-size: 0.7rem;
    }
  
    body.landscape-mode .dashboard-main {
      padding: 0.5rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
  
    body.landscape-mode .time {
      font-size: 1rem;
      margin-bottom: 0.2rem;
    }
  
    body.landscape-mode .message {
      font-size: 0.8rem;
      margin-bottom: 0.5rem;
    }
  
    body.landscape-mode .switch-container {
      margin-top: 0.5rem;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
  
    /* Always maintain 2x2 grid in landscape mode */
    body.landscape-mode .switch-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      gap: 0.5rem;
      height: 100%;
    }
  
    body.landscape-mode .switch-wrapper {
      padding: 0.5rem;
      margin-bottom: 0;
      height: 100%;
    }
  
    body.landscape-mode .switch {
      width: 40px;
      height: 22px;
    }
  
    body.landscape-mode .slider:before {
      height: 16px;
      width: 16px;
      left: 3px;
      bottom: 3px;
    }
  
    body.landscape-mode input:checked + .slider:before {
      transform: translateX(18px);
    }
  
    body.landscape-mode .logout-container {
      margin-top: 0.5rem;
    }
  
    body.landscape-mode .logout-button {
      padding: 0.3rem 0.6rem;
      font-size: 0.8rem;
    }
  
    /* Token selector in landscape mode */
    body.landscape-mode .token-selector-container {
      margin-top: 0.5rem;
    }
  
    body.landscape-mode .token-selector-wrapper {
      padding: 0.5rem;
      flex-direction: row;
      align-items: center;
    }
  
    body.landscape-mode .token-selector-label {
      font-size: 0.8rem;
    }
  
    body.landscape-mode .token-select {
      font-size: 0.8rem;
      padding: 0.3rem 2rem 0.3rem 0.8rem;
    }
  
    /* For extremely small height in landscape mode */
    @media only screen and (max-height: 400px) and (orientation: landscape) {
      body.landscape-mode .switch-grid {
        gap: 0.3rem;
      }
  
      body.landscape-mode .switch-wrapper {
        padding: 0.3rem;
      }
  
      body.landscape-mode .switch-icon {
        font-size: 0.9rem;
      }
  
      body.landscape-mode .switch-label {
        font-size: 0.7rem;
      }
  
      body.landscape-mode .switch {
        width: 36px;
        height: 20px;
      }
  
      body.landscape-mode .slider:before {
        height: 14px;
        width: 14px;
      }
  
      body.landscape-mode input:checked + .slider:before {
        transform: translateX(16px);
      }
  
      body.landscape-mode .token-selector-wrapper {
        padding: 0.3rem;
      }
  
      body.landscape-mode .token-selector-label {
        font-size: 0.7rem;
      }
  
      body.landscape-mode .token-select {
        font-size: 0.7rem;
        padding: 0.2rem 1.8rem 0.2rem 0.6rem;
      }
    }
  }
  
  /* Add these styles to your existing styles.css file */
  
  /* Profile Container Styles */
  .profile-container,
  .delete-container {
    max-width: 800px;
    margin: 2rem auto;
    animation: fadeIn 0.5s ease;
  }
  
  .profile-card,
  .delete-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding-bottom: 20px;
  }
  
  .profile-header,
  .delete-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
  }
  
  .profile-title,
  .delete-title {
    margin: 15px 0 0;
    font-size: 28px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-weight: 600;
    align-self: center;
  }
  
  .back-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .profile-content,
  .delete-content {
    padding: 25px;
  }
  
  /* Form Styles */
  #update-details-form .input-group {
    position: relative;
    margin-bottom: 25px;
  }
  
  #update-details-form .input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
  }
  
  #update-details-form .input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  #update-details-form .input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }
  
  #update-details-form .input-group i.icon {
    position: absolute;
    left: 15px;
    top: 40px;
    color: #aaa;
    font-size: 18px;
  }
  
  #update-details-form .input-group i.toggle-password {
    position: absolute;
    right: 15px;
    top: 40px;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
  }
  
  /* Switch Inputs */
  .switch-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .switch-input-row {
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .switch-input-row input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .switch-input-row input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }
  
  .switch-input-row i.icon {
    position: absolute;
    left: 15px;
    color: #aaa;
    font-size: 18px;
  }
  
  /* Form Buttons */
  #update-submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  }
  
  #update-submit-btn:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  }
  
  /* Delete Account Section */
  .delete-account-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }
  
  .delete-account-btn {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  
  .delete-account-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: translateY(-2px);
  }
  
  .delete-account-btn i {
    font-size: 18px;
  }
  
  /* Form Message */
  .form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
  }
  
  .form-message:not(:empty) {
    display: block;
  }
  
  .success-message {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
  }
  
  .error-message {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
  }
  
  /* Delete Account Container */
  .warning-icon {
    text-align: center;
    margin-bottom: 25px;
  }
  
  .warning-icon i {
    font-size: 60px;
    color: #f39c12;
  }
  
  .warning-text {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    line-height: 1.6;
    font-size: 16px;
  }
  
  .delete-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .cancel-btn,
  .delete-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
  }
  
  .cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
  }
  
  .cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .delete-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
  }
  
  .delete-btn:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
  }
  
  /* Change Details Button */
  .change-details-btn {
    color: var(--text-secondary);
  }
  
  .change-details-btn:hover {
    color: var(--primary-color);
    background: rgba(33, 237, 88, 0.1);
  }
  
  /* Animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  /* Responsive Styles */
  @media (max-width: 576px) {
    .profile-container,
    .delete-container {
      margin: 1rem auto;
      padding: 0 10px;
    }
  
    .profile-header,
    .delete-header {
      padding: 15px;
    }
  
    .profile-title,
    .delete-title {
      font-size: 22px;
    }
  
    .profile-content,
    .delete-content {
      padding: 15px;
    }
  
    .logout-container {
      flex-wrap: wrap;
      gap: 10px;
    }
  
    .logout-button {
      font-size: 0.9rem;
      padding: 0.4rem 0.8rem;
    }
  
    #update-details-form .input-group input,
    .switch-input-row input {
      padding: 12px 12px 12px 40px;
      font-size: 14px;
    }
  
    #update-details-form .input-group i.icon,
    .switch-input-row i.icon {
      font-size: 16px;
      top: 38px;
    }
  
    #update-submit-btn,
    .delete-account-btn {
      padding: 12px;
      font-size: 14px;
    }
  
    .back-button {
      padding: 6px 12px;
      font-size: 13px;
    }
  }
  
  /* Add these styles to your existing styles.css file */
  
  .switch-wrapper {
    cursor: pointer; /* Add pointer cursor to indicate clickable area */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  
  /* Add these styles to your existing styles.css file */
  
  /* CAPTCHA Styling */
  .captcha-container {
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
  }
  
  .g-recaptcha {
    margin-bottom: 0.5rem;
    transform-origin: left top;
    -webkit-transform-origin: left top;
    display: inline-block;
  }
  
  .captcha-container:hover .g-recaptcha {
    transform: scale(1.02);
  }
  
  .captcha-error {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 61, 0, 0.1);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    animation: fadeIn 0.3s ease;
  }
  
  /* Add a subtle glow effect to the CAPTCHA when focused */
  .captcha-container:focus-within::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(33, 237, 88, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 2s infinite;
  }
  
  /* For smaller screens */
  @media (max-width: 400px) {
    .g-recaptcha {
      transform: scale(0.85);
      -webkit-transform: scale(0.85);
      margin-left: -22px; /* Adjust this value based on your layout */
    }
  }
  
  @media (max-width: 320px) {
    .g-recaptcha {
      transform: scale(0.77);
      -webkit-transform: scale(0.77);
      margin-left: -30px; /* Adjust this value based on your layout */
    }
  }
  
  