/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* General Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh; /* Ensure full viewport height */
  display: flex;
  flex-direction: column;
  box-sizing: border-box; /* Ensure consistent box model */
  padding-top: 60px; /* Matches the height of the fixed header */
  padding-bottom: 60px; /* Matches the height of the fixed footer */
}

/* Light Theme */
:root {
  --background-color: #ffffff;
  --text-color: #000000;
  --header-footer-bg-color: #f0f0f0; /* Light gray for header/footer */
  --button-bg-color: #f4f4f4;
  --button-text-color: #000000;
  --button-border-color: #cccccc;
  --primary-button-bg-color: #007bff;
  --primary-button-text-color: #ffffff;
  --primary-button-hover-bg-color: #0056b3;
  --success-color: #28a745;
  --error-color: #dc3545;
}

/* Dark Theme */
body.dark {
  --background-color: #121212;
  --text-color: #ffffff;
  --header-footer-bg-color: #1a1a1a; /* Dark gray for header/footer */
  --button-bg-color: #333333;
  --button-text-color: #ffffff;
  --button-border-color: #555555;
  --primary-button-bg-color: #007bff;
  --primary-button-text-color: #ffffff;
  --primary-button-hover-bg-color: #0056b3;
  --success-color: #28a745;
  --error-color: #dc3545;
}

body.light,
body.dark {
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--header-footer-bg-color); /* Dynamic theme color */
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px; /* Ensure consistent padding within the screen */
  box-sizing: border-box;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Footer Styles */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--header-footer-bg-color); /* Dynamic theme color */
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px; /* Ensure consistent padding within the screen */
  box-sizing: border-box;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Header and Footer Content */
.header-left,
.footer-left {
  display: flex;
  align-items: center;
}

.header-right,
.footer-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.title {
  font-size: 1.5rem; /* Increased font size for a prominent logo */
  font-weight: bold;
  margin-left: 8px; /* Spacing between icon and text */
  white-space: nowrap; /* Prevent text wrapping */
  overflow: hidden; /* Ensure text stays within bounds */
  text-overflow: ellipsis; /* Show ellipsis if the text is too long */
}

/* Updated Logo Styling */
.header-left .material-icons {
  font-size: 32px; /* Increase icon size */
  color: #4285F4; /* Google blue color */
}

.header-left .title {
	color: #4285F4;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

/* Fallback for browsers that don't support gradient text */
@supports not (-webkit-background-clip: text) {
  .header-left .title {
    color: #DB4437; /* Fallback to Google red color */
  }
}

/* Footer Links */
.footer-right a {
  color: inherit; /* Use the same color as the surrounding text */
  text-decoration: none; /* Remove underline */
  font-size: inherit; /* Match the text size of the surrounding content */
  font-weight: normal; /* Ensure consistent weight */
  transition: color 0.3s ease; /* Smooth hover transition */
}

.footer-right a:hover {
  text-decoration: none; /* Keep no underline */
  color: #007bff; /* Subtle hover color change */
}

/* Main Content */
.content {
  flex: 1; /* Allow content to fill remaining vertical space */
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Prevent Text Overflow for Header/Footer Links */
.footer-right a,
.header-right .icon-btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Icon Button Styling */
.icon-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: inherit;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  transition: color 0.3s, transform 0.3s;
  text-decoration: none; /* For <a> links */
}

.icon-btn:hover {
  color: #007bff;
  transform: scale(1.1);
}

.material-icons {
  font-family: 'Material Icons';
  font-size: inherit;
  color: inherit;
}

/* General Buttons */
.btn {
  padding: 10px 15px;
  font-size: 14px;
  border: 1px solid var(--button-border-color);
  border-radius: 4px;
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background-color: #e0e0e0;
}

.btn.primary {
  background-color: var(--primary-button-bg-color);
  color: var(--primary-button-text-color);
}

.btn.primary:hover {
  background-color: var(--primary-button-hover-bg-color);
}

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000; /* Ensure it appears above other elements */
}

.cookie-popup-content {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
}

.cookie-popup-content h2 {
  margin-bottom: 15px;
  font-size: 20px;
  color: var(--text-color);
}

.cookie-category {
  margin-bottom: 10px;
}

.cookie-category label {
  font-weight: bold;
  color: var(--text-color);
}

.cookie-category p {
  margin: 5px 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* Styling for the Container on Content Pages */
.container {
  width: 100%;
  max-width: 1200px; /* Increased max-width for larger screens */
  margin: 0 auto; /* Center the container */
  padding: 20px; /* Add padding for spacing */
  background-color: var(--background-color); /* Adapt to theme */
  color: var(--text-color); /* Adapt text color to theme */
  border-radius: 8px; /* Rounded corners for a modern look */
  box-sizing: border-box; /* Ensure consistent sizing */
  line-height: 1.6; /* Improve readability */
}

/* Responsive Container Adjustments */
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
}

@media (max-width: 1000px) {
  .container {
    max-width: 800px;
  }
}

@media (max-width: 800px) {
  .container {
    max-width: 100%;
    padding: 15px;
  }
}

/* Heading Styling */
.container h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.container h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-color); /* Matches theme */
}

/* Paragraphs and Links */
.container p {
  margin-bottom: 15px;
  font-size: 1.1rem; /* Slightly increase font size for better readability */
}

.container a {
  color: #007bff; /* Highlight links with blue color */
  text-decoration: none;
}

