/* Response365 Design System v0.03 */

/* ========== CSS Custom Properties (Variables) ========== */
:root {
  /* Primary Colors */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  
  /* Secondary Colors */
  --secondary-50: #f5f3ff;
  --secondary-100: #ede9fe;
  --secondary-200: #ddd6fe;
  --secondary-300: #c4b5fd;
  --secondary-400: #a78bfa;
  --secondary-500: #8b5cf6;
  --secondary-600: #7c3aed;
  --secondary-700: #6d28d9;
  --secondary-800: #5b21b6;
  --secondary-900: #4c1d95;
  
  /* Gray Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Status Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --info: #0ea5e9;
  --info-light: #e0f2fe;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  
  /* Spacing */
  --spacing-1: 0.25rem;  /* 4px */
  --spacing-2: 0.5rem;   /* 8px */
  --spacing-3: 0.75rem;  /* 12px */
  --spacing-4: 1rem;     /* 16px */
  --spacing-5: 1.25rem;  /* 20px */
  --spacing-6: 1.5rem;   /* 24px */
  --spacing-8: 2rem;     /* 32px */
  --spacing-10: 2.5rem;  /* 40px */
  --spacing-12: 3rem;    /* 48px */
  
  /* Shadow */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 4px 10px -4px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 8px 16px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.125rem;   /* 2px */
  --radius: 0.25rem;       /* 4px */
  --radius-md: 0.375rem;   /* 6px */
  --radius-lg: 0.5rem;     /* 8px */
  --radius-xl: 0.75rem;    /* 12px */
  --radius-2xl: 1rem;      /* 16px */
}

/* Global card and button styles */
.card {
  @apply bg-white dark:bg-gray-800 rounded-xl shadow-card dark:shadow-card-dark overflow-hidden transition-all duration-200;
}
.card:hover {
  @apply shadow-card-hover;
}
.card-header {
  @apply px-4 sm:px-5 py-3 sm:py-4 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between;
}
.card-body {
  @apply p-4 sm:p-5;
}
.card-title {
  @apply text-base font-semibold text-gray-800 dark:text-white flex items-center;
}
.card-title i {
  @apply text-primary-500 dark:text-primary-400 mr-2;
}
.card-footer {
  @apply px-4 sm:px-5 py-3 bg-gray-50 dark:bg-gray-800/40 border-t border-gray-200 dark:border-gray-700;
}

/* Form controls and inputs */
.form-control {
  @apply px-3 py-2 bg-white dark:bg-gray-800 border border-gray-300 dark:border-gray-600 rounded-lg shadow-sm placeholder-gray-400 dark:placeholder-gray-500 
  focus:outline-none focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400 focus:border-primary-500 dark:focus:border-primary-400 
  text-sm transition-colors duration-200;
}
.form-select {
  @apply pr-10 appearance-none form-control;
}
.form-label {
  @apply block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1;
}
.form-helper {
  @apply text-xs text-gray-500 dark:text-gray-400 mt-1;
}
.input-group {
  @apply relative flex items-stretch w-full;
}
.input-group-text {
  @apply flex items-center px-3 py-2 text-sm font-normal text-center bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300 border border-gray-300 dark:border-gray-600 rounded-l-lg;
}
.input-group .form-control {
  @apply rounded-l-none flex-1 min-w-0;
}

