/* style.css */

/* General and Body Styles */
body {
  font-family: sans-serif;
  background-color: #111;
  color: #eee;
  text-align: center;
  padding: 50px;
  background: url('demon-background.png') no-repeat center center fixed; /* Placeholder image */
  background-size: cover;
  font-family: 'Inter', sans-serif; /* Default font for body text */
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  display: flex; /* For main layout with toolbar */
  flex-direction: row; /* Default for desktop: toolbar on left */
  min-height: 100vh; /* Ensure body takes full viewport height */
}

/* Overlay for background */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.1); /* Minimal transparency */
  z-index: -1;
}

/* Custom scrollbar for a sleek look */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Container for general content (if used) */
.container {
  max-width: 500px;
  margin: auto;
  padding: 30px;
  background: #222;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Base input and button styles (overridden by specific classes) */
input, button {
  width: 100%;
  margin: 15px 0;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}
button {
  background-color: #444;
  color: white;
  cursor: pointer;
}
button:hover {
  background-color: #666;
}

/* Ensure html and body take full viewport height for sticky footer */
html, body {
  height: 100%;
}

/* Header, section, footer base padding and text alignment */
header, section, footer {
  padding: 1.5rem;
  text-align: center;
}

/* Headings using Orbitron font */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
}

/* Base styles for all custom buttons (CTA, Tool, Nav) */
.button-base {
  display: inline-block;
  font-weight: bold;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  border: 2px solid #ff6a00;
  background: radial-gradient(circle at top left, #ff4d00, #ff0000, #cc0000);
  background-size: 300% 300%;
  animation: flame-flicker 1.5s infinite alternate, glow-pulse 3s infinite ease-in-out;
  box-shadow: 0 0 20px rgba(255, 100, 0, 0.75), inset 0 0 10px rgba(255, 140, 0, 0.5);
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease;
  cursor: pointer;
}

.button-base:hover {
  transform: scale(1.06);
  box-shadow: 0 0 40px rgba(255, 150, 0, 1), inset 0 0 20px rgba(255, 90, 0, 0.9);
}

/* Specific styles for large Call-to-Action buttons within sections */
.cta-button {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  width: 90%;
  max-width: 300px;
  margin: 0.5rem;
}

/* Specific styles for header/sidebar navigation buttons */
.header-nav-button {
  padding: 0.5rem 0.75rem; /* Smaller padding */
  font-size: 0.8rem; /* Smaller font size */
  width: auto; /* Allow content to dictate width */
  max-width: none; /* No max width constraint */
  margin: 0.25rem; /* Smaller margin for compact layout */
}

/* Keyframe animations */
@keyframes flame-flicker {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow-pulse {
  0% { box-shadow: 0 0 10px rgba(255, 60, 0, 0.6), inset 0 0 5px rgba(255, 80, 0, 0.5); }
  100% { box-shadow: 0 0 25px rgba(255, 100, 0, 0.85), inset 0 0 15px rgba(255, 140, 0, 0.9); }
}

/* Mobile responsiveness adjustments for general elements */
@media screen and (max-width: 480px) {
  .tagline {
    font-size: 1rem;
  }
  .header-nav-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Styles for the new fixed toolbar */
#mainToolbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 180px;
  height: 100%;
  background-color: rgba(26, 26, 26, 0.5); /* Semi-transparent background */
  padding: 20px 0;
  display: flex;
  flex-direction: column; /* Always column for vertical buttons */
  align-items: center;
  z-index: 99;
  overflow-y: auto;
}

#mainToolbar .toolbar-link {
  display: block;
  width: 100%;
  padding: 15px 10px;
  color: #ccc;
  text-decoration: none;
  text-align: center;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mainToolbar .toolbar-link:last-child {
  border-bottom: none;
}

#mainToolbar .toolbar-link:hover {
  background-color: rgba(42, 42, 42, 0.5); /* Semi-transparent hover */
  color: #fff;
}

#mainToolbar .toolbar-link.active {
  background-color: #ff2e2e;
  color: #fff;
  font-weight: bold;
}

