/* Base Reset & Typography */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #2c3e50;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 16px;
}

main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Logo & Branding */
.logo {
  width: 80px;
  margin: 0 auto 1rem;
  display: block;
}

/* Headings */
h1, h2, h3 {
  font-weight: 600;
  color: #1c2b3a;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

/* Poetic Text */
.poem {
  font-style: italic;
  color: #6c757d;
  margin: 1rem 0 2rem;
  text-align: center;
}

/* Buttons */
button,
input[type="submit"],
input[type="button"] {
  background: #2c3e50;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
  background: #1a252f;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="file"],
select,
textarea {
  padding: 0.5rem;
  border: 1px solid #ccd1d9;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  color: #2c3e50;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Lists & Links */
ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 1rem;
}

a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* Accessibility Enhancements */
:focus {
  outline: 2px dashed #2c3e50;
  outline-offset: 4px;
}

.back-button {
  margin-bottom: 1rem;
}

.back-button button {
  background: transparent;
  color: #2c3e50;
  border: 2px solid #2c3e50;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.back-button button:hover {
  background: #e0e7ff;
}


@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  button {
    width: 100%;
  }

  main {
    padding: 1rem;
  }
}

.final button {
  background-color: #2c3e50;
  color: #f9f9f9;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.final button:hover {
  background-color: #34495e;
}

/* Flash Messages */
.flash.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-style: italic;
}
.flash.error {
  background-color: #ffebee;
  color: #c62828;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-style: italic;
}

/* Report List */
.report-list {
  padding: 1rem;
  background: #fefefe;
  border-radius: 8px;
}

#report-filter {
  margin-bottom: 1rem;
  padding: 0.5rem;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.report-item {
  border-bottom: 1px solid #eee;
  padding: 0.75rem 0;
}

/* Breaking Report */
.breaking-report {
  background-color: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 1rem;
  margin-bottom: 1rem;
  font-weight: bold;
}
.breaking-report h3 {
  margin: 0 0 0.5rem 0;
  color: #e65100;
}

/* New additions */
/* Header and Logo */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.logo-container {
  flex-shrink: 0;
}

.logo-icon {
  height: 40px;
  width: auto;
}

/* Echo Carousel */
.echo-scroll {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  position: relative;
}

.echo-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 120px;
  height: 180px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease;
}

.echo-card:hover {
  transform: translateY(-4px);
}

.echo-thumbnail {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.echo-meta {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 80px;
}

.echo-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.echo-timestamp {
  font-size: 0.7rem;
  color: #888;
  margin: 0;
}

.echo-scroll-wrapper {
  position: relative;
}

.scroll-fade {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to left, #f5f7fa, transparent);
  pointer-events: none;
  z-index: 1;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Back Button */
.back-nav {
  padding: 0.5rem 1rem;
}

.back-arrow {
  font-size: 1.5rem;
  text-decoration: none;
  color: #333;
}

/* Main Content */
.main-content {
  padding: 1rem;
}

/* Bottom Navigation */
.bottom-nav {
  background-color: #2B2D42; /* Regal Midnight Indigo */
  border-top: 2px solid #5FB3B3; /* Echo Teal Mist accent */
  padding: 0.5rem 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
}

.nav-icons {
  display: flex;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-icons li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #F8F9FA; /* Soft Ivory White */
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.nav-icons li a:hover,
.nav-icons li a:focus {
  color: #F4C95D; /* Civic Gold Glow for hover/active */
}

.nav-icons li i {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

/*.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

.nav-icons {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-icons li {
  flex: 1;
  text-align: center;
}

.nav-icons li a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #2c3e50;
  font-size: 0.75rem;
  padding: 0.25rem;
}

.nav-icons li a i {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.nav-icons li a.active {
  color: #007acc;
  font-weight: bold;
}


.nav-icons li a:hover {
  color: #02609f;
}

.nav-icons i {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}*/

/* Menu Drawer */
.menu-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ccc;
  transition: bottom 0.3s ease-in-out;
  z-index: 999;
  padding: 1rem;
}

.menu-drawer.open {
  bottom: 80px; /* just above bottom nav */
}

.menu-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-drawer li {
  margin-bottom: 0.5rem;
}

/* notifications styles */
.notifications-section {
  padding: 1rem;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.notification-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notification-card {
  display: flex;
  align-items: flex-start;
  background-color: #f9f9f9;
  border-left: 4px solid #ccc;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.notification-card.unread {
  background-color: #eef6ff;
  border-left-color: #007acc;
}

.notification-icon {
  margin-right: 0.75rem;
  font-size: 1.5rem;
  color: #007acc;
}

.notification-content {
  flex: 1;
}

.notification-message {
  margin: 0;
  font-size: 0.95rem;
  color: #222;
}

.notification-timestamp {
  font-size: 0.75rem;
  color: #666;
}

.no-notifications {
  text-align: center;
  color: #777;
  font-style: italic;
}

/* More actions Styles */
.media-wrapper {
  position: relative;
  display: inline-block;
}

.media-actions {
  position: absolute;
  top: 5px;
  right: 5px;
}

.more-actions {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.action-menu,
.share-options {
  position: absolute;
  top: 30px;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  list-style: none;
  padding: 0.5rem;
  border-radius: 4px;
  z-index: 10;
}

.action-menu li,
.share-options li {
  margin-bottom: 0.5rem;
}

.action-menu button,
.share-options button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Collapsible Headers */
.year-header, .month-header, .day-header {
  cursor: pointer;
  background: #f0f0f0;
  padding: 0.5rem;
  margin-top: 1rem;
  border-left: 4px solid #888;
}

.report-card {
  border-bottom: 1px solid #ccc;
  padding: 1rem;
  margin: 0.5rem 0;
}

main, .content, #echo-stream, .final, .btn .btn-affirm {
  padding-bottom: 6rem; /* or more if needed */
}


/* Header Bar */
.header-bar {
  background-color: #2B2D42; /* Regal Midnight Indigo */
  color: #F8F9FA; /* Soft Ivory White for text */
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #5FB3B3; /* Echo Teal Mist accent */
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-icon {
  height: 40px;
  margin-right: 0.5rem;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F8F9FA;
}


/* Report Actions */
.report-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-align: center;
  white-space: nowrap;
  width: auto;
  max-width: 100%;
}

.btn-affirm {
  background-color: #2c3e50;
  color: #fff;
}

.btn-affirm:hover {
  background-color: #1a252f;
}

.btn-reflect {
  background-color: #ecf0f1;
  color: #2c3e50;
  border: 1px solid #bdc3c7;
}

.btn-reflect:hover {
  background-color: #dfe6e9;
}

.btn-release {
  background-color: #e74c3c;
  color: #fff;
}

.btn-release:hover {
  background-color: #c0392b;
}

.btn-ghost {
  background: transparent;
  color: #2c3e50;
  border: 1px solid #2c3e50;
}

.btn-ghost:hover {
  background: #f9f9f9;
}

.dashboard-actions {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dashboard-actions .btn {
  width: fit-content;
}

/* class actions  */
.actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