/* Button styles */
.btn {
  @apply inline-flex items-center justify-center px-4 py-2 border text-sm font-medium rounded-lg focus:outline-none focus:ring-2 focus:ring-offset-2 transition-all duration-200;
}
.btn-primary {
  @apply border-transparent bg-primary-600 hover:bg-primary-700 text-white focus:ring-primary-500 dark:focus:ring-offset-gray-800;
}
.btn-secondary {
  @apply border-transparent bg-secondary-600 hover:bg-secondary-700 text-white focus:ring-secondary-500 dark:focus:ring-offset-gray-800;
}
.btn-success {
  @apply border-transparent bg-green-600 hover:bg-green-700 text-white focus:ring-green-500 dark:focus:ring-offset-gray-800;
}
.btn-danger {
  @apply border-transparent bg-red-600 hover:bg-red-700 text-white focus:ring-red-500 dark:focus:ring-offset-gray-800;
}
.btn-warning {
  @apply border-transparent bg-yellow-500 hover:bg-yellow-600 text-white focus:ring-yellow-500 dark:focus:ring-offset-gray-800;
}
.btn-info {
  @apply border-transparent bg-blue-500 hover:bg-blue-600 text-white focus:ring-blue-500 dark:focus:ring-offset-gray-800;
}
.btn-outline-primary {
  @apply border-gray-300 dark:border-gray-600 text-primary-600 dark:text-primary-400 hover:bg-primary-50 dark:hover:bg-primary-900/20 hover:border-primary-300 dark:hover:border-primary-700 focus:ring-primary-500 dark:focus:ring-offset-gray-800;
}
.btn-outline {
  @apply border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 focus:ring-gray-500 dark:focus:ring-offset-gray-800;
}
.btn-sm {
  @apply px-3 py-1.5 text-xs;
}
.btn-lg {
  @apply px-6 py-2.5 text-base;
}
.btn-icon {
  @apply p-2 rounded-full text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700;
}

/* Badge styles */
.badge {
  @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium;
}
.badge-primary {
  @apply bg-primary-100 text-primary-800 dark:bg-primary-900/30 dark:text-primary-300;
}
.badge-secondary {
  @apply bg-secondary-100 text-secondary-800 dark:bg-secondary-900/30 dark:text-secondary-300;
}
.badge-success {
  @apply bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-300;
}
.badge-danger {
  @apply bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-300;
}
.badge-warning {
  @apply bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-300;
}
.badge-info {
  @apply bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-300;
}

/* Table styles */
.table {
  @apply min-w-full divide-y divide-gray-200 dark:divide-gray-700 border-collapse;
}
.table thead {
  @apply bg-gray-50 dark:bg-gray-800;
}
.table th {
  @apply px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider;
}
.table td {
  @apply px-6 py-4 text-sm whitespace-nowrap text-gray-600 dark:text-gray-300;
}
.table-hover tr {
  @apply transition-colors;
}
.table-hover tbody tr:hover {
  @apply bg-gray-50 dark:bg-gray-800/50;
}
.table-striped tbody tr:nth-child(odd) {
  @apply bg-gray-50 dark:bg-gray-800/50;
}

/* Alert styles */
.alert {
  @apply p-4 rounded-lg mb-4 text-sm;
}
.alert-success {
  @apply bg-green-50 text-green-800 dark:bg-green-900/20 dark:text-green-100;
}
.alert-danger {
  @apply bg-red-50 text-red-800 dark:bg-red-900/20 dark:text-red-100;
}
.alert-warning {
  @apply bg-yellow-50 text-yellow-800 dark:bg-yellow-900/20 dark:text-yellow-100;
}
.alert-info {
  @apply bg-blue-50 text-blue-800 dark:bg-blue-900/20 dark:text-blue-100;
}

/* Horizontal card with a stat and icon */
.stat-card {
  @apply flex items-center rounded-lg p-4 transition-all duration-300;
}
.stat-card i {
  @apply text-xl;
}
.stat-card-icon {
  @apply flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center text-white shadow-sm ml-auto transition-transform duration-300;
}
.card:hover .stat-card-icon {
  transform: scale(1.1);
}
.stat-card .title {
  @apply text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider;
}
.stat-card .value {
  @apply text-xl font-bold text-gray-900 dark:text-white mt-1;
}
.stat-progress {
  @apply h-1.5 w-full bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden mt-2;
}

/* Loading states */
.loading {
  @apply animate-pulse bg-gray-200 dark:bg-gray-700 rounded;
}
.loading-card {
  @apply p-4 rounded-lg animate-pulse;
}
.loading-text {
  @apply h-4 bg-gray-200 dark:bg-gray-700 rounded w-3/4 mb-4;
}
.loading-title {
  @apply h-6 bg-gray-200 dark:bg-gray-700 rounded w-1/2 mb-4;
}