/* Adjust main content to make space for the toolbar */
body > main {
  margin-left: 180px;
  padding: 20px;
  box-sizing: border-box;
  width: calc(100% - 180px);
  flex-grow: 1; /* Allow main content to take remaining space */
  display: flex; /* Make main a flex container */
  flex-direction: column; /* Stack its children vertically */
  min-height: 100%; /* Ensure main takes at least 100% of its parent's height */
}

/* Responsive adjustments for toolbar on smaller screens */
@media (max-width: 768px) {
  body {
    flex-direction: column; /* Stack toolbar on top for mobile */
  }
  #mainToolbar {
    width: 100%;
    height: auto;
    position: relative; /* Toolbar becomes part of normal flow */
    flex-direction: row; /* Horizontal layout for toolbar on mobile */
    justify-content: space-around;
    padding: 10px 0;
  }

  #mainToolbar .toolbar-link {
    padding: 10px 5px;
    font-size: 0.9rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05); /* Add right border for horizontal links */
  }
  #mainToolbar .toolbar-link:last-child {
    border-right: none;
  }

  body > main {
    margin-left: 0;
    width: 100%;
    padding-top: 0; /* Remove top padding if header is below toolbar */
  }
}

/* Header styling to maintain its opacity and position, complementing global styles */
header {
  background-color: rgba(26, 26, 26, 0.3); /* Semi-transparent background */
  border-radius: 8px;
  position: relative; /* For login icon positioning */
  overflow: hidden; /* Ensure no overflow from absolute elements */
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
}
header h1 {
  font-size: 3rem;
  color: #ff2e2e;
  margin-bottom: 10px;
}
header .tagline {
  font-size: 1.1rem;
  color: #bbb;
  margin-bottom: 20px;
}

/* Styles for the Login/User Icon */
#loginUserIcon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #ff2e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 100;
  flex-direction: column;
  text-decoration: none;
}

#loginUserIcon:hover {
  background-color: #ff1a1a;
  transform: scale(1.05);
}

#loginUserIcon.logged-in {
  background-color: #4CAF50;
  font-size: 0.8rem;
  padding: 5px;
  width: auto;
  height: auto;
  border-radius: 8px;
}

#loginUserIcon .icon {
  display: block;
}

#loginUserIcon .user-name {
  font-size: 0.7rem;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

@media (max-width: 640px) {
  #loginUserIcon {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  #loginUserIcon.logged-in {
    padding: 3px 8px;
    min-width: 60px;
    font-size: 0.7rem;
  }
  #loginUserIcon .user-name {
    font-size: 0.6rem;
    max-width: 50px;
  }
}

/* Floating Telegram Button */
.telegram-float-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #0088cc; /* Telegram blue */
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.telegram-float-button:hover {
  transform: scale(1.1);
  background-color: #007bb5;
}

/* Disclaimer Overlay */
.disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Darker overlay for better contrast */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.disclaimer-overlay.show {
  opacity: 1;
  visibility: visible;
}

.disclaimer-popup {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.disclaimer-overlay.show .disclaimer-popup {
  transform: scale(1);
}

.disclaimer-popup h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ffcc00;
}

.disclaimer-popup p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.disclaimer-close-button {
  background: #ff4d00;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease-in-out;
}

.disclaimer-close-button:hover {
  background: #cc0000;
}

/* Custom Message Box Styles */
.message-box-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001; /* Higher than disclaimer */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.message-box-overlay.show {
  opacity: 1;
  visibility: visible;
}

.message-box-content {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.message-box-overlay.show .message-box-content {
  transform: scale(1);
}

.message-box-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ffcc00;
}

.message-box-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.message-box-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.message-box-button {
  background: #ff4d00;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease-in-out;
}

.message-box-button:hover {
  background-color: #cc0000;
}

.message-box-content input {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #555;
  background-color: #333;
  color: #eee;
  font-size: 1rem;
}


/* Tool Blocks Section */
.tool-blocks-section {
  background: #1a1a1a; /* This specific section background */
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  margin-top: 4rem; /* Space from previous section */
}

.tool-blocks-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #ffcc00;
  text-shadow: 0 0 10px rgba(255, 100, 0, 0.5);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.tool-block {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 100, 0, 0.3); /* Orange border for the tools */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.tool-block h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ff8c00; /* Darker orange for tool titles */
  margin-bottom: 0.75rem;
}

