:root { 
  --nav-height: 65px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.navbar { 
  height: var(--nav-height); 
  border-bottom: 1px solid var(--bs-border-color-translucent); 
}

.footer-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 50px;
  transition: all 0.2s ease-in-out;
  background: transparent;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--bs-primary);
  background-color: var(--bs-tertiary-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

[data-theme-pref="dark"] .footer-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.content-wrapper {
  flex: 1 0 auto;
}

main {
  animation: fadeInContent 0.4s ease-in-out;
}

@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast.showing {
    animation: slideInRight 0.35s ease-out forwards;
}

.toast.hiding {
    animation: slideOutRight 0.35s ease-in forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

#cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 350px;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 
}

* {
  scroll-behavior: smooth;
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
}

.task-card {
  transition: all 0.2s ease-in-out;
}

.task-card:hover {
  transform: translateX(4px);
  background-color: var(--bs-body-secondary);
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cursor-pointer {
  cursor: pointer;
}

.tag-badge {
  background: var(--bs-primary);
  color: white;
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 0.75rem;
  margin-right: 5px;
  display: inline-flex;
  align-items: center;
}

.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  background-color: var(--bs-body-bg); 
  cursor: text;
  min-height: 38px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.tag-input-container:focus-within {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--bs-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 2px;
  font-size: 0.85rem;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.tag-badge .remove-tag {
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
  opacity: 0.8;
}

.tag-input-field {
  border: none;
  outline: none;
  flex: 1;
  min-width: 120px;
  padding: 4px 0;
  font-size: 0.9rem;
  background-color: transparent;
  color: var(--bs-body-color);
}

.suggestions-list {
  position: absolute;
  z-index: 1050;
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-top: none;
  display: none;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--bs-body-color);
}

.suggestion-item:hover {
  background-color: var(--bs-tertiary-bg);
}

#loading-overlay {
  transition: opacity 0.2s ease-in-out;
}

.progress-bar {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 2rem !important;
  margin-bottom: 1rem;
}

.task-markdown-content p {
    margin-bottom: 0;
    display: inline; 
}