/* Empty states */
.empty-state {
  @apply flex flex-col items-center justify-center text-center py-12;
}
.empty-state-icon {
  @apply w-16 h-16 rounded-full bg-gray-100 dark:bg-gray-800 flex items-center justify-center text-gray-400 dark:text-gray-500 mb-4;
}
.empty-state-icon i {
  @apply text-3xl;
}
.empty-state-title {
  @apply text-lg font-medium text-gray-900 dark:text-white mb-2;
}
.empty-state-text {
  @apply text-sm text-gray-500 dark:text-gray-400 mb-6 max-w-md;
}

/* Dropdown menus */
.dropdown-menu {
  @apply absolute z-10 mt-1 rounded-md shadow-lg bg-white dark:bg-gray-800 ring-1 ring-black ring-opacity-5 focus:outline-none divide-y divide-gray-100 dark:divide-gray-700 overflow-hidden min-w-48;
}
.dropdown-item {
  @apply block px-4 py-2 text-sm text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors;
}
.dropdown-item-icon {
  @apply mr-2 text-gray-400 group-hover:text-primary-500 dark:group-hover:text-primary-400;
}

/* Avatar styles */
.avatar {
  @apply rounded-full flex-shrink-0 object-cover;
}
.avatar-xs {
  @apply w-6 h-6;
}
.avatar-sm {
  @apply w-8 h-8;
}
.avatar-md {
  @apply w-10 h-10;
}
.avatar-lg {
  @apply w-12 h-12;
}
.avatar-xl {
  @apply w-14 h-14;
}

/* Responsive spacing utilities */
.section-spacing {
  @apply mb-4 sm:mb-6;
}
.content-spacing {
  @apply mx-4 sm:mx-6;
}

/* Sidebar refinements - use with sidebar-narrow class on the sidebar */
.sidebar-narrow {
  @apply w-56;
}
.sidebar-narrow + div {
  @apply lg:pl-56;
}
.sidebar-narrow .nav-label {
  @apply text-xs font-semibold text-gray-400 uppercase tracking-wider px-4 mt-6 mb-2;
}
.sidebar-narrow .nav-item {
  @apply flex items-center px-4 py-2 text-sm font-medium rounded-md transition-colors;
}
.sidebar-narrow .nav-item.active {
  @apply bg-gray-800 text-white;
}
.sidebar-narrow .nav-item:not(.active) {
  @apply text-gray-300 hover:bg-gray-700 hover:text-white;
}
.sidebar-narrow .nav-item i {
  @apply text-xl mr-3;
}

/* Fix for mobile bottom navbar */
.has-bottom-navbar {
  @apply pb-16;
}
.bottom-navbar {
  @apply fixed bottom-0 inset-x-0 bg-white dark:bg-gray-800 border-t border-gray-200 dark:border-gray-700 z-40;
}
.bottom-navbar-item {
  @apply flex flex-col items-center justify-center text-gray-500 dark:text-gray-400 hover:text-primary-500 dark:hover:text-primary-400;
}
.bottom-navbar-item.active {
  @apply text-primary-500 dark:text-primary-400;
}

/* Modal styles */
.modal {
  @apply fixed inset-0 z-50 overflow-y-auto;
}
.modal-backdrop {
  @apply fixed inset-0 bg-black bg-opacity-50 transition-opacity;
}
.modal-dialog {
  @apply bg-white dark:bg-gray-800 rounded-lg shadow-xl overflow-hidden max-w-lg mx-auto my-16 transform transition-all;
}
.modal-header {
  @apply px-6 py-4 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between;
}
.modal-title {
  @apply text-lg font-semibold text-gray-800 dark:text-white;
}
.modal-body {
  @apply px-6 py-4;
}
.modal-footer {
  @apply px-6 py-4 border-t border-gray-200 dark:border-gray-700 flex justify-end space-x-2;
}

/* Notification toast */
.toast {
  @apply fixed bottom-4 right-4 bg-white dark:bg-gray-800 shadow-lg rounded-lg p-4 max-w-xs z-50;
}
.toast-success {
  @apply border-l-4 border-green-500;
}
.toast-error {
  @apply border-l-4 border-red-500;
}
.toast-warning {
  @apply border-l-4 border-yellow-500;
}
.toast-info {
  @apply border-l-4 border-blue-500;
}

