/* Modern CSS Design for Mbalame Birds Sanctuary */
/* Designed for bird-watching (twitchers) website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&family=Open+Sans:wght@300;400;600;700&display=swap');

/* ========== ROOT VARIABLES ========== */
:root {
  /* Color Palette - Nature Inspired */
  --primary-green: #2c5530;
  --secondary-green: #4a7c59;
  --accent-blue: #4682b4;
  --light-green: #e8f5e8;
  --warm-beige: #f7f5f1;
  --earth-brown: #8b4513;
  --text-dark: #2d3748;
  --text-medium: #4a5568;
  --text-light: #718096;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --border-light: #e2e8f0;
  --hover-bg: rgba(70, 130, 180, 0.1);
}

/* ========== GLOBAL RESET AND BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--warm-beige);
  font-size: 1rem;
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--primary-green);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25em;
}

h2 {
  font-size: 2rem;
  color: var(--secondary-green);
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5em;
}

h4 {
  font-size: 1.25rem;
  margin: 0.5em 0;
}

p {
  margin-bottom: 1em;
  color: var(--text-medium);
}

em {
  color: var(--text-light);
  font-style: italic;
}

/* ========== LINKS ========== */
a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

a:link {
  text-decoration: none;
}

a:visited {
  color: var(--secondary-green);
  text-decoration: none;
}

a:hover {
  color: var(--primary-green);
  background-color: var(--hover-bg);
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  transform: translateY(-1px);
}

a:active {
  color: var(--earth-brown);
  background-color: var(--light-green);
  transform: translateY(0);
}

/* ========== MAIN CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--white);
  box-shadow: 0 0 20px var(--shadow-light);
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  min-height: calc(100vh - 40px);
  width: calc(100% - 40px);
}

/* ========== HEADER SECTION ========== */
.header {
  background: linear-gradient(135deg, var(--light-green) 0%, var(--warm-beige) 100%);
  padding: 30px 20px;
  border-radius: 8px 8px 0 0;
  margin-bottom: 20px;
  border: none;
  box-shadow: 0 2px 4px var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateX(-100px) translateY(-100px); }
  100% { transform: translateX(100px) translateY(100px); }
}

.header table {
  width: 100%;
  border-collapse: collapse;
}

.header h1 {
  color: var(--primary-green);
  text-shadow: 2px 2px 4px var(--shadow-light);
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.header h4 {
  color: var(--text-medium);
  font-weight: 400;
  margin-top: 0;
}

/* Search Form Styling */
.header form {
  margin-top: 20px;
}

.header input[type="text"] {
  border: 2px solid var(--border-light);
  border-radius: 6px 0 0 6px;
  padding: 12px 15px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.3s ease;
  background-color: var(--white);
  max-width: 250px;
}

.header input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.header input[type="submit"] {
  background-color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
  border-radius: 0 6px 6px 0;
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: var(--white);
  font-weight: 600;
}

.header input[type="submit"]:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
}

/* ========== NAVIGATION LINKS ========== */
.links {
  background-color: var(--primary-green);
  border-radius: 6px;
  padding: 0;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px var(--shadow-medium);
  overflow: hidden;
}

.links table {
  width: 100%;
  border-collapse: collapse;
}

.links td {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.links td:last-child {
  border-right: none;
}

.tabs {
  padding: 0;
  margin: 0;
}

.tabs a {
  display: block;
  padding: 15px 10px;
  color: var(--white);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  background-color: transparent;
  font-size: 0.9rem;
}

.tabs a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  transform: none;
  padding: 15px 10px;
}

.tabs a:active {
  background-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.tabs h4 {
  margin: 0;
  font-size: 1rem;
  color: inherit;
  font-weight: inherit;
}

/* ========== SIDEBAR NAVIGATION ========== */
.navigation {
  width: 100%;
  background-color: var(--light-green);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 4px var(--shadow-light);
}

.navigation h4 {
  color: var(--primary-green);
  border-bottom: 2px solid var(--primary-green);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.navigation .tabs a {
  display: block;
  padding: 12px 15px;
  margin-bottom: 8px;
  background-color: var(--white);
  color: var(--text-dark);
  border-radius: 4px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.navigation .tabs a:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: translateX(5px);
  padding: 12px 15px;
}

.navigation .tabs h4 {
  margin: 0;
  font-size: 0.95rem;
  border: none;
  padding: 0;
}

/* ========== CONTENT AREA ========== */
.content {
  padding: 20px;
  background-color: var(--white);
  border-radius: 6px;
  min-height: 500px;
}

/* ========== FORMS STYLING ========== */
.title {
  text-align: center;
  margin: 30px 0 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, var(--light-green), var(--warm-beige));
  border-radius: 6px;
  box-shadow: 0 2px 4px var(--shadow-light);
}

.title h2 {
  color: var(--primary-green);
  margin: 0;
  font-size: 1.8rem;
}

.register {
  background-color: var(--white);
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 4px 6px var(--shadow-light);
  border: 1px solid var(--border-light);
  margin: 20px 0;
  width: 100%;
  overflow-x: auto;
}

.register table {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}

.register td {
  padding: 12px 15px;
  vertical-align: middle;
}

.register td:first-child {
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  width: 30%;
  padding-right: 20px;
}

.register input[type="text"],
.register input[type="password"],
.register input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background-color: var(--white);
  max-width: 100%;
}

