@charset "utf-8";

/* === Base === */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === Header === */
header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

/* Logo */
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4d774e;
  flex-shrink: 0;
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #4d774e;
  cursor: pointer;
  flex-shrink: 0;
}

/* Navbar */
.navbar {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  flex-grow: 1;
}

.navbar a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #4d774e;
}

/* === Hero Section === */
.hero {
  height: 82vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.homeslide1 { background: url('/images/homeslide1.jpg') no-repeat center center/cover; }
.homeslide2 { background: url('/images/homeslide2.jpg') no-repeat center center/cover; }
.homeslide3 { background: url('/images/homeslide3.jpg') no-repeat center center/cover; }
.homeslide4 { background: url('/images/homeslide4.jpg') no-repeat center center/cover; }
.homeslide5 { background: url('/images/homeslide5.jpg') no-repeat center center/cover; }
.homeslide6 { background: url('/images/homeslide6.jpg') no-repeat center center/cover; }

.hero-caption {
  font-size: 2rem;
  color: #000000;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px 40px;
  transition: opacity 0.5s ease;
  font-weight: bold;
}

/* === Call to Action Bar === */
.cta-bar {
  background: #4d774e;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 1.4rem;
  font-weight: bold;
}

.cta-bar button {
  background: #fff;
  color: #4d774e;
  border: 2px solid #fff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.cta-bar button:hover {
  background: #4d774e;
  color: #fff;
}

/* === Features Section === */
.features {
  background: #f0f0f0;
  display: flex;
  justify-content: space-around;
  gap: 20px;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.feature {
  background: #ffffff;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.feature h3 {
  color: #4d774e;
  margin-bottom: 10px;
}

/* === About Section === */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: #eaeaea;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.about > * {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  width: 100%;
}

/* === Services Section === */
.services-bar {
  background: #f7f7f7;
  padding: 60px 20px;
}

.services-bar h2 {
  text-align: center;
  color: #4d774e;
  margin-bottom: 30px;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.service-item {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.service-item i {
  font-size: 2rem;
  color: #4d774e;
  margin: 20px 0px 0px;
}

/* === Forms === */
.container {
  max-width: 600px;
  margin: 60px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
input[type="time"],
textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fdfdfd;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

button {
  background: #4d774e;
  color: #fff;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
form button {margin: 20px 0px 10px;}

button:hover {
  background: #3c5d3b;
}

/* === Improved Slider Styles === */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  margin-top: 6px;
  margin-bottom: 6px;
  cursor: pointer;
}

/* Track styling */
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: #ccc;
  border-radius: 4px;
}
input[type="range"]::-moz-range-track {
  height: 8px;
  background: #ccc;
  border-radius: 4px;
}
input[type="range"]::-ms-track {
  height: 8px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}

/* Thumb styling for desktop & mobile */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #4d774e;
  border: 2px solid #3c5d3b;
  margin-top: -10px; /* center thumb vertically */
  transition: background 0.3s ease;
}
input[type="range"]::-moz-range-thumb {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #4d774e;
  border: 2px solid #3c5d3b;
  cursor: pointer;
}
input[type="range"]::-ms-thumb {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #4d774e;
  border: 2px solid #3c5d3b;
}

/* Hover effect */
input[type="range"]:hover::-webkit-slider-thumb {
  background: #3c5d3b;
}
input[type="range"]:hover::-moz-range-thumb {
  background: #3c5d3b;
}
input[type="range"]:hover::-ms-thumb {
  background: #3c5d3b;
}

.hunger-slider {
  width: 100%;
  margin-bottom: 5px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0 2px;
  margin-bottom: 10px;
}

.slider-labels span {
  flex: 1;
  text-align: center;
  color: #666;
}


/* === Footer === */
footer {
  text-align: center;
  padding: 20px;
  background: #eeeeee;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 12px;
}

.sidebar ul li a {
  display: block;
  padding: 14px 18px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background-color: #4d774e;
  border-radius: 8px;
  text-align: left;
  transition: background 0.3s, transform 0.2s;
}

.sidebar ul li a i {
  margin-right: 10px;
  color: #fff;
}

.sidebar ul li a:hover {
  background-color: #3a5f3c;
  transform: translateY(-1px);
}

.add-entry-button {
  display: inline-block;
  padding: 20px 40px;
  font-size: 1.4rem;
  font-weight: bold;
  background-color: #4d774e;
  color: #fff;
  border: none;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.add-entry-button:hover {
  background-color: #3c5d3b;
  transform: translateY(-2px);
}

.section-divider {
  height: 40px;
  width: 100%;
  background-color: #eaeaea;
  margin: 0;
  padding: 0;
}

.flash-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-weight: 500;
}

.flash-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-weight: 500;
}


.user-bar {
  background-color: #222; /* dark background */
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 20px;
  text-align: right;
}

.user-bar a {
  color: #ddd;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.user-bar a:hover {
  color: #fff;
}

.user-bar a.logout {
  color: #ff6b6b;
}

.user-bar a.logout:hover {
  color: #ff4c4c;
}


a.cplink {color: #4d774e;}
a.cplink:hover {color: #3c5d3b;}


.mobileshow {display: none;}
.mobilehide {display: block;}

/* === Mobile Styles === */
@media (max-width: 768px) {
	
	.mobileshow {display: block;}
	.mobilehide {display: none;}
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: #ffffff;
    padding: 0;
    margin: 0;
    order: 1;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    padding: 12px;
    width: 100%;
    text-align: center;
    border-top: 1px solid #eee;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .features,
  .services-list {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: 90%;
  }

  .about {
    flex-direction: column;
    padding: 40px 20px;
  }

  header {
    position: static;
  }
  .service-item i {
	margin: 20px auto 0px;  
  }
}