/* Tooltips */
.tooltip {
  @apply absolute invisible opacity-0 z-10 py-1 px-2 bg-gray-900 text-white text-xs rounded transition-opacity duration-300;
}
.has-tooltip:hover .tooltip {
  @apply visible opacity-100;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes slideInUp {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.slide-in-up {
  animation: slideInUp 0.3s ease-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Tab navigation */
.tabs {
  @apply flex border-b border-gray-200 dark:border-gray-700;
}
.tab {
  @apply py-2 px-4 text-sm font-medium hover:text-primary-600 dark:hover:text-primary-400 cursor-pointer;
}
.tab.active {
  @apply text-primary-600 dark:text-primary-400 border-b-2 border-primary-500 dark:border-primary-400;
}
.tab-content {
  @apply py-4;
}

/* Progress bar */
.progress {
  @apply overflow-hidden h-2 text-xs flex rounded bg-gray-200 dark:bg-gray-700;
}
.progress-bar {
  @apply flex flex-col justify-center text-center text-white whitespace-nowrap transition-all duration-500;
}
.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
}
.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}
@keyframes progress-bar-stripes {
  from { background-position: 1rem 0 }
  to { background-position: 0 0 }
}

/* Timeline */
.timeline {
  @apply relative ml-4 pl-6 border-l-2 border-gray-200 dark:border-gray-700;
}
.timeline-item {
  @apply relative mb-6;
}
.timeline-item:last-child {
  @apply mb-0;
}
.timeline-dot {
  @apply absolute w-4 h-4 rounded-full bg-primary-500 -left-8 top-1;
}
.timeline-content {
  @apply bg-white dark:bg-gray-800 rounded-lg shadow-sm p-4;
}
.timeline-date {
  @apply text-xs text-gray-500 dark:text-gray-400 mb-1;
}
.timeline-title {
  @apply text-sm font-medium text-gray-900 dark:text-white mb-2;
}
.timeline-body {
  @apply text-sm text-gray-600 dark:text-gray-300;
}

/* Grid card layouts */
.card-grid-2 {
  @apply grid grid-cols-1 md:grid-cols-2 gap-4 sm:gap-6;
}
.card-grid-3 {
  @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6;
}
.card-grid-4 {
  @apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6;
}

/* Specific CRM elements */
.contact-card {
  @apply flex items-center p-4 border-b border-gray-200 dark:border-gray-700 last:border-b-0;
}
.contact-info {
  @apply ml-4;
}
.contact-name {
  @apply text-sm font-medium text-gray-900 dark:text-white;
}
.contact-title {
  @apply text-xs text-gray-500 dark:text-gray-400;
}
.contact-email {
  @apply text-xs text-gray-600 dark:text-gray-300 flex items-center mt-1;
}
.contact-phone {
  @apply text-xs text-gray-600 dark:text-gray-300 flex items-center mt-1;
}

/* Activity feed */
.activity-feed {
  @apply space-y-4;
}
.activity-item {
  @apply flex;
}
.activity-icon {
  @apply flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center mr-4;
}
.activity-content {
  @apply flex-1;
}
.activity-header {
  @apply text-sm font-medium text-gray-900 dark:text-white;
}
.activity-time {
  @apply text-xs text-gray-500 dark:text-gray-400;
}
.activity-description {
  @apply text-sm text-gray-600 dark:text-gray-300 mt-1;
}

/* Chart Container Styles */
.chart-container {
  @apply h-64 w-full relative overflow-hidden rounded-lg bg-white dark:bg-gray-800 p-4 transition-all duration-300;
}

/* Metric Card Refinements */
.metric-card {
  @apply transition-all duration-300 border border-transparent hover:border-gray-200 dark:hover:border-gray-700;
}
.metric-card:hover {
  @apply transform-gpu -translate-y-1;
}

/* Fix dropdown display issues */
[x-cloak] {
  display: none !important;
}

/* Sidebar collapse functionality has been removed */

/* Menu System Fixes - Force menus with active children to stay open */
.menu-dropdown[data-active-parent="true"] > div,
.menu-dropdown:has([data-active-parent="true"]) > div {
  display: block !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: 1000px !important;
  transform: none !important;
  visibility: visible !important;
  overflow: visible !important;
}

/* Highlight active menu items */
.menu-dropdown[data-active-parent="true"] > button {
  background-color: var(--gray-900) !important;
  color: white !important;
}

/* Style for active child menu items */
.menu-dropdown[data-active-parent="true"] .menu-dropdown-toggle {
  background-color: var(--gray-800) !important;
  color: white !important;
}

/* Force active menu links to stay highlighted */
.menu-active-link,
.menu-active-link:hover,
a[data-active-link="true"],
a[data-active-link="true"]:hover {
  background-color: var(--gray-700) !important;
  color: white !important;
}

/* Special fix for ePress module links */
a[href*="/data-integration/publishing/epress/publication-types"].menu-active-link,
a[href*="/data-integration/publishing/epress/newspapers-magazines"].menu-active-link,
a[href*="/data-integration/publishing/epress/publishers"].menu-active-link,
a[href*="/data-integration/publishing/epress/subscriptions"].menu-active-link,
a[href*="/data-integration/publishing/epress/reports"].menu-active-link,
a[href*="/data-integration/publishing/epress/price-lists"].menu-active-link,
a[href*="/data-integration/publishing/epress/contracts"].menu-active-link,
a[href*="/data-integration/publishing/epress/catalog"].menu-active-link {
  background-color: var(--gray-700) !important;
  color: white !important;
}

/* ========== Intelligent Favorites System ========== */

/* Star Icon Base Styles */
.star-icon {
    transition: all 0.3s ease;
    font-size: 14px; /* Small star as requested */
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
}

/* Star States */
.star-new {
    color: #fbbf24; /* Yellow - newly favorited */
    opacity: 1;
    animation: pulse-star 2s infinite;
}

.star-reminder {
    color: #f59e0b; /* Amber - gentle reminder */
    opacity: 0.7;
    animation: gentle-bounce 3s infinite;
}

.star-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* Star Animations */
@keyframes pulse-star {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8;
    }
}

