/* ============================================
   RESCorp Theme 4 - Apple Design Language
   ============================================ */

/* ============================================
   Base Styles
   ============================================ */

body {
  background: #f5f5f7;
  line-height: 1.6em;
  margin: 0;
  padding: 0;
  color: #1d1d1f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

/* Main page typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  text-align: center;
}

h1 {
  font-size: 3.5em;
  line-height: 1.1em;
  color: #1d1d1f;
  margin-top: 1em;
  font-weight: 700;
}

/* Content pages typography */
.content {
  max-width: 700px;
  margin: 2em auto;
}

/* Lexicon-old page typography */
.lexicon-old body {
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 15pt;
  letter-spacing: 0.02em;
}

.lexicon-old h1, .lexicon-old h2, .lexicon-old h3, .lexicon-old h4, .lexicon-old h5, .lexicon-old h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
}

/* Stories/Story pages typography */
.stories-page body, .story-page body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  letter-spacing: 0.01em;
}

/* Content pages typography */
.content-page body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1d1d1f;
  letter-spacing: 0.01em;
}

/* Legalese page typography */
.legalese-page body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
}

/* OPS page typography */
.ops-page * {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ============================================
   Common Components
   ============================================ */

.centered-logo {
  text-align: center;
  margin-top: 2em;
}

.centered-logo img {
  height: 64px;
  opacity: 0.9;
}

.centered-logo img.main-logo {
  height: 200px;
}

.centered-heading {
  text-align: center;
}

.centered-btn {
  text-align: center;
  margin-bottom: 2em;
}

.logo-link {
  display: inline-block;
}

/* Main menu styles */
.main-menu {
  margin: 2em auto 0 auto;
  max-width: 400px;
  position: relative;
  bottom: 0;
}

.main-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.main-menu-link {
  color: #0071e3;
  background: #ffffff;
  font-size: 1.8em;
  text-decoration: none;
  padding: 0.7em 1.5em;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba( 0, 0, 0, 0.1 );
  display: block;
  margin: 0.5em 1vw;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.05 );
  font-weight: 500;
}

.main-menu-link:hover,
.main-menu-link:focus {
  background: #0071e3;
  color: #ffffff;
  transform: translateY( -1px );
  box-shadow: 0 4px 12px rgba( 0, 113, 227, 0.3 );
  outline: none;
}

/* ============================================
   Content Items
   ============================================ */

.news-item, .story-item, .lexicon-item {
  background: #ffffff;
  padding: 2em;
  border-radius: 12px;
  border: 1px solid rgba( 0, 0, 0, 0.1 );
  margin-bottom: 2em;
  box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.05 );
  transition: all 0.2s ease;
}

.news-item:hover, .story-item:hover, .lexicon-item:hover {
  box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.1 );
  transform: translateY( -2px );
}

/* ============================================
   Memo Styles
   ============================================ */

.memo-date {
  color: #86868b;
  font-size: 0.95em;
  margin-bottom: 0.3em;
  font-weight: 400;
}

.memo-dept {
  color: #0071e3;
  font-size: 1.1em;
  margin-bottom: 0.3em;
  font-weight: 600;
}

.memo-author, .memo-recipients {
  color: #86868b;
  font-size: 0.95em;
  font-weight: 400;
}

.memo-subject {
  font-size: 1.2em;
  margin: 0.5em 0;
  font-weight: 600;
  color: #1d1d1f;
}

.memo-admin-btns {
  margin-top: 1em;
}

.memo-preview {
  cursor: pointer;
  transition: all 0.2s ease;
}

.memo-preview:hover,
.memo-preview:focus {
  border-color: #0071e3;
  outline: none;
}

.memo-body {
  display: none;
}

.memo-preview .memo-body {
  display: none;
}

.memo-preview .memo-dept {
  display: none;
}

.memo-full .memo-body {
  display: block;
}

.memo-full .memo-dept {
  display: block;
}

/* ============================================
   News Styles
   ============================================ */