.tool-block p {
  font-size: 0.95rem;
  color: #d1d5db; /* text-gray-300 */
  margin-bottom: 1rem;
  flex-grow: 1; /* Allows paragraphs to take available space */
}

.tool-block .cta-button {
  margin-top: auto; /* Pushes button to the bottom */
  width: auto;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

/* Contact Form Specific Styles - Now for the popup content */
.contact-form-popup {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    text-align: left; /* Align form labels and inputs to the left */
    border: 1px solid rgba(255, 100, 0, 0.3);
    position: relative; /* For close button positioning */
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}
.contact-overlay.show .contact-form-popup {
  transform: scale(1);
}

.contact-form-popup h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 100, 0, 0.5);
    text-align: center; /* Center the section heading */
}

.contact-form-popup form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between form groups */
}

.contact-form-popup label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff8c00;
    display: flex;
    flex-direction: column;
}

.contact-form-popup input[type="email"],
.contact-form-popup textarea {
    background-color: #333;
    border: 1px solid #555;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #eee;
    margin-top: 0.5rem; /* Space between label text and input field */
    width: 100%; /* Full width within its container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.contact-form-popup textarea {
    min-height: 120px; /* Make textarea taller */
    resize: vertical; /* Allow vertical resizing */
}

.contact-form-popup input[type="email"]:focus,
.contact-form-popup textarea:focus {
    outline: none;
    border-color: #ff4d00;
    box-shadow: 0 0 0 2px rgba(255, 77, 0, 0.5);
}

.contact-form-popup button[type="submit"] {
    align-self: center; /* Center the submit button */
    width: 80%;
    max-width: 250px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1.5rem; /* Space above the button */
    /* Inherits button-base styles for fiery look */
}
.contact-close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #f0f0f0;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.contact-close-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Contact Overlay */
.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Darker overlay for better contrast */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002; /* Higher than disclaimer */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.contact-overlay.show {
  opacity: 1;
  visibility: visible;
}


/* Footer specific styles */
.footer-section {
  background: #0a0a0a; /* Very dark background */
  color: #bbb;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid #222;
  /* Removed margin-top: 4rem; to rely on mt-auto in HTML */
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffcc00;
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 1rem;
}

.footer-section .patreon-button {
  display: inline-block;
  background-color: #FF424D; /* Patreon red */
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1rem;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease;
}

.footer-section .patreon-button:hover {
  background-color: #e63c45;
  transform: translateY(-2px);
}

.footer-links a {
  color: #ff7e00; /* Orange for links */
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
  color: #ffae42;
  text-decoration: underline;
}

.recaptcha-text {
  font-size: 0.75rem;
  color: #888;
  margin-top: 1.5rem;
}

.recaptcha-text a {
  color: #999;
  text-decoration: underline;
}
/* Styles for checkbox */
.disclaimer-checkbox-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem; /* Space below checkbox before button */
}

.disclaimer-checkbox-group input[type="checkbox"] {
  width: auto; /* Override 100% width for inputs */
  margin: 0; /* Remove default margins */
  transform: scale(1.2); /* Make checkbox slightly larger */
}

.disclaimer-checkbox-group label {
  font-size: 1.1rem;
  color: #f0f0f0;
  cursor: pointer;
}

/* Styles moved from login.html and register.html */

/* Login/Register Container Common Styles */
body.popup-body { /* Apply to body of popup windows */
  padding: 0; /* Remove padding from body of popup to center content */
}
.login-container, .register-container {
    background: #1a1a1a;
    padding: 2.5em;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px; /* Default max-width for login */
    text-align: center;
    border: 1px solid rgba(255, 100, 0, 0.3);
    position: relative; /* For close button */
}

.register-container {
    max-width: 500px; /* Slightly wider for register form */
}


.login-container h2, .register-container h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2em;
    color: #ff2e2e; /* Changed to match landing page primary color */
    margin-bottom: 1em;
    text-shadow: 0 0 10px rgba(255, 100, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5em;
    text-align: left;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #333;
    color: #eee;
    font-size: 1em;
    box-sizing: border-box; /* Crucial for padding/border not to add to width */
}

.form-group input:focus {
    outline: none;
    border-color: #ff4d00;
    box-shadow: 0 0 0 2px rgba(255, 77, 0, 0.5);
}