.container a:hover {
  text-decoration: underline;
}

/* Lists */
.container ul {
  margin-left: 20px; /* Indent lists */
  list-style: disc;
}

.container ul li {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
  .header-right,
  .footer-right {
    gap: 8px; /* Reduce gap between items */
  }

  .header-right .icon-btn,
  .footer-right .icon-btn {
    font-size: 20px; /* Reduce icon size */
    padding: 5px; /* Reduce padding */
  }

  .title {
    font-size: 1rem; /* Reduce title font size */
  }

  .header-left .title,
  .footer-left .title {
    font-size: 1rem; /* Reduce title font size in header and footer */
  }

  .footer-right a {
    font-size: 0.9rem; /* Reduce font size of footer links */
  }

  header,
  footer {
    padding: 0 10px; /* Reduce padding */
  }

  .container h1 {
    font-size: 2rem;
  }

  .container h2 {
    font-size: 1.5rem;
  }

  .container p {
    font-size: 1rem;
  }
}

/* Contact Form Styling */
/* Contact Page */
.contact-page {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  line-height: 1.6;
}

.contact-page h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.contact-page p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
  color: var(--text-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  border: 1px solid var(--button-border-color);
  border-radius: 5px;
  padding: 12px;
  font-size: 1rem;
  color: var(--text-color);
  background-color: var(--button-bg-color);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-button-bg-color);
  outline: none;
}

.success-message {
  color: var(--success-color);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

.error-message {
  color: var(--error-color);
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Button Styling */
.contact-form button {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: bold;
  color: var(--primary-button-text-color);
  background-color: var(--primary-button-bg-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.contact-form button:hover {
  background-color: var(--primary-button-hover-bg-color);
  transform: scale(1.05);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom right, #4285F4, #34A853);
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.hero-section .btn.primary {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #34A853;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.hero-section .btn.primary:hover {
    background-color: #28a745;
    transform: scale(1.05);
}

/* Features Section */
.features-section {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--background-color);
    color: var(--text-color);
}

.features-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.feature {
    flex: 1 1 calc(33.333% - 40px);
    max-width: 300px;
    text-align: center;
    background-color: var(--header-footer-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 3rem;
    color: #4285F4;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature p {
    font-size: 1rem;
    color: var(--text-color);
}

/* Call-to-Action Section */
.call-to-action {
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    background: linear-gradient(to bottom right, #F4B400, #DB4437);
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.call-to-action h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.call-to-action .btn.primary {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #DB4437;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.call-to-action .btn.primary:hover {
    background-color: #c23321;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .features {
        flex-direction: column;
        gap: 20px;
    }

    .feature {
        max-width: 100%;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p,
    .call-to-action h2 {
        font-size: 1.2rem;
    }
}

/* About Page */
.about-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to right, #4285F4, #34A853);
    color: #ffffff;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.5rem;
    color: #f0f0f0;
}

/* Mission, Vision, and Values Section */
.mission-vision-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.mission-vision-values .section {
    background-color: var(--header-footer-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.mission-vision-values .section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.mission-vision-values h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.mission-vision-values p,
.mission-vision-values ul {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
}

.mission-vision-values ul {
    list-style: disc;
    margin-top: 10px;
    padding-left: 20px;
}

.mission-vision-values li {
    margin-bottom: 10px;
}

/* Call-to-Action Section */
.call-to-action {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom right, #F4B400, #DB4437);
    color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.call-to-action h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.call-to-action p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.call-to-action .btn.primary {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #DB4437;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.call-to-action .btn.primary:hover {
    background-color: #c23321;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p,
    .call-to-action p {
        font-size: 1.2rem;
    }

    .call-to-action h2 {
        font-size: 1.8rem;
    }

    .mission-vision-values {
        grid-template-columns: 1fr;
    }
}
/* Authentication Form Styling */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: var(--text-color);
}

.auth-form input,
.auth-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--button-border-color);
    border-radius: 4px;
    background-color: var(--button-bg-color);
    color: var(--text-color);
    box-sizing: border-box;
}

.auth-form input:focus,
.auth-form select:focus {
    border-color: var(--primary-button-bg-color);
    outline: none;
}

.auth-form .error-message,
.auth-form .success-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.auth-form .error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
}

.auth-form .success-message {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.auth-form button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.auth-form img {
    display: block;
    margin: 10px auto;
}

.watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  font-weight: bold;
  color: rgba(0,0,0,0.1);
  pointer-events: none;
  user-select: none;
  z-index: 9999;
}

/* -------------------------------------
   SETTINGS PAGE CUSTOM STYLES ADDED
-------------------------------------- */
/* Place any additional styles specifically for the revised settings layout */

.settings-page {
  /* This can override the narrow .auth-form max-width to allow two columns */
  max-width: 1000px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; 
  gap: 30px;
  margin-bottom: 30px;
}

.settings-column {
  background-color: var(--header-footer-bg-color);
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.settings-column h3 {
  margin-top: 0;
}

.turnstile-wrapper {
  margin: 20px 0;
}

.calendar-integrations-list ul {
  list-style: none;
  padding-left: 0;
}

.calendar-integrations-list ul li {
  margin-bottom: 10px;
}

.add-calendar-form {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.add-calendar-form select {
  width: auto;
  min-width: 150px;
}

@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr; /* Single column on smaller screens */
  }

  .settings-column {
    margin-bottom: 20px;
  }
}