.news-date {
  color: #86868b;
  font-size: 0.9em;
  font-weight: 400;
}

.news-title {
  font-size: 1.5em;
  color: #1d1d1f;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.news-admin-btns {
  margin-top: 1em;
  text-align: right;
}

.news-location {
  color: #86868b;
  font-size: 1em;
  font-style: italic;
  margin-bottom: 0.5em;
}

.news-preview {
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-preview:hover,
.news-preview:focus {
  border-color: #0071e3;
  outline: none;
}

.news-body {
  display: none;
}

.news-preview .news-body {
  display: none;
}

.news-full .news-body {
  display: block;
}

.news-byline {
  color: #86868b;
  font-size: 0.95em;
  margin-top: 0.5em;
  font-weight: 400;
}

/* ============================================
   Story Styles
   ============================================ */

.story-title {
  font-size: 1.3em;
  color: #1d1d1f;
  margin-bottom: 0.3em;
  font-weight: 600;
}

.story-author {
  color: #86868b;
  font-size: 1em;
  margin-bottom: 0.7em;
  font-weight: 400;
}

.story-body {
  /* Story body content */
}

/* ============================================
   Lexicon Styles
   ============================================ */

.lexicon-date {
  color: #86868b;
  font-size: 0.95em;
  margin-bottom: 0.3em;
  font-weight: 400;
}

.lexicon-word {
  color: #1d1d1f;
  font-size: 1.5em;
  margin-bottom: 0.3em;
  font-weight: 700;
}

.lexicon-part-of-speech {
  color: #0071e3;
  font-size: 1.1em;
  margin-bottom: 0.3em;
  font-weight: 600;
}

.lexicon-pronunciation {
  color: #86868b;
  font-size: 0.95em;
  margin-bottom: 0.3em;
  font-style: italic;
  font-weight: 400;
}

.lexicon-definition {
  font-size: 1.1em;
  margin: 0.5em 0;
  line-height: 1.6;
}

.lexicon-examples {
  margin-top: 1em;
  color: #86868b;
  font-size: 0.95em;
  font-weight: 400;
}

.lexicon-admin-btns {
  margin-top: 1em;
}

.lexicon-preview {
  cursor: pointer;
  transition: all 0.2s ease;
}

.lexicon-preview:hover,
.lexicon-preview:focus {
  border-color: #0071e3;
  outline: none;
}

.lexicon-body {
  display: none;
}

.lexicon-preview .lexicon-body {
  display: none;
}

.lexicon-preview .lexicon-examples {
  display: none;
}

.lexicon-preview .lexicon-pronunciation {
  display: none;
}

.lexicon-preview .lexicon-definition {
  display: none;
}

.lexicon-full .lexicon-body {
  display: block;
}

.lexicon-full .lexicon-examples {
  display: block;
}

/* Lexicon-old specific styles */
.lexicon-entry-block {
  padding: 1.5em;
  border-radius: 12px;
  border: 1px solid rgba( 0, 0, 0, 0.1 );
  margin-bottom: 1.5em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.05 );
}

.lexicon-old .lexicon-word {
  margin-top: 2em;
  font-size: 1.5em;
  font-weight: 700;
  color: #1d1d1f;
}

.lexicon-old .lexicon-pronunciation {
  font-size: 0.7em;
  color: #86868b;
  margin-left: 1em;
  font-weight: 400;
}

.lexicon-old .lexicon-definition {
  margin: 0.5em 0;
}

.lexicon-old .lexicon-examples {
  margin: 0.5em 0;
  color: #86868b;
  font-style: italic;
  font-weight: 400;
}

.lexicon-modified {
  color: #86868b;
  font-size: 0.95em;
  font-weight: 400;
}

.top {
  background: #ffffff;
  color: #1d1d1f;
  padding: 0 2vw 0.3em 2vw;
  border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
}

.recess {
  background-color: #f5f5f7;
  padding: 0.5em 2vw;
}

/* ============================================
   Scripture Styles
   ============================================ */

.scripture-admin-btns {
  margin-top: 1em;
  text-align: right;
}

