/* Carer Management System CSS */

:root {
  /* Professional Blue Color Palette */
  --primary-color: #1E3A8A;
  --primary-dark: #1E40AF;
  --primary-light: #1D4ED8;
  --secondary-color: #16A34A;
  --secondary-dark: #15803D;
  --accent-color: #DC2626;
  --light-color: #F8FAFC;
  --light-gray: #E2E8F0;
  --dark-color: #0F172A;
  --dark-accent: #334155;
  --text-color: #0F172A;
  --text-secondary: #334155;
  --border-color: #E2E8F0;
  --background-color: #F8FAFC;
  --success-color: #16A34A;
  --warning-color: #D97706;
  --error-color: #DC2626;
  --info-color: #0EA5E9;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --transition-standard: all 0.2s ease;
}

/* Mobile-First Base styles with Nunito Typography */
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Mobile-first container adjustments */
@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Modern Professional Header */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

/* Tablet and up */
@media (min-width: 768px) {
  .header {
    left: 280px;
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
}

.header.scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  height: 64px;
  background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 1.5rem;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1.1rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  background-color: rgba(30, 58, 138, 0.05);
}

.sidebar-toggle:hover {
  background-color: rgba(30, 58, 138, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:active {
  transform: scale(0.95);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Real-time Date and Time Display */
.header-datetime {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

.datetime-display {
  background: #1a202c;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(26, 32, 44, 0.3);
  transition: all 0.3s ease;
}

.datetime-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 32, 44, 0.4);
}

.date-text {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  font-family: 'Nunito', sans-serif;
}

.time-text {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: 'Nunito', sans-serif;
}

/* Modern Professional Logo with Enhanced Typography */
.logo {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  height: 70px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.logo i {
  font-size: 1.5rem;
  margin-right: 12px;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  background: rgba(255, 255, 255, 0.2);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.logo h1 {
  font-size: 1.1rem;
  margin: 0;
  color: white;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-family: 'Nunito', sans-serif;
}

/* Dropdown menus */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  padding: 10px;
  cursor: pointer;
  position: relative;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  justify-content: center;
  transition: all 0.3s ease;
  background-color: rgba(30, 58, 138, 0.05);
}

.dropdown-trigger:hover {
  background-color: rgba(30, 58, 138, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.dropdown-trigger:active {
  transform: scale(0.95);
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--error-color);
  color: white;
  font-size: 0.7rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.user-menu {
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
  border-radius: 12px;
  padding: 6px 16px 6px 6px;
  background-color: rgba(30, 58, 138, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(30, 58, 138, 0.1);
}

.user-menu:hover {
  background-color: rgba(30, 58, 138, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.user-menu:active {
  transform: scale(0.98);
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  margin-right: 12px;
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.user-menu:hover .user-avatar {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.user-name {
  margin-right: 5px;
  font-weight: 600;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.01em;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: white;
  min-width: 300px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  display: none;
  z-index: 1001;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transform-origin: top right;
}

.dropdown-menu.show {
  display: block;
  animation: dropdownFadeIn 0.25s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-header {
  padding: 10px 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  background-color: var(--background-color);
  font-size: 0.8rem;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.01em;
}

.dropdown-item {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  min-height: 40px;
  font-size: 0.8rem;
  font-family: 'Nunito', sans-serif;
}

.dropdown-item i {
  margin-right: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-size: 0.8rem;
  background-color: rgba(30, 58, 138, 0.05);
  border-radius: 5px;
  flex-shrink: 0;
}

.dropdown-item:hover {
  background-color: rgba(30, 58, 138, 0.05);
  border-left-color: var(--primary-color);
}

.dropdown-item:hover i {
  color: var(--primary-color);
  background-color: rgba(30, 58, 138, 0.1);
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 6px 0;
}

.dropdown-footer {
  padding: 14px 18px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(0, 0, 0, 0.01);
}

.dropdown-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-standard);
}

.dropdown-footer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Notification styles */
.notification-item {
  display: flex;
  align-items: center;
  padding: 0;
}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: rgba(52, 152, 219, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark-color);
}

.notification-time {
  font-size: 0.8rem;
  color: #777;
}

/* Modern Professional Sidebar with Nunito Typography */
.sidebar {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: white;
  width: 280px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 70px;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
}

.sidebar-nav-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 20px;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-nav-container::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav-container::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

.sidebar-nav-container::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav {
  padding: 0;
  list-style: none;
  margin: 20px 0;
}

.sidebar-nav li {
  padding: 0;
  margin-bottom: 4px;
  position: relative;
}

.sidebar-nav a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 8px 14px;
  transition: all 0.3s ease;
  border-radius: 0 6px 6px 0;
  margin: 0 10px 0 0;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.0);
}

.sidebar-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.sidebar-nav a:hover::before {
  opacity: 0.5;
}

.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-nav a.active::before {
  opacity: 1;
}

.sidebar-nav i {
  margin-right: 10px;
  width: 24px;
  height: 24px;
  text-align: center;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  transition: all 0.3s ease;
  color: white;
  flex-shrink: 0;
}

.sidebar-nav a:hover i {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.sidebar-nav a.active i {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Modern Sidebar section headers with Nunito Typography */
.sidebar-section {
  padding: 0 14px;
  margin: 20px 0 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  display: flex;
  align-items: center;
  font-family: 'Nunito', sans-serif;
}

.sidebar-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  margin-left: 10px;
}

/* Focus states for accessibility */
.sidebar-nav a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* Modern Sidebar user profile with Nunito Typography */
.sidebar-user {
  padding: 10px 14px;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-weight: 600;
  color: white;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
}

.sidebar-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.01em;
}

.sidebar-user-role {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  display: inline-block;
  font-family: 'Nunito', sans-serif;
}

.sidebar-user-actions {
  margin-left: 8px;
}

.sidebar-user-action {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.95rem;
}

.sidebar-user-action:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Subtle press feedback */
.sidebar-nav a:active {
  transform: translateY(1px);
}

/* Sidebar scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Mobile-First Main content */
.main-content {
  margin-left: 0;
  padding: 80px 1rem 1rem;
  min-height: calc(100vh - 60px);
  transition: var(--transition-standard);
  background-color: var(--background-color);
}

/* Tablet and up */
@media (min-width: 768px) {
  .main-content {
    margin-left: 280px;
    padding: 90px 1.5rem 1.5rem;
    min-height: calc(100vh - 70px);
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .main-content {
    padding: 90px 2rem 2rem;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  padding: 0.5rem 0 1.25rem;
  margin-bottom: 0.5rem;
  list-style: none;
  background-color: transparent;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #2980b9;
}

.breadcrumb-separator {
  margin: 0 0.75rem;
  color: #777;
}

.breadcrumb-current {
  color: #777;
  font-weight: 500;
}

/* Dashboard cards */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
  color: var(--dark-color);
}

.card-icon {
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-icon i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

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

.card-label {
  color: #777;
  font-size: 0.9rem;
}

/* Tables */
.table-container {
  overflow-x: auto;
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: var(--box-shadow);
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: var(--light-color);
  font-weight: 600;
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Forms */
.form-container {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  text-decoration: none;
}

.btn:hover {
  background-color: #2980b9;
  color: white;
}

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

.btn-secondary:hover {
  background-color: #27ae60;
}

.btn-danger {
  background-color: var(--accent-color);
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--dark-color);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1rem;
  transition: color 0.2s;
}

.btn-icon:hover {
  color: var(--primary-color);
}


/* Utilities */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Mobile-First Responsive Design */

/* Mobile styles (default) */
.sidebar {
  transform: translateX(-100%);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1010;
  width: 280px;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-toggle {
  display: flex;
  margin-right: 15px;
}

.dashboard-cards {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.user-name {
  display: none;
}

.user-menu {
  padding: 0;
  background-color: transparent;
  border: none;
}

.dropdown-menu {
  min-width: 280px;
  right: -10px;
}

.card {
  padding: 1rem;
}

/* Mobile datetime adjustments */
@media (max-width: 767px) {
  .header-datetime {
    padding: 0 0.5rem;
  }
  
  .datetime-display {
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }
  
  .date-text {
    font-size: 0.65rem;
    padding-right: 0.5rem;
  }
  
  .time-text {
    font-size: 0.75rem;
  }
}


/* Tablet and up */
@media (min-width: 768px) {
  .sidebar {
    transform: translateX(0);
    width: 280px;
  }
  
  .sidebar-toggle {
    display: none;
  }
  
  .dashboard-cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .user-name {
    display: block;
    max-width: 80px;
  }
  
  .user-menu {
    padding: 6px 18px 6px 6px;
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .date-text {
    font-size: 0.8rem;
  }
  
  .time-text {
    font-size: 0.9rem;
  }
}

/* Desktop and up */
@media (min-width: 992px) {
  .sidebar {
    width: 280px;
  }
  
  .dashboard-cards {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .user-name {
    max-width: 140px;
  }
  
  .date-text {
    font-size: 0.85rem;
  }
  
  .time-text {
    font-size: 0.95rem;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .date-text {
    font-size: 0.85rem;
  }
  
  .time-text {
    font-size: 0.95rem;
  }
}

/* Modern Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 0.5rem;
  transition: all 0.3s ease;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  position: relative;
  flex: 1;
}

.mobile-bottom-nav .nav-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 4px;
  background-color: transparent;
  transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item i {
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item span {
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item.active {
  color: var(--primary-color);
}

.mobile-bottom-nav .nav-item.active .nav-icon {
  background-color: rgba(30, 58, 138, 0.1);
}

.mobile-bottom-nav .nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 0 0 3px 3px;
}

.mobile-bottom-nav .nav-item:active .nav-icon {
  transform: scale(0.9);
  background-color: rgba(30, 58, 138, 0.15);
}

/* Modern Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
  display: flex;
  opacity: 1;
}

.mobile-menu {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.mobile-menu-overlay.show .mobile-menu {
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--background-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-menu-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-menu {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: rgba(30, 58, 138, 0.05);
}

.close-menu:active {
  background-color: rgba(30, 58, 138, 0.1);
  transform: scale(0.95);
}

.mobile-menu-content {
  padding: 0.5rem 0 2rem;
}

.mobile-menu-section {
  padding: 1rem 1.5rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  min-height: 56px;
}

.menu-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: rgba(30, 58, 138, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  transition: all 0.2s ease;
}

.menu-item-icon i {
  font-size: 1.1rem;
  color: var(--primary-color);
  transition: all 0.2s ease;
}

.mobile-menu-item span {
  font-weight: 500;
  font-size: 0.95rem;
}

.mobile-menu-item:active {
  background-color: rgba(30, 58, 138, 0.05);
}

.mobile-menu-item:active .menu-item-icon {
  background-color: rgba(30, 58, 138, 0.1);
  transform: scale(0.95);
}

/* Enhanced Recent Activities Styling */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.activity-item:hover {
  background: rgba(30, 58, 138, 0.05);
  border-color: rgba(30, 58, 138, 0.1);
  transform: translateY(-1px);
}

.activity-item.activity-green {
  border-left: 3px solid var(--success-color);
}

.activity-item.activity-blue {
  border-left: 3px solid var(--primary-color);
}

.activity-item.activity-red {
  border-left: 3px solid var(--error-color);
}

.activity-item.activity-purple {
  border-left: 3px solid #9333ea;
}

.activity-item.activity-orange {
  border-left: 3px solid var(--warning-color);
}

.activity-item.activity-teal {
  border-left: 3px solid #14b8a6;
}

.activity-item.activity-indigo {
  border-left: 3px solid #6366f1;
}

.activity-item.activity-gray {
  border-left: 3px solid #6b7280;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.activity-icon.green {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success-color);
}

.activity-icon.blue {
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary-color);
}

.activity-icon.red {
  background: rgba(220, 38, 38, 0.1);
  color: var(--error-color);
}

.activity-icon.purple {
  background: rgba(147, 51, 234, 0.1);
  color: #9333ea;
}

.activity-icon.orange {
  background: rgba(217, 119, 6, 0.1);
  color: var(--warning-color);
}

.activity-icon.teal {
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

.activity-icon.indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.activity-icon.gray {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-family: 'Nunito', sans-serif;
  line-height: 1.3;
}

.activity-details {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  font-family: 'Nunito', sans-serif;
  line-height: 1.3;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: 'Nunito', sans-serif;
  opacity: 0.8;
}

/* Mobile responsiveness for activities */
@media (max-width: 768px) {
  .activity-item {
    padding: 0.5rem;
  }
  
  .activity-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }
  
  .activity-title {
    font-size: 0.8rem;
  }
  
  .activity-details {
    font-size: 0.75rem;
  }
  
  .activity-time {
    font-size: 0.7rem;
  }
}