﻿/*
 * LocalScout Custom Theme
 * Overrides Bootstrap and AdminLTE defaults with your new color palette.
 * Palette: #F9F7F7, #DBE2EF, #3F72AF, #112D4E
 */

:root {
  --color-primary: #3f72af; /* Medium Blue */
  --color-primary-dark: #112d4e; /* Dark Navy Blue */
  --color-primary-light: #dbe2ef; /* Light Blue-Lavender */
  --color-background: #f9f7f7; /* Almost White */
  --color-text-light: #f9f7f7;
  --color-text-dark: #112d4e;
  --color-secondary: #495057; /* Neutral gray */
  --navbar-height: 57px; /* Fixed navbar height */
}

/* --- Main Layout Navbar Styles --- */

/* Navbar Brand */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-brand .text-primary {
  color: var(--color-primary) !important;
}

/* Home Button in Main Layout */
.navbar-nav .btn-primary {
  margin-right: 0.5rem;
  padding: 0.375rem 1rem;
  font-weight: 500;
  border-radius: 0.25rem;
}

.navbar-nav .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(63, 114, 175, 0.3);
}

/* Navbar Links */
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
  margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(63, 114, 175, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
}

.navbar-nav .nav-link i {
  font-size: 1.5rem;
}

/* Account Dropdown Button */
.navbar-nav .btn-outline-primary.dropdown-toggle {
  padding: 0.375rem 1rem;
  font-weight: 500;
  border-width: 2px;
}

.navbar-nav .btn-outline-primary.dropdown-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(63, 114, 175, 0.3);
}