.register input[type="text"]:focus,
.register input[type="password"]:focus,
.register input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.register input[type="submit"],
.register input[type="reset"] {
  padding: 12px 25px;
  margin: 5px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.register input[type="submit"] {
  background-color: var(--primary-green);
  color: var(--white);
}

.register input[type="submit"]:hover {
  background-color: var(--secondary-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-medium);
}

.register input[type="reset"] {
  background-color: var(--text-light);
  color: var(--white);
}

.register input[type="reset"]:hover {
  background-color: var(--text-medium);
  transform: translateY(-2px);
}

/* ========== BIRD IMAGE GALLERY OPTIMIZATION ========== */
.image,
img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 15px;
}

.image:hover,
img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px var(--shadow-medium);
}

/* Gallery Grid Layout */
.bird-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
  width: 100%;
}

.bird-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid var(--light-green);
  transition: all 0.3s ease;
}

.bird-gallery img:hover {
  border-color: var(--accent-blue);
  transform: translateY(-5px);
}

/* Specific styling for Penguins.jpg */
img[src*="Penguins.jpg"] {
  border: 4px solid var(--primary-green);
  border-radius: 12px;
  box-shadow: 0 6px 12px var(--shadow-medium);
}

/* Featured bird image in header */
.container > div:first-child img {
  max-width: 150px;
  float: right;
  margin: 10px 0 10px 15px;
  border: 3px solid var(--secondary-green);
  border-radius: 12px;
}

/* ========== LISTS STYLING ========== */
ul {
  margin: 1em 0;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
  color: var(--text-medium);
}

li strong {
  color: var(--primary-green);
}

/* ========== RESPONSIVE DESIGN ========== */
/* Large desktops */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    width: calc(100% - 40px);
  }
  
  .navigation {
    width: 250px;
    float: left;
    margin-right: 20px;
  }
  
  .content {
    margin-left: 290px;
  }
  
  .links td {
    padding: 15px 20px;
  }
  
  .tabs a {
    padding: 15px 20px;
    font-size: 1rem;
  }
}

/* Desktops and laptops */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
    width: calc(100% - 30px);
    padding: 15px;
  }
  
  .navigation {
    width: 220px;
    float: left;
    margin-right: 15px;
  }
  
  .content {
    margin-left: 250px;
  }
  
  .header h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .links td {
    padding: 12px 15px;
  }
  
  .tabs a {
    font-size: 0.95rem;
  }
}

/* Tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 750px;
    width: calc(100% - 20px);
    padding: 15px;
    margin: 10px;
  }
  
  .navigation {
    width: 200px;
    float: left;
    margin-right: 15px;
  }
  
  .content {
    margin-left: 230px;
  }
  
  .header h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  .links td {
    padding: 12px 10px;
  }
  
  .tabs a {
    font-size: 0.9rem;
  }
  
  .bird-gallery {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
  }
  
  .bird-gallery img {
    height: 130px;
  }
}

/* Tablets (portrait) and larger phones */
@media (min-width: 576px) and (max-width: 767px) {
  .container {
    width: calc(100% - 20px);
    padding: 12px;
    margin: 10px;
    border-radius: 6px;
  }
  
  .navigation {
    width: 100%;
    float: none;
    margin-right: 0;
    margin-bottom: 20px;
  }
  
  .content {
    margin-left: 0;
    padding: 15px;
  }
  
  .header {
    padding: 20px 15px;
    border-radius: 6px;
  }
  
  .header h1 {
    font-size: 1.6rem;
    text-align: center;
  }
  
  .header h4 {
    text-align: center;
  }
  
  .header table {
    display: block;
  }
  
  .header tr {
    display: block;
  }
  
  .header td {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
  
  .header form {
    margin: 15px auto;
    max-width: 300px;
  }
  
  .header input[type="text"] {
    max-width: 100%;
  }
  
  .links table {
    display: block;
  }
  
  .links tr {
    display: flex;
    flex-wrap: wrap;
  }
  
  .links td {
    display: block;
    flex: 1 1 auto;
    min-width: 33.33%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
  }
  
  .links td:last-child {
    border-bottom: none;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  .register input[type="text"],
  .register input[type="password"],
  .register input[type="email"] {
    width: 100%;
  }
  
  .tabs a {
    padding: 12px 5px;
    font-size: 0.85rem;
  }
  
  .bird-gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .bird-gallery img {
    height: 120px;
  }
  
  .register td:first-child {
    text-align: left;
    padding-right: 0;
  }
}

/* Mobile phones (landscape) */
@media (max-width: 575px) {
  html {
    font-size: 14px;
  }
  
  .container {
    width: 100%;
    margin: 0;
    padding: 10px;
    border-radius: 0;
  }
  
  .header {
    border-radius: 0;
    padding: 15px 10px;
  }
  
  .header h1 {
    font-size: 1.4rem;
    text-align: center;
  }
  
  .header h4 {
    font-size: 1rem;
    text-align: center;
  }
  
  .header table,
  .header tr,
  .header td {
    display: block;
    width: 100%;
  }
  
  .header td {
    padding: 8px 0;
    text-align: center;
  }
  
  .header form {
    margin: 15px auto;
    max-width: 100%;
  }
  
  .header input[type="text"] {
    max-width: calc(100% - 80px);
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .header input[type="submit"] {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  h1 {
    font-size: 1.4rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  .register {
    padding: 15px 10px;
  }
  
  .register table {
    display: block;
    width: 100%;
  }
  
  .register tr {
    display: block;
    width: 100%;
  }
  
  .register td {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 0;
  }
  
  .register td:first-child {
    text-align: left;
    padding-right: 0;
    font-weight: 600;
  }
  
  .links table,
  .links tr {
    display: block;
    width: 100%;
  }
  
  .links tr {
    display: flex;
    flex-wrap: wrap;
  }
  
  .links td {
    display: block;
    flex: 1 1 50%;
    min-width: 50%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 0;
  }
  
  .links td:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .links td:nth-last-child(-n+2) {
    border-bottom: none;
  }
  
  .tabs a {
    padding: 12px 5px;
    font-size: 0.8rem;
  }
  
  .navigation {
    padding: 15px;
  }
  
  .navigation h4 {
    font-size: 1.1rem;
  }
  
  .navigation .tabs a {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .content {
    padding: 10px;
  }
  
  .title {
    padding: 15px 10px;
  }
  
  .title h2 {
    font-size: 1.3rem;
  }
  
  ul {
    padding-left: 1.2em;
  }
  
  .bird-gallery {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
  }
  
  .bird-gallery img {
    height: 100px;
  }
  
  .bird-card {
    border-radius: 8px;
  }
  
  .bird-card img {
    height: 100px;
    border-radius: 8px 8px 0 0;
  }
  
  .bird-info {
    padding: 8px 10px;
  }
  
  .bird-info h4 {
    font-size: 0.85rem;
  }
  
  .bird-info p {
    font-size: 0.75rem;
  }
  
  .container > div:first-child img {
    max-width: 100px;
    margin: 5px 0 5px 10px;
  }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .container {
    width: 100%;
    margin: 0;
    padding: 8px;
    border-radius: 0;
  }
  
  .header {
    padding: 12px 8px;
  }
  
  .header h1 {
    font-size: 1.3rem;
  }
  
  .header h4 {
    font-size: 0.9rem;
  }
  
  .tabs a {
    padding: 10px 3px;
    font-size: 0.75rem;
  }
  
  .links td {
    flex: 1 1 100%;
    min-width: 100%;
    border-right: none;
  }
  
  .links td:nth-child(odd) {
    border-right: none;
  }
  
  .register {
    padding: 12px 8px;
  }
  
  .register td {
    padding: 6px 0;
  }
  
  .navigation .tabs a {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
  
  .bird-gallery {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 6px;
  }
  
  .bird-gallery img {
    height: 80px;
  }
  
  .bird-card img {
    height: 80px;
  }
  
  .container > div:first-child img {
    max-width: 80px;
    margin: 5px 0 5px 8px;
  }
}

/* Very small devices (320px and down) */
@media (max-width: 320px) {
  html {
    font-size: 12px;
  }
  
  .container {
    padding: 5px;
  }
  
  .header {
    padding: 10px 5px;
  }
  
  .header h1 {
    font-size: 1.2rem;
  }
  
  .tabs a {
    padding: 8px 2px;
    font-size: 0.7rem;
  }
  
  .register {
    padding: 10px 5px;
  }
  
  .bird-gallery {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 5px;
  }
  
  .bird-gallery img {
    height: 70px;
  }
  
  .bird-card img {
    height: 70px;
  }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.p-20 {
  padding: 20px;
}

/* ========== BIRD-THEMED DECORATIVE ELEMENTS ========== */
.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-blue), var(--secondary-green));
  z-index: 1;
}

/* Bird silhouette decorative element for headers */
.header::after {
  content: '🦅';
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  opacity: 0.3;
  animation: fly 10s ease-in-out infinite;
}

@keyframes fly {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* ========== PRINT STYLES ========== */
@media print {
  .navigation,
  .links {
    display: none;
  }
  
  .content {
    margin-left: 0;
    width: 100%;
  }
  
  .container {
    box-shadow: none;
    margin: 0;
  }
}

/* ========== ENHANCED BIRD GALLERY FEATURES ========== */
/* Twitchers' images specific styling */
img[src*="twitchers'images"] {
  border: 3px solid var(--secondary-green);
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow-medium);
  transition: all 0.4s ease;
}

img[src*="twitchers'images"]:hover {
  border-color: var(--accent-blue);
  transform: scale(1.08) rotate(1deg);
  box-shadow: 0 8px 24px var(--shadow-medium);
}

/* Bird image captions */
.bird-caption {
  background-color: rgba(44, 85, 48, 0.9);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 0 0 8px 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  margin-top: -4px;
  position: relative;
  z-index: 2;
}

/* Enhanced hover effects for all images */
img {
  cursor: pointer;
  filter: brightness(1);
}

img:hover {
  filter: brightness(1.1) contrast(1.05);
}

/* Special styling for different bird image types */
img[src*="bird 1"], img[src*="bird 2"], img[src*="bird 3"] {
  border-color: #e8f5e8;
}

img[src*="bird 4"], img[src*="bird 5"], img[src*="bird 6"] {
  border-color: #4682b4;
}

img[src*="bird 7"], img[src*="bird 8"], img[src*="bird 9"], img[src*="bird 10"] {
  border-color: #8b4513;
}

/* Lightbox-style effect preparation */
.image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 8px;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(44, 85, 48, 0.1), rgba(70, 130, 180, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.image-container:hover .image-overlay {
  opacity: 1;
}

/* ========== ENHANCED CONTENT SECTIONS ========== */
/* Better table styling for existing HTML tables */
table {
  width: 100%;
  border-collapse: collapse;
}

td {
  vertical-align: top;
  padding: 8px;
}

/* Enhanced search form in header */
.header form table {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px var(--shadow-light);
  margin: 0 auto;
  max-width: 300px;
}

/* Better spacing for content sections */
.content h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.content p:first-of-type {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* ========== ENHANCED FORM CONTROLS ========== */
/* Radio button styling */
.register input[type="radio"] {
  margin-right: 8px;
  margin-left: 15px;
  transform: scale(1.2);
  accent-color: var(--accent-blue);
}

.register label {
  font-weight: 500;
  color: var(--text-dark);
  margin-right: 20px;
  cursor: pointer;
}

/* Date input styling */
.register input[type="date"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-light);
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background-color: var(--white);
  max-width: 100%;
}

.register input[type="date"]:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

/* Navigation links in forms */
.register a {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--text-light);
  color: var(--white);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.register a:hover {
  background-color: var(--text-medium);
  transform: translateY(-2px);
  padding: 8px 16px;
}

/* Override inline styles that conflict with modern design */
body[bgcolor] {
  background-color: var(--warm-beige) !important;
}

body[text] {
  color: var(--text-dark) !important;
}

/* Style improvements for legacy table-based layouts */
table[border] {
  border: none !important;
}

td[bordercolor] {
  border: 2px solid var(--primary-green) !important;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--light-green) 0%, var(--warm-beige) 100%);
  box-shadow: 0 4px 8px var(--shadow-light);
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
/* Focus indicators */
input:focus,
button:focus,
a:focus {
  outline: 3px solid var(--accent-blue);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #1a3d1f;
    --secondary-green: #2d4a32;
    --text-dark: #000000;
    --border-light: #666666;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .header::before {
    animation: none;
  }
  
  .header::after {
    animation: none;
  }
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
/* GPU acceleration for transforms */
.tabs a,
.register input,
img {
  will-change: transform;
}

/* Prevent layout shifts */
img {
  aspect-ratio: attr(width) / attr(height);
}

/* ========== ADDITIONAL BIRD-THEMED ENHANCEMENTS ========== */
/* Subtle bird pattern background for content areas */
.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><path d="M20 5c-3 0-5 2-5 5s2 5 5 5 5-2 5-5-2-5-5-5zm-8 12c-1 0-2 1-2 2s1 2 2 2 2-1 2-2-1-2-2-2zm16 0c-1 0-2 1-2 2s1 2 2 2 2-1 2-2-1-2-2-2z" fill="%23e8f5e8" opacity="0.05"/></svg>');
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

/* Seasonal color variations */
@media (prefers-color-scheme: dark) {
  :root {
    --warm-beige: #2d3748;
    --white: #1a202c;
    --text-dark: #f7fafc;
    --text-medium: #e2e8f0;
    --text-light: #cbd5e0;
    --border-light: #4a5568;
    --shadow-light: rgba(255, 255, 255, 0.1);
    --shadow-medium: rgba(255, 255, 255, 0.15);
  }
  
  body {
    background-color: #1a202c;
  }
}

/* Nature sound visualization (subtle animation) */
@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Interactive elements for bird watching theme */
.bird-watching-tip {
  background: linear-gradient(135deg, var(--light-green), rgba(70, 130, 180, 0.1));
  border-left: 4px solid var(--accent-blue);
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  position: relative;
}

.bird-watching-tip::before {
  content: '🔍';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--accent-blue);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ========== BIRD GALLERY SHOWCASE ========== */
/* Create a dedicated bird gallery section */
.bird-showcase {
  margin: 30px 0;
  padding: 25px;
  background: linear-gradient(135deg, var(--light-green) 0%, rgba(70, 130, 180, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 6px 12px var(--shadow-light);
}

.bird-showcase h3 {
  text-align: center;
  color: var(--primary-green);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* Enhanced grid for twitchers' images */
.twitchers-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.bird-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-light);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.bird-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px var(--shadow-medium);
  border-color: var(--accent-blue);
}

.bird-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}

.bird-info {
  padding: 12px 15px;
  text-align: center;
}

.bird-info h4 {
  color: var(--primary-green);
  font-size: 1rem;
  margin: 0 0 5px 0;
}

.bird-info p {
  color: var(--text-light);
  font-size: 0.85rem;
  margin: 0;
}

/* Special styling for featured Penguins image */
.featured-bird {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
  color: var(--white);
}

.featured-bird .bird-info {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.featured-bird .bird-info h4,
.featured-bird .bird-info p {
  color: var(--white);
}

/* ========== ENHANCED NAVIGATION IMPROVEMENTS ========== */
/* Better member navigation styling */
.navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navigation li {
  margin-bottom: 10px;
}

.navigation li a {
  display: block;
  padding: 12px 15px;
  background-color: var(--white);
  color: var(--text-dark);
  border-radius: 6px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  text-decoration: none;
}

.navigation li a:hover {
  background-color: var(--accent-blue);
  color: var(--white);
  transform: translateX(8px);
  padding: 12px 15px;
}

/* ========== STATUS AND FEEDBACK MESSAGES ========== */
/* Style for success/error messages */
.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px 0;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px 0;
}

.alert-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px 0;
}

/* ========== CAPTCHA STYLING ========== */
/* Enhanced CAPTCHA form styling */
#frmCaptcha {
  max-width: 500px;
  margin: 0 auto;
}

#imgCaptcha {
  border: 3px solid var(--primary-green);
  border-radius: 8px;
  margin-left: 10px;
  box-shadow: 0 4px 8px var(--shadow-light);
}

#txtCaptcha {
  padding: 12px 15px;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  max-width: 200px;
}

#btnCaptcha {
  background-color: var(--accent-blue);
  color: var(--white);
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#btnCaptcha:hover {
  background-color: var(--primary-green);
}

/* ========== FINAL POLISHING ========== */
/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection styling */
::selection {
  background-color: var(--accent-blue);
  color: var(--white);
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Better focus management */
.container:focus-within {
  box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.2);
}