.scripture-preview {
  cursor: pointer;
  transition: all 0.2s ease;
}

.scripture-preview:hover,
.scripture-preview:focus {
  border-color: #0071e3;
  outline: none;
}

.scripture-body {
  display: block;
}

.scripture-full .scripture-body {
  display: block;
}

.scripture-ref {
  color: #0071e3;
  font-size: 1.1em;
  margin-bottom: 0.3em;
  font-weight: 600;
}

/* ============================================
   Quote Styles
   ============================================ */

.quote-author {
  color: #86868b;
  font-size: 1em;
  margin-bottom: 0.7em;
  text-align: right;
  font-weight: 400;
}

.quote-admin-btns {
  margin-top: 1em;
}

.quote-preview {
  cursor: pointer;
  transition: all 0.2s ease;
}

.quote-preview:hover,
.quote-preview:focus {
  border-color: #0071e3;
  outline: none;
}

.quote-body {
  display: block;
}

.quote-full .quote-body {
  display: block;
}

/* ============================================
   Encyclopedia Styles
   ============================================ */

.encyclopedia-title {
  font-size: 1.3em;
  color: #1d1d1f;
  margin-bottom: 0.3em;
  font-weight: 600;
}

.encyclopedia-author {
  color: #86868b;
  font-size: 1em;
  margin-bottom: 0.7em;
  font-weight: 400;
}

.encyclopedia-admin-btns {
  margin-top: 1em;
}

.encyclopedia-preview {
  cursor: pointer;
  transition: all 0.2s ease;
}

.encyclopedia-preview:hover,
.encyclopedia-preview:focus {
  border-color: #0071e3;
  outline: none;
}

.encyclopedia-body {
  display: block;
}

.encyclopedia-full .encyclopedia-body {
  display: block;
}

/* ============================================
   Search Styles
   ============================================ */

.search-container {
  background: #ffffff;
  padding: 2em;
  border-radius: 12px;
  border: 1px solid rgba( 0, 0, 0, 0.1 );
  margin-bottom: 2em;
  box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.05 );
}

.search-form {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  padding: 0.8em 1em;
  font-size: 1.1em;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
  border-radius: 8px;
  background: #ffffff;
  color: #1d1d1f;
  min-width: 250px;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.search-input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba( 0, 113, 227, 0.1 );
}