@keyframes gentle-bounce {
    0%, 100% { 
        transform: translateY(0); 
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-2px); 
        opacity: 0.9;
    }
}

/* Star Toggle Button */
.star-toggle {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.dark .star-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Menu Item Container */
.menu-item-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.menu-item-link {
    flex: 1;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Settings Menu Builder Star Styles */
.menu-builder-item .star-container {
    position: relative;
    margin-left: 8px;
    margin-right: 8px;
}

.menu-builder-item.is-favorite {
    background-color: rgba(251, 191, 36, 0.1);
    border-left: 3px solid #fbbf24;
}

.dark .menu-builder-item.is-favorite {
    background-color: rgba(251, 191, 36, 0.05);
    border-left-color: #f59e0b;
}

/* Heart Icon for Settings */
.heart-icon {
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.heart-icon:hover {
    transform: scale(1.1);
}

.heart-icon.mdi-heart {
    color: #ef4444;
}

.heart-icon.mdi-heart-outline {
    color: #9ca3af;
}

.dark .heart-icon.mdi-heart-outline {
    color: #6b7280;
}

/* Favorites Quick Access Bar */
.favorites-bar {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 8px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark .favorites-bar {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.favorites-bar .favorite-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.favorites-bar .favorite-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.favorites-bar .favorite-item i {
    margin-right: 6px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .star-icon {
        font-size: 12px;
    }
    
    .star-toggle {
        padding: 2px;
    }
    
    .favorites-bar {
        padding: 6px 12px;
    }
    
    .favorites-bar .favorite-item {
        padding: 4px 8px;
        font-size: 12px;
        margin-right: 4px;
    }
}

/* Accessibility */
.star-toggle:focus,
.heart-icon:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .star-new {
        color: #d97706;
    }
    
    .star-reminder {
        color: #b45309;
    }
    
    .star-toggle:hover {
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    .dark .star-toggle:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Print styles */
@media print {
    .star-icon,
    .star-toggle,
    .favorites-bar {
        display: none !important;
    }
}