/* style.css */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap');

/* Base styles */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Nunito', sans-serif;
  background-color: #fdf8f3; /* Light beige */
  color: #111;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto; /* content grows to fill space */
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

.header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 8px 12px;
}

.header a:hover {
  color: #0ea5e9;
}

/* Navbar */
.navbar {
  background-color: #FAEDD4;
  border-bottom: 1px solid #fdf8f3;
}

/*
.navbar {
  background-color: #FAE5BC;
  border-bottom: 1px solid #fdf8f3;
  position: sticky;
  top: 0;
  z-index: 1000;
}*/

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

/*
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}*/

/* Logo styling */
.navbar .logo {
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;          /* align items horizontally */
  align-items: center;    /* vertically center text with image */
  gap: 10px;              /* spacing between logo image and text */
}


.logo img {
  height: 60px;
  width: 60px;
  margin-right: 10px;
  vertical-align: middle;
}

/*
.navbar .logo img {
  width: 60px;
  height: 60px;
  object-fit: contain; /* ensures logo scales correctly //
  display: block;
}*/

/* Menu styling */

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  z-index: 50;
}

.menu li a {
  text-decoration: none;
  color: #2D2D2D;
  font-weight: 600;
}

/* Hamburger button */
.hamburger {
  display: none; /* Hidden on desktop */
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

/*
.navbar .menu {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.navbar .menu li a {
  text-decoration: none;
  color: #2D2D2D;
  font-weight: 600;
}*/

.navbar .menu li a:hover {
  color: #205843; /* subtle highlight on hover */
}

/* Cover Section */
.cover {
  position: relative;
  background-image: url('https://goyaqeen.com/wp-content/uploads/2025/01/Yaqeen_Image1.jpg'); /* Replace with actual image per page */
  background-size: cover;
  background-position: center;
  color: white;
  text-align: left;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.cover h1 {
  position: relative;
  font-size: 48px;
  margin: 0;
  z-index: 1;
}

/* Footer */
.footer {
  flex-shrink: 0; /* do not shrink */
  background-color: #C19A6B; 
  color: #2D2D2D; 
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 20px; 
}

.footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer .footer-links li a {
  color: #2D2D2D;
  text-decoration: none;
  transition: color 0.2s;
}

.footer .footer-links li a:hover {
  color: #205843; /* subtle highlight on hover */
}

/* Forms and Buttons */
.form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  align-items: end;
  max-width: 1080px;
  margin-bottom: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 14px;
  color: #444;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #0ea5e9;
  color: white;
}

.btn-primary:hover {
  background: #0284c7;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111;
}

.btn-secondary:hover {
  background: #d1d5db;
}

/* Meta message */
.meta {
  margin: 16px 0;
  color: #555;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

th {
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Image display (e.g. product image) */
.img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #f3f4f6;
}

/* Scrollable result list */
.results {
  overflow: auto;
  border: 1px solid #eee;
  border-radius: 10px;
}

/* Table rows and messages */
.row {
  background: #fff;
}

.empty {
  padding: 16px;
  color: #777;
  font-style: italic;
  text-align: center;
}

.grid-row {
  display: contents; /* Keep sticky header behavior */
}

@media (max-width: 768px) {
	.container {
	  padding: 20px;
	}
	.cover {
	  min-height: 120px;
	}
	.cover h1 {
	  font-size: 32px;
	}
	.navbar-inner {
	  padding: 5px 20px;
	}

  .menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #FAE5BC;
    position: absolute;
    top: 75px; /* height of navbar */
    left: 0;    /* full width from left */
    width: 100%; /* full width */
    border-top: 1px solid #ccc;
  }

  .menu li {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
  }

  .menu li a {
    display: block;
    width: 100%;
  }

  .hamburger {
    display: block;
  }

  .menu.active {
    display: flex;
  }

}