.search-btn {
  padding: 0.8em 1.5em;
  font-size: 1.1em;
  background: #0071e3;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.search-btn:hover,
.search-btn:focus {
  background: #0077ed;
  transform: translateY( -1px );
  box-shadow: 0 4px 12px rgba( 0, 113, 227, 0.3 );
  outline: none;
}

.clear-btn {
  padding: 0.8em 1.5em;
  font-size: 1.1em;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.clear-btn:hover,
.clear-btn:focus {
  background: #e8e8ed;
  outline: none;
}

.search-filters {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.filter-select {
  padding: 0.5em 0.8em;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
  border-radius: 8px;
  background: #ffffff;
  color: #1d1d1f;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.filter-select:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba( 0, 113, 227, 0.1 );
}

.results-container {
  min-height: 200px;
}

.result-item {
  background: #ffffff;
  padding: 1.5em;
  border-radius: 12px;
  border: 1px solid rgba( 0, 0, 0, 0.1 );
  margin-bottom: 1.5em;
  box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.05 );
  transition: all 0.2s ease;
}

.result-item:hover {
  box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.1 );
  transform: translateY( -2px );
}

.result-title {
  font-size: 1.3em;
  color: #1d1d1f;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.result-type {
  color: #86868b;
  font-size: 0.9em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.result-excerpt {
  color: #1d1d1f;
  line-height: 1.6;
  margin-bottom: 0.5em;
}

.result-link {
  color: #0071e3;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.2s ease;
  font-weight: 500;
}

.result-link:hover,
.result-link:focus {
  color: #0077ed;
  text-decoration: underline;
  outline: none;
}

.no-results {
  text-align: center;
  color: #86868b;
  font-style: italic;
  padding: 3em;
  font-weight: 400;
}

.search-status {
  text-align: center;
  color: #86868b;
  margin: 1em 0;
  font-weight: 400;
}

/* ============================================
   Legalese Styles
   ============================================ */

.legalese-page nav {
  width: 100%;
  background: #ffffff;
  padding: 1em 0;
  margin-bottom: 2em;
  border-bottom: 1px solid rgba( 0, 0, 0, 0.1 );
}

.legalese-page nav div {
  display: flex;
  justify-content: center;
  gap: 2em;
}

.legalese-page nav a {
  color: #0071e3;
  background: none;
  font-size: 1.2em;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.legalese-page nav a:hover,
.legalese-page nav a:focus {
  color: #0077ed;
  outline: none;
}

.legalese-page .content {
  max-width: 700px;
  margin: 2em auto;
  background: #ffffff;
  padding: 2em;
  border-radius: 12px;
  border: 1px solid rgba( 0, 0, 0, 0.1 );
  box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.05 );
}

.legalese-page p {
  text-align: center;
  margin: 2em auto;
  max-width: 700px;
}

/* ============================================
   OPS Styles
   ============================================ */

.ops-page content > div {
  margin: 1em;
  display: flex;
  justify-content: space-between;
}

.ops-page textarea {
  width: 45vw;
  height: 15em;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 8px;
  transition: all 0.2s ease;
  padding: 0.8em;
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.9em;
}

.ops-page textarea:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba( 0, 113, 227, 0.1 );
}

.ops-page section h1 {
  font-size: 120%;
  font-weight: 600;
  margin: 0;
  padding: 0;
  color: #1d1d1f;
}

.ops-page #sample {
  font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
}

/* ============================================
   Game Styles
   ============================================ */

.game-page * {
  margin: 0;
  padding: 0;
}

.game-page body, .game-page html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.game-page canvas {
  width: 100%;
  height: 100%;
}

/* ============================================
   Lexicon-old Form Styles
   ============================================ */

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

table tr:first-child {
  font-weight: 600;
  background-color: #f5f5f7;
}

table td {
  border: solid 1px rgba( 0, 0, 0, 0.1 );
  padding: 0.5em 2vw;
  background: #ffffff;
}

input[type=text], input[type=password], textarea, select {
  font-size: 85%;
  padding: 0.5em 1em;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba( 0, 113, 227, 0.1 );
}

input[type=submit], input[type=reset], input[type=button] {
  color: #ffffff;
  min-width: 5em;
  background: #0071e3;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.5em;
  margin: 0.2em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

input[type=submit]:hover, input[type=reset]:hover, input[type=button]:hover,
input[type=submit]:focus, input[type=reset]:focus, input[type=button]:focus {
  background: #0077ed;
  transform: translateY( -1px );
  box-shadow: 0 4px 12px rgba( 0, 113, 227, 0.3 );
  outline: none;
}

input[type=reset] {
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
}

input[type=reset]:hover,
input[type=reset]:focus {
  background: #e8e8ed;
}

blockquote {
  font-style: italic;
  border-left: 3px solid #0071e3;
  padding-left: 1em;
  margin-left: 1em;
  color: #86868b;
}

/* ============================================
   Modal Styles
   ============================================ */

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba( 0, 0, 0, 0.4 );
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur( 8px );
  -webkit-backdrop-filter: blur( 8px );
}

.modal-overlay {
  /* Reserved for future overlay-specific styles if needed */
}

.modal-box {
  background: #ffffff;
  color: #1d1d1f;
  padding: 2em;
  border-radius: 16px;
  border: 1px solid rgba( 0, 0, 0, 0.1 );
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.2 );
}

.modal-form-input {
  width: 100%;
  margin: 0.5em 0 1em 0;
  padding: 0.8em;
  box-sizing: border-box;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.modal-form-input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba( 0, 113, 227, 0.1 );
}