.login-button, .register-button, .social-login-button, .social-register-button {
    display: block;
    width: 100%;
    padding: 0.9em;
    margin-top: 1.5em;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    color: white;
    border: none;
}

.login-button, .register-button {
    background: radial-gradient(circle at top left, #ff4d00, #ff0000, #cc0000);
    background-size: 300% 300%;
    animation: flame-flicker 1.5s infinite alternate, glow-pulse 3s infinite ease-in-out;
    box-shadow: 0 0 15px rgba(255, 100, 0, 0.75);
    border: 2px solid #ff6a00;
}

.login-button:hover, .register-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 150, 0, 1);
}

.social-login-button, .social-register-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    background-color: #4285F4; /* Google Blue */
    margin-top: 1em;
    padding: 0.9em;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.social-login-button.google, .social-register-button.google {
    background-color: #4285F4;
}
.social-login-button.google:hover, .social-register-button.google:hover {
    background-color: #357ae8;
}

/* Specific social button styles (if needed) */
/* .social-login-button.facebook { background-color: #1877F2; } */
/* .social-login-button.facebook:hover { background-color: #166fe5; } */

.social-login-button img, .social-register-button img {
    width: 1.5em;
    height: 1.5em;
}

.forgot-password, .register-link, .login-link {
    display: block;
    margin-top: 1.2em;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95em;
}

.forgot-password:hover, .register-link:hover, .login-link:hover {
    color: #ccc;
    text-decoration: underline;
}

/* Custom Alert Box Styles (Shared) */
.alert-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 50, 50, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    font-size: 1.1em;
}

.alert-box.hidden {
    opacity: 0;
    pointer-events: none; /* Prevent interaction when hidden */
}

/* Close Window Button Style (New) */
.close-window-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2em; /* Larger X */
  color: #bbb;
  cursor: pointer;
  line-height: 1;
  padding: 0; /* Remove default button padding */
  width: 30px; /* Make it a square target */
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.close-window-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #eee;
}

/* Responsive adjustments for login/register popups */
@media (max-width: 600px) {
    .login-container, .register-container {
        margin: 1em;
        padding: 1.5em;
    }
    .login-container h2, .register-container h2 {
        font-size: 1.8em;
    }
    .login-button, .register-button, .social-login-button, .social-register-button {
        font-size: 1em;
        padding: 0.8em;
    }
}

/* style.css */

/* General and Body Styles */
body {
  font-family: sans-serif;
  background-color: #111;
  color: #eee;
  text-align: center;
  padding: 50px;
  background: url('demon-background.png') no-repeat center center fixed; /* Placeholder image */
  background-size: cover;
  font-family: 'Inter', sans-serif; /* Default font for body text */
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  display: flex; /* For main layout with toolbar */
  flex-direction: row; /* Default for desktop: toolbar on left */
  min-height: 100vh; /* Ensure body takes full viewport height */
}

/* Overlay for background */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.1); /* Minimal transparency */
  z-index: -1;
}

/* Custom scrollbar for a sleek look */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #2a2a2a;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Container for general content (if used) */
.container {
  max-width: 500px;
  margin: auto;
  padding: 30px;
  background: #222;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Base input and button styles (overridden by specific classes) */
input, button {
  width: 100%;
  margin: 15px 0;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
}
button {
  background-color: #444;
  color: white;
  cursor: pointer;
}
button:hover {
  background-color: #666;
}

/* Ensure html and body take full viewport height for sticky footer */
html, body {
  height: 100%;
}

/* Header, section, footer base padding and text alignment */
header, section, footer {
  padding: 1.5rem;
  text-align: center;
}

/* Headings using Orbitron font */
h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
}