/* User Profile Dropdown Link */
.navbar-nav .nav-link.dropdown-toggle {
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.navbar-nav .nav-link.dropdown-toggle:hover {
  color: var(--color-primary);
  background-color: rgba(63, 114, 175, 0.1);
  border-radius: 0.25rem;
}

/* Main Layout Search Bar */
.navbar .input-group .form-control {
  border: 1px solid var(--color-primary-light);
  border-right: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.navbar .input-group .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(63, 114, 175, 0.15);
  outline: none;
}

.navbar .input-group .btn-primary {
  border: 1px solid var(--color-primary);
  padding: 0.5rem 1.25rem;
}

/* Sticky Navbar Shadow */
.navbar.sticky-top {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Mobile Navbar Toggle */
.navbar-toggler {
  border-color: var(--color-primary-light);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(63, 114, 175, 0.25);
}

/* Dropdown Menu Styling for Main Layout */
.navbar .dropdown-menu {
  border: 1px solid var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.navbar .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
  background-color: rgba(63, 114, 175, 0.1);
  color: var(--color-primary);
}

/* Footer Styles */
footer {
  background-color: var(--color-background);
}

footer h5,
footer h6 {
  color: var(--color-primary-dark);
  font-weight: 600;
}

footer a {
  transition: all 0.2s ease;
}

footer a:hover {
  color: var(--color-primary) !important;
}

footer .btn-outline-secondary {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

footer .btn-outline-secondary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar .input-group {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .navbar-nav .nav-link {
    margin: 0.25rem 0;
  }
}

/* --- AdminLTE Dashboard Styles --- */

/* Main Sidebar (Dark) */
.main-sidebar.sidebar-dark-primary {
  background-color: var(--color-primary-dark);
}

/* Brand Link Styling - Fixed Height to Match Navbar */
.brand-link {
  background-color: var(--color-primary-dark) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: var(--navbar-height) !important;
  min-height: var(--navbar-height) !important;
  max-height: var(--navbar-height) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0.5rem 1rem !important;
  line-height: 1 !important;
}

.brand-link .brand-image {
  opacity: 1 !important;
  max-height: 30px !important;
  height: 30px !important;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

.brand-link .brand-text {
  color: #ffffff !important;
  font-weight: 400 !important;
  margin-left: 0.5rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.brand-link:hover .brand-text {
  color: var(--color-primary-light) !important;
}

/* Sidebar Active Links */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
  background-color: var(--color-primary);
}

/* Dashboard Top Navbar - Fixed Height with True Center Layout */
.main-header.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-primary-light);
  height: var(--navbar-height) !important;
  min-height: var(--navbar-height) !important;
  max-height: var(--navbar-height) !important;
  padding: 0.5rem 1rem !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

/* Dashboard Statistics Cards */
.dashboard-stat-number {
  font-size: 2.5rem !important;
  font-weight: 700;
  line-height: 1.2;
}

/* Left section - hamburger menu */
.main-header .navbar-nav:first-child {
  flex: 0 0 auto;
  z-index: 2;
}

/* Center Search Bar Container - Absolute Center */
.main-header .mx-auto {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  max-height: 45px !important;
  margin: 0 !important;
  width: 500px !important;
  max-width: calc(100% - 300px) !important;
  z-index: 1;
}

/* Right section - notifications and login */
.main-header .navbar-nav.ml-auto {
  flex: 0 0 auto;
  margin-left: auto !important;
  z-index: 2;
}

.main-header .navbar-nav {
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  display: flex;
}

.main-header .nav-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.main-header .nav-link {
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  height: 100%;
}

.main-header .nav-link:hover {
  color: var(--color-primary);
}

/* Push Menu Button (Hamburger) */
.main-header .nav-link.text-primary {
  color: var(--color-primary) !important;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
}

.main-header .nav-link.text-primary:hover {
  color: var(--color-primary-dark) !important;
}

.main-header .mx-auto form {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.main-header .mx-auto .relative {
  position: relative !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.main-header .mx-auto input[type="search"] {
  height: 40px !important;
  line-height: 40px !important;
  padding-left: 2.5rem !important;
  padding-right: 3rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.main-header .mx-auto button[type="submit"] {
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Search icon positioning */
.main-header .mx-auto .absolute.left-0 {
  left: 0 !important;
  padding-left: 0.75rem !important;
}

.main-header .mx-auto .absolute.right-0 {
  right: 0 !important;
  padding-right: 0.5rem !important;
}

/* Responsive Dashboard Search Bar */
@media (max-width: 991.98px) {
  .main-header .mx-auto {
    width: 400px !important;
    max-width: calc(100% - 200px) !important;
  }
}

@media (max-width: 767.98px) {
  .main-header .mx-auto {
    display: none !important;
  }
}

/* --- Sidebar User Panel Styling --- */
.user-panel .image img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: cover;
}

.user-panel .info a {
  color: #c2c7d0;
  transition: color 0.3s ease;
  text-decoration: none;
}

.user-panel .info a:hover {
  color: #ffffff;
}

/* --- Navbar Dropdown Styling --- */
.dropdown-item-form {
  padding: 0;
  margin: 0;
}

.dropdown-item-form button {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: #212529;
}

.dropdown-item-form button:hover {
  background-color: #f8f9fa;
  color: #16181b;
}

/* --- Bootstrap Overrides --- */

body {
  background-color: var(--color-background);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Buttons */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-light);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-light);
  box-shadow: 0 4px 8px rgba(17, 45, 78, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(17, 45, 78, 0.3);
}

/* Outline Primary Buttons */
.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(63, 114, 175, 0.3);
}

.btn-outline-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(63, 114, 175, 0.3);
}

/* Secondary Buttons */
.btn-secondary {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #343a40;
  border-color: #343a40;
  box-shadow: 0 4px 8px rgba(52, 58, 64, 0.3);
}

/* Outline Secondary Buttons */
.btn-outline-secondary {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #ffffff;
}

/* Button Sizes */
.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
}

/* Links */
a {
  color: var(--color-primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Focus States */
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-outline-primary:focus,
.btn-outline-secondary:focus {
  box-shadow: 0 0 0 0.2rem rgba(63, 114, 175, 0.25);
}

/* --- Content Wrapper Spacing Fix --- */
/* Reset AdminLTE's default margin-top completely */
body.hold-transition.sidebar-mini.layout-fixed.layout-navbar-fixed
  .wrapper
  .content-wrapper,
body.layout-navbar-fixed.layout-fixed .wrapper .content-wrapper,
body.layout-navbar-fixed .wrapper .content-wrapper,
.layout-navbar-fixed .wrapper .content-wrapper,
.layout-navbar-fixed.layout-fixed .wrapper .content-wrapper,
.content-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: calc(100vh - var(--navbar-height)) !important;
}

/* Content section padding */
.content-wrapper > .content {
  padding: 0.75rem 1rem !important;
}

.content-wrapper > .content.p-3 {
  padding: 0.75rem 1rem !important;
}

/* Remove extra padding from content-header if present */
.content-header {
  padding: 0.5rem 1rem !important;
  margin-bottom: 0.5rem !important;
}

/* First row/element spacing */
.content-wrapper .content > .container-fluid > .row:first-child,
.content-wrapper .content > .container-fluid > .alert:first-child,
.content-wrapper .content > .container-fluid > .card:first-child,
.content-wrapper .content > .container-fluid > div:first-child {
  margin-top: 0 !important;
}

/* Fix main-sidebar top position for fixed navbar */
.layout-navbar-fixed .wrapper .main-sidebar {
  margin-top: 0 !important;
}

/* ================================================================== */
/* SIDEBAR UX IMPROVEMENTS                                            */
/* ================================================================== */

/* --- User Panel Enhancements --- */
.user-panel .user-name {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.user-panel .user-name:hover {
  color: var(--color-primary-light);
}

/* Online Status Indicator */
.user-status-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-dark);
}

.user-status-indicator.online {
  background-color: #28a745;
}

.user-status-indicator.offline {
  background-color: #6c757d;
}

/* Role Badges */
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Center text */
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 3px;
  min-width: 80px; /* Optional: Ensure consistent width for centering effect if desired */
  text-align: center;
}

/* Use high specificity to override .navbar-nav .nav-link i (1.5rem) */
.navbar-nav .nav-link .role-badge i {
  font-size: 0.85em !important; /* Make icon slightly smaller than text */
  vertical-align: 0px;
}

.role-badge.role-admin {
  background-color: rgba(220, 53, 69, 0.2);
  color: #f8a5ad;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.role-badge.role-provider {
  background-color: rgba(63, 114, 175, 0.25);
  color: #a8c5e8;
  border: 1px solid rgba(63, 114, 175, 0.4);
}

.role-badge.role-user {
  background-color: rgba(40, 167, 69, 0.2);
  color: #8ed4a1;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Light Mode Badges (For White Navbar) */
.role-badge.light.role-admin {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545; /* Darker Red */
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.role-badge.light.role-provider {
  background-color: rgba(63, 114, 175, 0.1);
  color: #3f72af; /* Darker Blue */
  border: 1px solid rgba(63, 114, 175, 0.2);
}

.role-badge.light.role-user {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745; /* Darker Green */
  border: 1px solid rgba(40, 167, 69, 0.2);
}

/* --- Navigation Header Styling --- */
.sidebar-dark-primary .nav-header {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  /*  padding: 1rem 1rem 0.5rem 1rem;*/
}

/* --- Enhanced Nav Link States --- */
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link {
  transition: all 0.2s ease-in-out;
  border-left: 3px solid transparent;
  margin: 2px 0.5rem;
  border-radius: 4px;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link:hover {
  background-color: rgba(63, 114, 175, 0.2);
  border-left-color: rgba(255, 255, 255, 0.3);
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
  background-color: var(--color-primary);
  border-left-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Nav icon animations */
.sidebar-dark-primary .nav-sidebar .nav-link .nav-icon {
  transition: transform 0.2s ease;
}

.sidebar-dark-primary .nav-sidebar .nav-link:hover .nav-icon {
  transform: scale(1.1);
}

/* Treeview submenu styling */
.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link {
  transition: all 0.2s ease;
  margin-left: 0.5rem;
  border-radius: 4px;
}

.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  padding-left: 1.5rem;
}

.sidebar-dark-primary .nav-treeview > .nav-item > .nav-link.active {
  background-color: rgba(63, 114, 175, 0.3);
  color: #ffffff;
}

/* --- Sidebar Footer --- */
.sidebar-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-footer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-footer-btn:hover {
  color: #ffffff;
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-footer-btn i {
  font-size: 1rem;
}

/* Ensure sidebar has room for footer */
.sidebar {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--navbar-height));
  padding-bottom: 60px;
  overflow-y: auto;
}

.sidebar > nav {
  flex: 1;
}

/* ================================================================== */
/* NOTIFICATION DROPDOWN SYSTEM                                       */
/* ================================================================== */

/* --- Bell Icon Styling --- */
.notification-dropdown .nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
}

.notification-bell {
  font-size: 2rem;
  color: var(--color-secondary);
  transition: all 0.2s ease;
}

.notification-bell:hover {
  color: var(--color-primary);
}

/* Animated bell for new notifications */
.notification-bell.has-notifications {
  color: var(--color-primary);
  animation: bell-shake 2s ease infinite;
}

@keyframes bell-shake {
  0%,
  100% {
    transform: rotate(0);
  }
  5%,
  15% {
    transform: rotate(-10deg);
  }
  10%,
  20% {
    transform: rotate(10deg);
  }
  25% {
    transform: rotate(0);
  }
}

/* Badge styling */
.notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #dc3545, #c82333);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
}

/* --- Dropdown Panel --- */
.notification-panel {
  width: 360px;
  max-width: 95vw;
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  color: #fff;
}

.notification-header h6 {
  font-weight: 600;
  color: #fff;
}

.notification-header .btn-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.2s;
}