.modal-form-textarea {
  width: 100%;
  margin: 0.5em 0 1em 0;
  padding: 0.8em;
  height: 100px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.modal-form-textarea:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba( 0, 113, 227, 0.1 );
}

.modal-form-btns {
  text-align: center;
  margin-top: 1em;
}

.error-message {
  text-align: center;
  color: #ff3b30;
  font-weight: 500;
}

.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba( 0, 0, 0, 0.4 );
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur( 8px );
  -webkit-backdrop-filter: blur( 8px );
}

.modal-content {
  background: #ffffff;
  color: #1d1d1f;
  padding: 2em;
  border-radius: 16px;
  border: 1px solid rgba( 0, 0, 0, 0.1 );
  min-width: 320px;
  max-width: 90vw;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.2 );
}

.modal-content h2 {
  margin-top: 0;
  color: #1d1d1f;
  font-weight: 700;
}

.body-no-scroll {
  overflow: hidden !important;
}

/* Lexicon-old modal styles */
.edit-modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba( 0, 0, 0, 0.4 );
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur( 8px );
  -webkit-backdrop-filter: blur( 8px );
}

.edit-modal-content {
  background: #ffffff;
  padding: 2em;
  border-radius: 16px;
  border: 1px solid rgba( 0, 0, 0, 0.1 );
  color: #1d1d1f;
  box-shadow: 0 8px 32px rgba( 0, 0, 0, 0.2 );
}

.edit-modal-form-title {
  color: #1d1d1f;
  margin-bottom: 1em;
  font-weight: 700;
}

.edit-modal-form-input {
  width: 100%;
  margin: 0.5em 0 1em 0;
  padding: 0.8em;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.edit-modal-form-input:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba( 0, 113, 227, 0.1 );
}

.edit-modal-form-textarea {
  width: 100%;
  margin: 0.5em 0 1em 0;
  padding: 0.8em;
  height: 100px;
  resize: vertical;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.edit-modal-form-textarea:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba( 0, 113, 227, 0.1 );
}

.edit-modal-form-textarea-short {
  width: 100%;
  margin: 0.5em 0 1em 0;
  padding: 0.8em;
  height: 80px;
  resize: vertical;
  border: 1px solid rgba( 0, 0, 0, 0.2 );
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.edit-modal-form-textarea-short:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba( 0, 113, 227, 0.1 );
}

.edit-modal-form-btns {
  text-align: center;
  margin-top: 1em;
}

.nothing-found {
  text-align: center;
  padding: 2em;
  font-size: 1.2em;
  color: #86868b;
  font-weight: 400;
}

.flex-space-around {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1em;
}

.logo-img {
  height: 60px;
  margin: 1em 0;
  opacity: 0.9;
}

.search-form {
  display: inline;
}

.page {
  background: #f5f5f7;
}

/* ============================================
   Navigation Styles
   ============================================ */

.nav-btn {
  background: #ffffff;
  color: #0071e3;
  border: 1px solid rgba( 0, 0, 0, 0.1 );
  padding: 0.5em 1em;
  margin: 0 0.5em;
  border-radius: 8px;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.05 );
}

.nav-btn:hover,
.nav-btn:focus {
  background: #0071e3;
  color: #ffffff;
  transform: translateY( -1px );
  box-shadow: 0 4px 12px rgba( 0, 113, 227, 0.3 );
  outline: none;
}

.nav-container {
  text-align: center;
  margin-top: 2em;
  margin-bottom: 3em;
}

/* ============================================
   Utility Classes
   ============================================ */

.hid {
  display: none;
}

.xhid {
  display: none;
}

.admin {
  /* Admin-specific styles */
}

/* ============================================
   User Message Styles
   ============================================ */

#user-message {
  position: fixed;
  bottom: 0.5em;
  right: 0.5em;
  z-index: 100;
  cursor: pointer;
  font-size: 2.2em;
  color: #0071e3;
  opacity: 0.9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: all 0.2s ease;
}

#user-message:hover {
  opacity: 1;
  transform: scale( 1.1 );
}
