/* ==========================================================================
   Modern & Usable Stylesheet for ldschurchtools.com
   ========================================================================== */

/* 1. Global Reset & Modern Variables */
:root {
  /* Color Palette - Clean, authoritative, and soft */
  --primary: #1e3a8a;       /* Deep Slate Blue */
  --primary-hover: #1d4ed8;
  --secondary: #0ea5e9;     /* Soft Sky Blue Accent */
  --bg-main: #f8fafc;       /* Light off-white canvas */
  --bg-card: #ffffff;
  --text-main: #1e293b;     /* Dark charcoal (better readability than pure black) */
  --text-muted: #64748b;    /* Muted gray for captions/secondary text */
  --border-color: #e2e8f0;
  
  /* System Typography */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Functional Spacing & Radii */
  --radius: 8px;
  --transition: all 0.25s ease-in-out;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
  --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.7), 0 4px 6px -4px rgb(0 0 0 / 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{
    color:black;
    width:100%;
    margin:0;
    padding:0;
  font-family: var(--font-stack);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body {
    display:flex;
    flex-direction:column;
    margin:0;
    min-height:100vh;
    font-family:var(--font-stack);
    background-color:var(--bg-main);
header{
width:100%;
position:sticky;
text-align:center;
background-color: var(--bg-card);
border-bottom: 1px solid var(--border-color);
display: flex;
justify-content: space-around;
align-items: center;
top: 0;
z-index: 100;
box-shadow: var(--shadow);
h1{
    color:var(--primary);
    margin-top:10px;
    margin-bottom:10px;
}
}
main{
    flex: 1;
    color:black;
    margin:0 auto;
    padding-top:15px;
    padding-bottom:15px;
    max-width:100vw;
    padding-left:5px;
    padding-right:5px;
    
}
footer{
  padding:10px;
 width:100%;
 color:white;
background-color:black;
text-align:center;
a{color:white;}
}
}

form {
  max-width: 800px;
  margin: 10px auto;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  input[type="radio"]{
    margin-right:10px;
    margin-left:20px;
  }
}

label {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
  color: #333;
  font-size: 0.6rem;
}
.input-group-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:4px;
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 5px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  box-sizing: border-box; /* Ensures padding doesn't affect width */
  font-size: 0.8rem;
  color: #444;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus,select.focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 102, 204, 0.2);
}

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

input[type="submit"] {
  background-color: #0066cc;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius:var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
  transition: background-color 0.2s ease;
}

input[type="submit"]:hover {
  background-color: #004c99;
}

/* 2. Accessible & Clean Layout Typography */
h1, h2, h3, h4 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  margin-top:8px; margin-bottom:8px;
}

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

a:hover {
  color: var(--primary-hover);
}

/* 3. Modern Header & Navigation Area */
.navbar{
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
 /* not necessary  position: sticky;*/
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

.nav-links a:hover, 
.nav-links a.active {
  color: var(--primary);
  background-color: var(--bg-main);
  text-decoration: none;
}

/* 4. Usable Interactive Elements (Buttons & Inputs) */
button, .btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover, .btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/*input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background-color: #ffffff;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}*/
form{
    width:800px;
    background-color:white;
    border:1px solid var(--border-color);
    border-radius:var(--radius);
    padding:20px;
    box-shadow:var(--shadow);
    textarea{
        width:100%;
        height:6rem;
    }
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* 5. Clean Main Container & Card Infrastructure */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Tool Grid (for directories, schedules, reports) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  min-height: 300px;
  h3{
    font-weight:800;
  }
  p{
    font-weight:700;
  }
  
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* 6. High-Usability Tables (For Lists, Rosters & Data) */
.table-container {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin: 1.5rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th {
  background-color: var(--bg-main);
  color: var(--primary);
  font-weight: 600;
  padding: 0.875rem 1rem;
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(14, 165, 233, 0.02);
}
 /*.page-header{
  width:100%; 
position:fixed;
top:0;left:0;
display:flex;
flex-direction:row;
flex-wrap:wrap;
justify-content:space-evenly;
background-color:var(--navy);
color:var(--light);
z-index:1000;
align-items:center;
*{display:flex;align-items:center;
padding:0px;}
a{color:var(--light);}
h1{
  margin-top:8px;
  margin-bottom:8px;
  font-size:20px;
  letter-spacing:
  .5px;font-weight:700}
 }*/
 #helloUser{
  text-align:right;
  padding-right:20px;
  font-weight:bold;
  right:20px;
}
/* Container stays hidden by default, fixed to the bottom */
.cookie-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(40, 40, 40, 0.95);
  color: #ffffff;
  padding: 15px 20px;
  box-shadow: var(--shadow-hover);
  z-index: 9999;
  display: none; /* Controlled by JavaScript */
}

/* Flexbox layout for clean spacing */
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-family: Arial, sans-serif;
}

.cookie-content p {
  margin: 0;
  font-size: 14px;
}

/* Button styling */
.cookie-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  border-radius:var(--radius);
  font-weight: bold;
  transition: background 0.3s ease;
}

.cookie-btn:hover {
  background-color: #45a049;
}
/* 7. Responsive Breakpoints */
@media (max-width: 1000px) {
body{font-size:16px;
header{h1{font-size:20px;}}}
  header, .navbar {
    flex-direction: column;
    gap: 1rem;/*
    padding: 1rem; */
  }
  /*.grid{
    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
  }*/
  .nav-links {
    width: 100%;
    justify-content: space-around;
    gap: 0.5rem;
  }
  
  .container {
    margin: 1rem auto;
  }
}