/* Base styles for all custom buttons (CTA, Tool, Nav) */
.button-base {
  display: inline-block;
  font-weight: bold;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  border: 2px solid #ff6a00;
  background: radial-gradient(circle at top left, #ff4d00, #ff0000, #cc0000);
  background-size: 300% 300%;
  animation: flame-flicker 1.5s infinite alternate, glow-pulse 3s infinite ease-in-out;
  box-shadow: 0 0 20px rgba(255, 100, 0, 0.75), inset 0 0 10px rgba(255, 140, 0, 0.5);
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease;
  cursor: pointer;
}

.button-base:hover {
  transform: scale(1.06);
  box-shadow: 0 0 40px rgba(255, 150, 0, 1), inset 0 0 20px rgba(255, 90, 0, 0.9);
}

/* Specific styles for large Call-to-Action buttons within sections */
.cta-button {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  width: 90%;
  max-width: 300px;
  margin: 0.5rem;
}

/* Specific styles for header/sidebar navigation buttons */
.header-nav-button {
  padding: 0.5rem 0.75rem; /* Smaller padding */
  font-size: 0.8rem; /* Smaller font size */
  width: auto; /* Allow content to dictate width */
  max-width: none; /* No max width constraint */
  margin: 0.25rem; /* Smaller margin for compact layout */
}

/* Keyframe animations */
@keyframes flame-flicker {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes glow-pulse {
  0% { box-shadow: 0 0 10px rgba(255, 60, 0, 0.6), inset 0 0 5px rgba(255, 80, 0, 0.5); }
  100% { box-shadow: 0 0 25px rgba(255, 100, 0, 0.85), inset 0 0 15px rgba(255, 140, 0, 0.9); }
}

/* Mobile responsiveness adjustments for general elements */
@media screen and (max-width: 480px) {
  .tagline {
    font-size: 1rem;
  }
  .header-nav-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Styles for the new fixed toolbar */
#mainToolbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 180px;
  height: 100%;
  background-color: rgba(26, 26, 26, 0.5); /* Semi-transparent background */
  padding: 20px 0;
  display: flex;
  flex-direction: column; /* Always column for vertical buttons */
  align-items: center;
  z-index: 99;
  overflow-y: auto;
}

#mainToolbar .toolbar-link {
  display: block;
  width: 100%;
  padding: 15px 10px;
  color: #ccc;
  text-decoration: none;
  text-align: center;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#mainToolbar .toolbar-link:last-child {
  border-bottom: none;
}

#mainToolbar .toolbar-link:hover {
  background-color: rgba(42, 42, 42, 0.5); /* Semi-transparent hover */
  color: #fff;
}

#mainToolbar .toolbar-link.active {
  background-color: #ff2e2e;
  color: #fff;
  font-weight: bold;
}

/* Adjust main content to make space for the toolbar */
body > main {
  margin-left: 180px;
  padding: 20px;
  box-sizing: border-box;
  width: calc(100% - 180px);
  flex-grow: 1; /* Allow main content to take remaining space */
  display: flex; /* Make main a flex container */
  flex-direction: column; /* Stack its children vertically */
  min-height: 100%; /* Ensure main takes at least 100% of its parent's height */
}

/* Responsive adjustments for toolbar on smaller screens */
@media (max-width: 768px) {
  body {
    flex-direction: column; /* Stack toolbar on top for mobile */
  }            
  #mainToolbar {
    width: 100%;
    height: auto;
    position: relative; /* Toolbar becomes part of normal flow */
    flex-direction: row; /* Horizontal layout for toolbar on mobile */
    justify-content: space-around;
    padding: 10px 0;
  }

  #mainToolbar .toolbar-link {
    padding: 10px 5px;
    font-size: 0.9rem;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.05); /* Add right border for horizontal links */
  }
  #mainToolbar .toolbar-link:last-child {
    border-right: none;
  }

  body > main {
    margin-left: 0;
    width: 100%;
    padding-top: 0; /* Remove top padding if header is below toolbar */
  }
}

/* Header styling to maintain its opacity and position, complementing global styles */
header {
  background-color: rgba(26, 26, 26, 0.3); /* Semi-transparent background */
  border-radius: 8px;
  position: relative; /* For login icon positioning */
  overflow: hidden; /* Ensure no overflow from absolute elements */
  text-align: center;
  padding: 20px;
  margin-bottom: 20px;
}
header h1 {
  font-size: 3rem;
  color: #ff2e2e;
  margin-bottom: 10px;
}
header .tagline {
  font-size: 1.1rem;
  color: #bbb;
  margin-bottom: 20px;
}

/* Styles for the Login/User Icon */
#loginUserIcon {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #ff2e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 100;
  flex-direction: column;
  text-decoration: none;
}

body > main {
  margin-left: 180px; /* Adjust for the fixed toolbar width */
}