.notification-header .btn-link:hover {
  color: #fff;
  transform: scale(1.1);
}

/* --- Notification List --- */
.notification-list {
  max-height: 350px;
  overflow-y: auto;
  background: #fff;
}

.notification-loading,
.notification-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

/* --- Notification Item --- */
.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item:last-child {
  border-bottom: none;
}

/* Unread state */
.notification-item.unread {
  background-color: rgba(63, 114, 175, 0.05);
  border-left: 3px solid var(--color-primary);
}

.notification-item.unread .notification-title {
  font-weight: 600;
}

/* Icon */
.notification-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  color: #fff;
  font-size: 0.875rem;
}

.notification-icon.bg-primary {
  background: linear-gradient(135deg, #3f72af, #2d5a8a);
}
.notification-icon.bg-success {
  background: linear-gradient(135deg, #28a745, #1e7e34);
}
.notification-icon.bg-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
}
.notification-icon.bg-warning {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529;
}
.notification-icon.bg-info {
  background: linear-gradient(135deg, #17a2b8, #138496);
}
.notification-icon.bg-secondary {
  background: linear-gradient(135deg, #6c757d, #545b62);
}

/* Content */
.notification-content {
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem;
}

.notification-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #212529;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.notification-message {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.375rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
}

.notification-time {
  color: #adb5bd;
}

.notification-action {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.notification-action:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

/* Delete button */
.notification-delete {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: #adb5bd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.2s;
  cursor: pointer;
}

.notification-item:hover .notification-delete {
  opacity: 1;
}

.notification-delete:hover {
  background-color: #fee;
  color: #dc3545;
}

/* --- Footer --- */
.notification-footer {
  display: flex;
  justify-content: center;
  padding: 0.75rem;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.notification-footer .btn-link {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
}

.notification-footer .btn-link:hover {
  color: var(--color-primary-dark);
}

/* Scrollbar styling */
.notification-list::-webkit-scrollbar {
  width: 6px;
}

.notification-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.notification-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}
