:root {
  --primary-color: #3f51b5;
  --primary-light: #7986cb;
  --primary-dark: #303f9f;
  --secondary-color: #ff4081;
  --secondary-light: #ff80ab;
  --secondary-dark: #c51162;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --info-color: #2196f3;
  --text-color: #212121;
  --text-secondary: #757575;
  --background-color: #f5f5f5;
  --card-color: #ffffff;
  --border-color: #e0e0e0;
  --input-bg: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --primary-color: #7986cb;
  --primary-light: #9fa8da;
  --primary-dark: #5c6bc0;
  --secondary-color: #ff80ab;
  --secondary-light: #ff99bb;
  --secondary-dark: #f06292;
  --success-color: #81c784;
  --warning-color: #ffb74d;
  --danger-color: #e57373;
  --info-color: #64b5f6;
  --text-color: #e0e0e0;
  --text-secondary: #b0b0b0;
  --background-color: #121212;
  --card-color: #1e1e1e;
  --border-color: #333333;
  --input-bg: #2c2c2c;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* General Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.card {
  background-color: var(--card-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

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

.card-header {
  border-bottom: 1px solid var(--border-color);
  padding: 15px 20px;
  font-weight: 500;
}

.card-body {
  padding: 20px;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

/* Navigation */
.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar-brand {
  font-weight: 700;
  color: white !important;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: white;
}

/* Form Styles */
.form-control {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.form-control:focus {
  background-color: var(--input-bg);
  border-color: var(--primary-light);
  color: var(--text-color);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.form-label {
  color: var(--text-color);
}

/* Table Styles */
.table {
  color: var(--text-color);
}

.table thead th {
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.table tbody tr:hover {
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

/* Dashboard Widgets */
.dashboard-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
  background-color: var(--card-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
}

.dashboard-widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--shadow-color);
}

.dashboard-widget .value {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0;
}

.dashboard-widget .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dashboard-widget .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

/* Public Site Styles */
.church-header {
  position: relative;
  background-color: var(--primary-dark);
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-bottom: 30px;
}

.church-header h1 {
  margin: 0;
  padding: 0;
  font-weight: 700;
}

.church-header p {
  margin-top: 10px;
  opacity: 0.9;
}

.devotional-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.devotional-card .card-body {
  flex: 1;
}

.devotional-card .scripture {
  color: var(--primary-color);
  font-style: italic;
}

.devotional-card .author {
  text-align: right;
  font-style: italic;
  color: var(--text-secondary);
}

.event-card {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.event-card .date {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.event-card .date .day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-card .date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.event-card .details {
  flex: 1;
}

.event-card .title {
  font-weight: 700;
  margin-bottom: 5px;
}

.event-card .location {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Mobile App Style (based on example image) */
.mobile-app {
  background-color: var(--card-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
  max-width: 380px;
  margin: 0 auto;
  padding-bottom: 70px;
  position: relative;
}

.mobile-app .search-bar {
  background-color: var(--primary-dark);
  padding: 15px;
  color: white;
}

.mobile-app .search-input {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 30px;
  padding: 10px 20px;
}

.mobile-app .search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.mobile-app .quick-actions {
  display: flex;
  justify-content: space-around;
  padding: 20px 0;
}

.mobile-app .quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--primary-color);
}

.mobile-app .quick-action .icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.mobile-app .quick-action .label {
  font-size: 0.8rem;
  margin-top: 5px;
  color: var(--text-color);
}

.mobile-app .content-section {
  padding: 15px;
}

.mobile-app .section-title {
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mobile-app .section-title a {
  color: var(--primary-color);
  font-size: 0.9rem;
  text-decoration: none;
}

.mobile-app .news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mobile-app .news-item {
  background-color: var(--primary-light);
  color: white;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100px;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.mobile-app .news-item .item-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.mobile-app .news-item:hover .item-image {
  opacity: 0.8;
  transform: scale(1.1);
}

.mobile-app .news-item .item-content {
  position: relative;
  z-index: 2;
}

.mobile-app .news-item h5 {
  font-size: 0.9rem;
  margin: 0;
  font-weight: 600;
}

.mobile-app .news-item p {
  font-size: 0.8rem;
  margin: 5px 0 0;
  opacity: 0.9;
}

.mobile-app .navbar {
  border-top: 1px solid var(--border-color);
  padding: 0;
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 100%;
  border-radius: 0 0 16px 16px;
}

.mobile-app .navbar a {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 0;
  width: 20%;
  transition: all 0.3s ease;
}

.mobile-app .navbar a.active {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
}

.mobile-app .navbar a.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 10px;
}

.mobile-app .navbar a i {
  font-size: 1.5rem;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.mobile-app .navbar a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.mobile-app .navbar a:hover i {
  transform: scale(1.1);
}

/* Estilo especial para o ícone home */
.mobile-app .navbar a[href*="home"] i {
  background-color: var(--primary-light);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mobile-app .navbar a[href*="home"].active i {
  background-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Theme switcher */
.theme-switch {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
}

.theme-switch:hover {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-widget {
    margin-bottom: 20px;
  }
  
  .table-responsive {
    overflow-x: auto;
  }
  .footer-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    z-index: 1050;
    margin-bottom: 0 !important;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  }
  .mobile-app .navbar {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    z-index: 1060;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  }
  body {
    padding-bottom: 70px; /* espaço para o menu fixo */
  }
}

/* Footer */
footer {
  margin-top: auto;
  background-color: var(--primary-dark);
  color: white;
  padding: 20px 0;
}

footer a {
  color: white;
  text-decoration: none;
}

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

/* Utilities */
.text-muted {
  color: var(--text-secondary) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-secondary {
  background-color: var(--secondary-color) !important;
}

.bg-success {
  background-color: var(--success-color) !important;
}

.bg-warning {
  background-color: var(--warning-color) !important;
}

.bg-danger {
  background-color: var(--danger-color) !important;
}

.bg-info {
  background-color: var(--info-color) !important;
}

.prayer-request-container {
    /* padding-bottom: 6rem; */
}

.donation-container {
    /* padding-bottom: 6rem; */
}

/* Mobile App News Grid */
.mobile-app .featured-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.mobile-app .news-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 6px var(--shadow-color);
  background-color: var(--card-color);
  transition: all 0.3s ease;
}

.mobile-app .news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px var(--shadow-color);
}

.mobile-app .news-card a {
  display: block;
  text-decoration: none;
  color: var(--text-color);
}

.mobile-app .news-card .news-image {
  height: 150px;
  overflow: hidden;
}

.mobile-app .news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mobile-app .news-card:hover .news-image img {
  transform: scale(1.05);
}

.mobile-app .news-card .news-content {
  padding: 15px;
}

.mobile-app .news-card .news-content h5 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 500;
}

.mobile-app .news-card .news-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.mobile-app .news-card .news-content small {
  font-size: 12px;
}

/* News Public Pages */
.news-img-container {
  height: 180px;
  overflow: hidden;
}

.news-featured-image {
  max-height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.news-content {
  line-height: 1.7;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 15px 0;
}

.blog-post h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.related-posts h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.related-posts h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Footer Menu Styles */
.footer-menu {
    background-color: #f8f9fa;
    padding: 20px 15px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
    margin-bottom: 70px; /* Para não sobrepor a barra de navegação */
}

.footer-menu-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    text-align: center;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-link:hover, .footer-link:active {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.footer-link i {
    margin-right: 8px;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-links-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Floating Action Menu Styles */
.floating-menu-container {
    position: fixed;
    bottom: 60px;
    right: 10px;
    z-index: 1000;
}

.nav-menu-toggle {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 0;
    width: 20%;
    transition: all 0.3s ease;
}

.nav-menu-toggle.active {
    color: var(--danger-color);
}

.nav-menu-toggle i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-menu-toggle:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.nav-menu-toggle:hover i {
    transform: scale(1.1);
}

.floating-menu-items {
    position: absolute;
    bottom: 10px;
    right: 0;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1050;
}

.floating-menu-items.show {
    opacity: 1;
    visibility: visible;
    width: auto;
    right: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    text-decoration: none;
    background-color: white;
    color: var(--text-color);
    border-radius: 30px;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transform: translateX(100px);
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: calc(0.05s * var(--i, 0));
    min-width: 200px;
}

.floating-menu-items.show .menu-item {
    transform: translateX(0);
    opacity: 1;
}

.menu-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.menu-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.menu-item:hover i {
    color: white;
}

/* Add animation delays for menu items */
.menu-item:nth-child(1) { --i: 1; }
.menu-item:nth-child(2) { --i: 2; }
.menu-item:nth-child(3) { --i: 3; }
.menu-item:nth-child(4) { --i: 4; }
.menu-item:nth-child(5) { --i: 5; }
.menu-item:nth-child(6) { --i: 6; }
.menu-item:nth-child(7) { --i: 7; }