#loginUserIcon:hover {
  background-color: #ff1a1a;
  transform: scale(1.05);
}

#loginUserIcon.logged-in {
  background-color: #4CAF50;
  font-size: 0.8rem;
  padding: 5px;
  width: auto;
  height: auto;
  border-radius: 8px;
}

#loginUserIcon .icon {
  display: block;
}

#loginUserIcon .user-name {
  font-size: 0.7rem;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

@media (max-width: 640px) {
  #loginUserIcon {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  #loginUserIcon.logged-in {
    padding: 3px 8px;
    min-width: 60px;
    font-size: 0.7rem;
  }
  #loginUserIcon .user-name {
    font-size: 0.6rem;
    max-width: 50px;
  }
}

/* Floating Telegram Button */
.telegram-float-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #0088cc; /* Telegram blue */
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.telegram-float-button:hover {
  transform: scale(1.1);
  background-color: #007bb5;
}

/* Disclaimer Overlay */
.disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Darker overlay for better contrast */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.disclaimer-overlay.show {
  opacity: 1;
  visibility: visible;
}

.disclaimer-popup {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.disclaimer-overlay.show .disclaimer-popup {
  transform: scale(1);
}

.disclaimer-popup h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ffcc00;
}

.disclaimer-popup p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.disclaimer-close-button {
  background: #ff4d00;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease-in-out;
}

.disclaimer-close-button:hover {
  background: #cc0000;
}

/* Custom Message Box Styles */
.message-box-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001; /* Higher than disclaimer */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.message-box-overlay.show {
  opacity: 1;
  visibility: visible;
}

.message-box-content {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.message-box-overlay.show .message-box-content {
  transform: scale(1);
}

.message-box-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ffcc00;
}

.message-box-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.message-box-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.message-box-button {
  background: #ff4d00;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease-in-out;
}

.message-box-button:hover {
  background-color: #cc0000;
}

.message-box-content input {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #555;
  background-color: #333;
  color: #eee;
  font-size: 1rem;
}

/* Live Chat Stream Section */
.chat-stream-section {
  background: #0f0f0f;
  color: white;
  padding: 2rem;
  border-top: 1px solid #333;
  margin-top: 4rem; /* Space from previous section */
  border-radius: 0.75rem; /* Rounded corners */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Shadow for depth */
}

.chat-stream-section h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #ffcc00; /* Yellowish color for heading */
  text-shadow: 0 0 10px rgba(255, 100, 0, 0.5); /* Text glow */
}

.chat-stream-box {
  background: #1a1a1a;
  border-radius: 0.75rem;
  padding: 1rem;
  max-height: 20rem; /* Fixed height for scrollable chat */
  overflow-y: auto;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3); /* Inner shadow for depth */
  border: 1px solid #444;
}

.chat-message {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.chat-message:last-child {
  margin-bottom: 0;
}

.chat-message .username {
  font-weight: bold;
  margin-right: 0.5rem;
}

.chat-message .RYD-Agent {
  color: #81e6d9; /* Tailwind teal-300 */
}

.chat-message .user {
  color: #cbd5e0; /* Tailwind slate-300 */
}

/* Chat input and button styling */
.chat-input-area {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chat-input-area input {
  flex-grow: 1;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #555;
  background-color: #333;
  color: #eee;
  font-size: 1rem;
}

.chat-input-area button {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  background-color: #ff4d00;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease-in-out;
}

.chat-input-area button:hover {
  background-color: #cc0000;
}

/* Tool Blocks Section */
.tool-blocks-section {
  background: #1a1a1a; /* This specific section background */
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  margin-top: 4rem; /* Space from previous section */
}

.tool-blocks-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #ffcc00;
  text-shadow: 0 0 10px rgba(255, 100, 0, 0.5);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.tool-block {
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 100, 0, 0.3); /* Orange border for the tools */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tool-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.tool-block h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #ff8c00; /* Darker orange for tool titles */
  margin-bottom: 0.75rem;
}

.tool-block p {
  font-size: 0.95rem;
  color: #d1d5db; /* text-gray-300 */
  margin-bottom: 1rem;
  flex-grow: 1; /* Allows paragraphs to take available space */
}

.tool-block .cta-button {
  margin-top: auto; /* Pushes button to the bottom */
  width: auto;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

/* Contact Form Specific Styles - Now for the popup content */
.contact-form-popup {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    text-align: left; /* Align form labels and inputs to the left */
    border: 1px solid rgba(255, 100, 0, 0.3);
    position: relative; /* For close button positioning */
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}
.contact-overlay.show .contact-form-popup {
  transform: scale(1);
}

.contact-form-popup h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #ffcc00;
    text-shadow: 0 0 10px rgba(255, 100, 0, 0.5);
    text-align: center; /* Center the section heading */
}

.contact-form-popup form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between form groups */
}

