/* Modern Design Enhancements for BookStack */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Card hover effects */
.card, .entity-list-item {
  transition: all 0.3s ease;
  border-radius: 12px !important;
}

.card:hover, .entity-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Modern input fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  border-radius: 8px !important;
  transition: all 0.2s ease;
  border: 1px solid #e5e7eb !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
  outline: none !important;
}

/* Modern badges and tags */
.tag, .badge {
  border-radius: 6px !important;
  padding: 4px 12px !important;
  font-weight: 500;
}

/* Smooth page transitions */
.page-content {
  animation: fadeIn 0.3s ease-in;
}

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

/* Modern sidebar */
.sidebar {
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

/* Enhanced book/page cards */
.book-contents, .chapter-contents {
  border-radius: 12px !important;
}

/* Modern search bar */
.search-box input {
  backdrop-filter: blur(10px);
}

/* Glassmorphism effect for cards */
.card-glass {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dark mode glassmorphism */
.dark-mode .card-glass {
  background: rgba(17, 17, 17, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modern list items */
.entity-list > .entity-list-item {
  border-radius: 8px !important;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.entity-list > .entity-list-item:hover {
  background-color: rgba(99, 102, 241, 0.05) !important;
}

/* Enhanced buttons with gradient on hover */
.button:not(.outline):hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-link) 100%) !important;
}

/* Modern tooltips */
[title] {
  position: relative;
}

/* Smooth transitions for all interactive elements */
a, button, .clickable {
  transition: all 0.2s ease;
}

/* Modern table styling */
table {
  border-radius: 12px;
  overflow: hidden;
}

/* Enhanced focus states */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Modern notification style */
.notification {
  border-radius: 12px !important;
  backdrop-filter: blur(10px);
}

/* Gradient text for headings */
h1, h2 {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-link) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Reset gradient for dark mode to maintain readability */
.dark-mode h1, .dark-mode h2 {
  background: none;
  -webkit-text-fill-color: inherit;
  color: inherit;
}

/* Modern progress bars */
.progress-bar {
  border-radius: 8px;
  overflow: hidden;
}

/* Enhanced dropdown menus */
.dropdown-menu {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  border: none !important;
}

/* Modern code blocks */
pre, code {
  border-radius: 8px !important;
}

/* Smooth image loading */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}