.contact-form-popup label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff8c00;
    display: flex;
    flex-direction: column;
}

.contact-form-popup input[type="email"],
.contact-form-popup textarea {
    background-color: #333;
    border: 1px solid #555;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #eee;
    margin-top: 0.5rem; /* Space between label text and input field */
    width: 100%; /* Full width within its container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.contact-form-popup textarea {
    min-height: 120px; /* Make textarea taller */
    resize: vertical; /* Allow vertical resizing */
}

.contact-form-popup input[type="email"]:focus,
.contact-form-popup textarea:focus {
    outline: none;
    border-color: #ff4d00;
    box-shadow: 0 0 0 2px rgba(255, 77, 0, 0.5);
}

.contact-form-popup button[type="submit"] {
    align-self: center; /* Center the submit button */
    width: 80%;
    max-width: 250px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1.5rem; /* Space above the button */
    /* Inherits button-base styles for fiery look */
}
.contact-close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #f0f0f0;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.contact-close-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Contact Overlay */
.contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Darker overlay for better contrast */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1002; /* Higher than disclaimer */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.contact-overlay.show {
  opacity: 1;
  visibility: visible;
}


/* Footer specific styles */
.footer-section {
  background: #0a0a0a; /* Very dark background */
  color: #bbb;
  padding: 2rem 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid #222;
  /* Removed margin-top: 4rem; to rely on mt-auto in HTML */
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffcc00;
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 1rem;
}

.footer-section .patreon-button {
  display: inline-block;
  background-color: #FF424D; /* Patreon red */
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1rem;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease;
}

.footer-section .patreon-button:hover {
  background-color: #e63c45;
  transform: translateY(-2px);
}

.footer-links a {
  color: #ff7e00; /* Orange for links */
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
  color: #ffae42;
  text-decoration: underline;
}

.recaptcha-text {
  font-size: 0.75rem;
  color: #888;
  margin-top: 1.5rem;
}

.recaptcha-text a {
  color: #999;
  text-decoration: underline;
}
/* Styles for checkbox */
.disclaimer-checkbox-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem; /* Space below checkbox before button */
}

.disclaimer-checkbox-group input[type="checkbox"] {
  width: auto; /* Override 100% width for inputs */
  margin: 0; /* Remove default margins */
  transform: scale(1.2); /* Make checkbox slightly larger */
}

.disclaimer-checkbox-group label {
  font-size: 1.1rem;
  color: #f0f0f0;
  cursor: pointer;
}

/* Styles moved from login.html and register.html */

/* Login/Register Container Common Styles */
body.popup-body { /* Apply to body of popup windows */
  padding: 0; /* Remove padding from body of popup to center content */
}
.login-container, .register-container {
    background: #1a1a1a;
    padding: 2.5em;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px; /* Default max-width for login */
    text-align: center;
    border: 1px solid rgba(255, 100, 0, 0.3);
    position: relative; /* For close button */
}

.register-container {
    max-width: 500px; /* Slightly wider for register form */
}


.login-container h2, .register-container h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2em;
    color: #ff2e2e; /* Changed to match landing page primary color */
    margin-bottom: 1em;
    text-shadow: 0 0 10px rgba(255, 100, 0, 0.5);
}

.form-group {
    margin-bottom: 1.5em;
    text-align: left;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #555;
    border-radius: 8px;
    background-color: #333;
    color: #eee;
    font-size: 1em;
    box-sizing: border-box; /* Crucial for padding/border not to add to width */
}

.form-group input:focus {
    outline: none;
    border-color: #ff4d00;
    box-shadow: 0 0 0 2px rgba(255, 77, 0, 0.5);
}

.login-button, .register-button, .social-login-button, .social-register-button {
    display: block;
    width: 100%;
    padding: 0.9em;
    margin-top: 1.5em;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    color: white;
    border: none;
}

.login-button, .register-button {
    background: radial-gradient(circle at top left, #ff4d00, #ff0000, #cc0000);
    background-size: 300% 300%;
    animation: flame-flicker 1.5s infinite alternate, glow-pulse 3s infinite ease-in-out;
    box-shadow: 0 0 15px rgba(255, 100, 0, 0.75);
    border: 2px solid #ff6a00;
}

.login-button:hover, .register-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 150, 0, 1);
}

.social-login-button, .social-register-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    background-color: #4285F4; /* Google Blue */
    margin-top: 1em;
    padding: 0.9em;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.social-login-button.google, .social-register-button.google {
    background-color: #4285F4;
}
.social-login-button.google:hover, .social-register-button.google:hover {
    background-color: #357ae8;
}

/* Specific social button styles (if needed) */
/* .social-login-button.facebook { background-color: #1877F2; } */
/* .social-login-button.facebook:hover { background-color: #166fe5; } */

.social-login-button img, .social-register-button img {
    width: 1.5em;
    height: 1.5em;
}

.forgot-password, .register-link, .login-link {
    display: block;
    margin-top: 1.2em;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95em;
}

.forgot-password:hover, .register-link:hover, .login-link:hover {
    color: #ccc;
    text-decoration: underline;
}

/* Custom Alert Box Styles (Shared) */
.alert-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 50, 50, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    font-size: 1.1em;
}

.alert-box.hidden {
    opacity: 0;
    pointer-events: none; /* Prevent interaction when hidden */
}

/* Close Window Button Style (New) */
.close-window-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2em; /* Larger X */
  color: #bbb;
  cursor: pointer;
  line-height: 1;
  padding: 0; /* Remove default button padding */
  width: 30px; /* Make it a square target */
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.close-window-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #eee;
}

/* Responsive adjustments for login/register popups */
@media (max-width: 600px) {
    .login-container, .register-container {
        margin: 1em;
        padding: 1.5em;
    }
    .login-container h2, .register-container h2 {
        font-size: 1.8em;
    }
    .login-button, .register-button, .social-login-button, .social-register-button {
        font-size: 1em;
        padding: 0.8em;
    }
}

/* Styles for the Login/User Icon */
#loginUserIcon {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #ff2e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 100;
  flex-direction: column;
  text-decoration: none;
}

body > main {
  margin-left: 180px; /* Adjust for the fixed toolbar width */
}

#loginUserIcon:hover {
  background-color: #ff1a1a;
  transform: scale(1.05);
}

#loginUserIcon.logged-in {
  background-color: #4CAF50;
  font-size: 0.8rem;
  padding: 5px;
  width: auto;
  height: auto;
  border-radius: 8px;
}

#loginUserIcon .icon {
  display: block;
}

#loginUserIcon .user-name {
  font-size: 0.7rem;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

@media (max-width: 640px) {
  #loginUserIcon {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  #loginUserIcon.logged-in {
    padding: 3px 8px;
    min-width: 60px;
    font-size: 0.7rem;
  }
  #loginUserIcon .user-name {
    font-size: 0.6rem;
    max-width: 50px;
  }
}
  .purpose {
    font-size: 1.4rem;
    color: #e63c45;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  }
.top-right-login-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #ff2e2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 100;
  flex-direction: column;
  text-decoration: none;
}

.top-right-login-button:hover {
  background-color: #ff1a1a;
  transform: scale(1.05);
}

.top-right-login-button.logged-in {
  background-color: #4CAF50;
  font-size: 0.8rem;
  padding: 5px;
  width: auto;
  height: auto;
  border-radius: 8px;
}

.top-right-login-button .icon {
  display: block;
}

.top-right-login-button .user-name {
  font-size: 0.7rem;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

@media (max-width: 640px) {
  .top-right-login-button {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  .top-right-login-button.logged-in {
    padding: 3px 8px;
    min-width: 60px;
    font-size: 0.7rem;
  }
  .top-right-login-button .user-name {
    font-size: 0.6rem;
    max-width: 50px;
  }
}
