/* ==========================================
   CORE.CSS - Foundation Styles & Components
   Optimized version with enhanced variables and utilities
   ========================================== */

/* ==========================================
   FONTS AND ENHANCED VARIABLES
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary-color: #278fff;
  --primary-hover: #1a6acc;
  --primary-light: rgba(39, 143, 255, 0.1);
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  
  /* Specialized Colors */
  --free-color: #28a745;
  --premium-color: #ffd700;
  --featured-color: #ff6b35;
  
  /* Text Colors */
  --text-color: #333;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #6c757d;
  --text-light: #9ca3af;
  
  /* Background Colors */
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --background-dark: #1a202c;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f3f4f6;
  
  /* Border Colors */
  --border-color: #e0e0e0;
  --border-light: #f1f5f9;
  --border-dark: #cbd5e1;
  --border-hover: #d1d5db;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
  --shadow-xl: 0 16px 32px rgba(0,0,0,0.2);
  
  /* Border Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  
  /* Font Sizes */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-lg: 1.125rem;  /* 18px */
  --text-xl: 1.25rem;   /* 20px */
  --text-2xl: 1.5rem;   /* 24px */
  --text-3xl: 1.875rem; /* 30px */
  --text-4xl: 2.25rem;  /* 36px */
  --text-6xl: 3.75rem;  /* 60px */
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1070;
}

/* ==========================================
   BASE RESET AND TYPOGRAPHY
   ========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}


/* ==========================================
   LAYOUT COMPONENTS
   ========================================== */

.bk-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.bk-container-sm { max-width: 640px; }
.bk-container-md { max-width: 768px; }
.bk-container-lg { max-width: 1024px; }
.bk-container-xl { max-width: 1280px; }

.bk-page-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ==========================================
   GRID SYSTEM
   ========================================== */

.bk-grid {
  display: grid;
  gap: var(--space-6);
}

.bk-grid-1 { grid-template-columns: 1fr; }
.bk-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bk-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bk-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bk-grid-5 { grid-template-columns: repeat(5, 1fr); }
.bk-grid-6 { grid-template-columns: repeat(6, 1fr); }

.bk-grid-auto-fit { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bk-grid-auto-fill { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ==========================================
   FLEX UTILITIES
   ========================================== */

.bk-flex {
  display: flex;
}

.bk-flex-col {
  display: flex;
  flex-direction: column;
}

.bk-flex-wrap { flex-wrap: wrap; }
.bk-flex-nowrap { flex-wrap: nowrap; }

.bk-items-start { align-items: flex-start; }
.bk-items-center { align-items: center; }
.bk-items-end { align-items: flex-end; }
.bk-items-stretch { align-items: stretch; }

.bk-justify-start { justify-content: flex-start; }
.bk-justify-center { justify-content: center; }
.bk-justify-end { justify-content: flex-end; }
.bk-justify-between { justify-content: space-between; }
.bk-justify-around { justify-content: space-around; }

.bk-gap-1 { gap: var(--space-1); }
.bk-gap-2 { gap: var(--space-2); }
.bk-gap-3 { gap: var(--space-3); }
.bk-gap-4 { gap: var(--space-4); }
.bk-gap-5 { gap: var(--space-5); }
.bk-gap-6 { gap: var(--space-6); }
.bk-gap-8 { gap: var(--space-8); }

/* ==========================================
   BUTTON SYSTEM
   ========================================== */

.bk-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 40px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.bk-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(39, 143, 255, 0.2);
}

.bk-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Button Variants */
.bk-btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: white;
  border: 1px solid var(--primary-color);
  margin: var(--space-2) auto;
}

.bk-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover), #004085);
  box-shadow: 0 4px 12px rgba(39, 143, 255, 0.3);
}

.bk-btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), #5a6268);
  color: white;
  border: 1px solid var(--secondary-color);
}

.bk-btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a6268, #495057);
  box-shadow: var(--shadow-md);
}

.bk-btn-outline {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.bk-btn-outline:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.bk-btn-ghost {
  background: transparent;
  color: var(--primary-color);
  box-shadow: none;
  border: 1px solid transparent;
}

.bk-btn-ghost:hover:not(:disabled) {
  background: var(--primary-light);
  border-color: var(--primary-color);
}

.bk-btn-success {
  background: linear-gradient(135deg, var(--success-color), #20c997);
  color: white;
  border: 1px solid var(--success-color);
}

.bk-btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #1e7e34, var(--success-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.bk-btn-warning {
  background: var(--warning-color);
  color: #856404;
}

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

/* Button Sizes */
.bk-btn-xs {
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
  min-height: 24px;
  letter-spacing: 0.25px;
}

.bk-btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  min-height: 32px;
  letter-spacing: 0.25px;
}

.bk-btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  min-height: 56px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
}

.bk-btn-lg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.bk-btn-lg:hover::before {
  left: 100%;
}

.bk-btn-lg:hover:not(:disabled) {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bk-btn-primary.bk-btn-lg {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  box-shadow: 0 4px 16px rgba(39, 143, 255, 0.25);
}

.bk-btn-primary.bk-btn-lg:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #004085 100%);
  box-shadow: 0 8px 32px rgba(39, 143, 255, 0.35);
}

.bk-btn-secondary.bk-btn-lg {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #5a6268 100%);
  box-shadow: 0 4px 16px rgba(108, 117, 125, 0.25);
}

.bk-btn-secondary.bk-btn-lg:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
  box-shadow: 0 8px 32px rgba(108, 117, 125, 0.35);
}

.bk-btn-outline.bk-btn-lg {
  background: white;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.bk-btn-outline.bk-btn-lg:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 8px 32px rgba(39, 143, 255, 0.25);
}

/* Enhanced Button Icons */
.bk-btn i {
  margin-right: var(--space-2);
  font-size: 1em;
  vertical-align: middle;
}

.bk-btn-lg i {
  margin-right: var(--space-3);
  font-size: 1.125em;
}

/* Button Groups */
.bk-btn-group {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.bk-btn-group .bk-btn {
  flex: 1;
  min-width: 140px;
}

/* Floating Action Buttons */
.bk-btn-floating {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-fixed);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.bk-btn-floating:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.bk-btn-floating i {
  margin: 0;
  font-size: 1.5rem;
}

/* Loading State */
.bk-btn-loading {
  pointer-events: none;
  opacity: 0.8;
}

.bk-btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Button Animations */
.bk-btn-pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.bk-btn-bounce {
  animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Responsive Button Styles */
@media (max-width: 768px) {
  .bk-btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .bk-btn-group .bk-btn {
    width: 100%;
    min-width: auto;
  }
  
  .bk-btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
    min-height: 48px;
  }
  
  .bk-btn-floating {
    bottom: var(--space-6);
    right: var(--space-6);
    width: 56px;
    height: 56px;
  }
}

/* ==========================================
   QUICK NAVIGATION - OPENAI STYLE
   ========================================== */

.bk-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: var(--space-4);
  border: 1px solid #e5e7eb;
  flex-wrap: wrap;
  justify-content: center;
}

.bk-nav-link {
  color: #374151;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  background: white;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bk-nav-link:hover {
  background: #f3f4f6;
  color: #1f2937;
  border-color: #d1d5db;
}

.bk-nav-link i {
  font-size: 16px;
  width: 16px;
  text-align: center;
  color: #6b7280;
}

.bk-nav-link:hover i {
  color: #374151;
}

/* Responsive adjustments for quick nav */
@media (max-width: 768px) {
  .bk-quick-nav {
    padding: 12px 16px;
    gap: 6px;
  }
  
  .bk-nav-link {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .bk-nav-link i {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .bk-quick-nav {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }
  
  .bk-nav-link {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   QUICK ACTIONS - OPENAI STYLE
   ========================================== */

.bk-quick-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.bk-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s ease;
  min-width: 120px;
  text-align: center;
}

.bk-quick-action:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bk-quick-action i {
  font-size: 20px;
  color: #6b7280;
  transition: color 0.2s ease;
}

.bk-quick-action:hover i {
  color: #374151;
}

.bk-quick-action span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

/* Enhanced styles for button-style quick actions */
.bk-quick-actions .bk-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  min-width: 140px;
  justify-content: center;
}

.bk-quick-actions .bk-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bk-quick-actions .bk-btn i {
  font-size: 18px;
}

/* Responsive design */
@media (max-width: 768px) {
  .bk-quick-actions {
    gap: 12px;
    margin: 24px 0;
  }
  
  .bk-quick-action {
    min-width: 100px;
    padding: 12px 16px;
  }
  
  .bk-quick-action i {
    font-size: 18px;
  }
  
  .bk-quick-action span {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .bk-quick-actions {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .bk-quick-action {
    width: 100%;
    max-width: 200px;
    min-width: auto;
  }
  
  .bk-quick-actions .bk-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ==========================================
   LIBRARY HEADER - OPENAI STYLE
   ========================================== */

.bk-library-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0;
  margin-bottom: 5px;
}

.bk-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 32px;
}

.bk-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bk-page-title {
  font-size: 28px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}

.bk-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

/* Cart Widget */
.bk-cart-widget {
  display: flex;
  align-items: center;
}

.bk-cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
}

.bk-cart-link:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.bk-cart-count {
  background: #dc2626;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  line-height: 1;
}

.bk-cart-text {
  font-size: 14px;
}

/* User Status */
.bk-user-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.bk-access-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bk-access-premium {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.bk-access-free {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.bk-access-basic {
  background: #e5e7eb;
  color: #374151;
  border: 1px solid #9ca3af;
}

/* Quota Status */
.bk-quota-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 160px;
}

.bk-quota-text {
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.bk-quota-bar {
  width: 100%;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}

.bk-quota-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  transition: width 0.3s ease;
}

.bk-quota-reminder {
  font-size: 11px;
  color: #9ca3af;
  text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bk-library-header {
    padding: 16px 0;
    margin-bottom: 24px;
  }
  
  .bk-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 0 16px;
  }
  
  .bk-page-title {
    font-size: 24px;
  }
  
  .bk-subtitle {
    font-size: 14px;
  }
  
  .bk-user-status {
    align-items: flex-start;
    width: 100%;
  }
  
  .bk-quota-status {
    min-width: auto;
    width: 100%;
    align-items: flex-start;
  }
  
  .bk-quota-text {
    text-align: left;
  }
  
  .bk-quota-reminder {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .bk-header-content {
    padding: 0 12px;
  }
  
  .bk-page-title {
    font-size: 22px;
  }
  
  .bk-cart-link {
    padding: 10px 12px;
  }
  
  .bk-cart-text {
    font-size: 12px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .bk-btn-outline {
    background: #1e293b;
    color: #60a5fa;
    border-color: #60a5fa;
  }
  
  .bk-btn-outline:hover:not(:disabled) {
    background: #60a5fa;
    color: #1e293b;
  }
  
  .bk-btn-ghost {
    color: #60a5fa;
  }
  
  .bk-btn-ghost:hover:not(:disabled) {
    background: rgba(96, 165, 250, 0.1);
    border-color: #60a5fa;
  }
}

/* Accessibility Improvements */
.bk-btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .bk-btn,
  .bk-btn::before,
  .bk-btn-floating {
    transition: none;
    animation: none;
  }
  
  .bk-btn:hover:not(:disabled),
  .bk-btn-floating:hover:not(:disabled) {
    transform: none;
  }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  .bk-btn {
    border-width: 2px;
    font-weight: 700;
  }
  
  .bk-btn-outline {
    border-width: 3px;
  }
}

/* ==========================================
   DASHBOARD WIDGETS - OPENAI STYLE
   ========================================== */

/* Dashboard Widgets Container */
.bk-dashboard-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

/* Base Widget Styles */
.bk-widget {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bk-widget:hover {
  border-color: #d1d5db;
}

.bk-widget h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bk-widget h3 i {
  font-size: 16px;
  color: #6b7280;
}

/* Stats Widget */
.bk-stats-widget .bk-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.bk-quick-stat {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.bk-quick-stat:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.bk-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 4px;
  line-height: 1;
}

/* Actions Widget */
.bk-actions-widget .bk-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.bk-actions-widget .bk-quick-action {
  flex-direction: column;
  padding: 16px;
  text-align: center;
  gap: 8px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 80px;
  justify-content: center;
}

.bk-actions-widget .bk-quick-action:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bk-actions-widget .bk-quick-action i {
  font-size: 20px;
  color: #6b7280;
  margin-bottom: 4px;
}

.bk-actions-widget .bk-quick-action:hover i {
  color: #374151;
}

.bk-actions-widget .bk-quick-action span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

/* Recent Books Widget */
.bk-recent-widget .bk-recent-books {
  display: grid;
  gap: 12px;
}

.bk-recent-book {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.bk-recent-book:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bk-recent-cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bk-recent-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bk-recent-placeholder {
  color: #9ca3af;
  font-size: 20px;
}

.bk-recent-info {
  flex: 1;
  min-width: 0;
}

.bk-recent-info h4 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bk-recent-info p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Widget Link */
.bk-widget-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.bk-widget-link:hover {
  color: #2563eb;
  transform: translateX(2px);
}

.bk-widget-link i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.bk-widget-link:hover i {
  transform: translateX(2px);
}

/* Responsive Design for Widgets */
@media (max-width: 768px) {
  .bk-dashboard-widgets {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
  }
  
  .bk-widget {
    padding: 16px;
  }
  
  .bk-stats-widget .bk-quick-stats {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
  }
  
  .bk-actions-widget .bk-quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bk-recent-book {
    padding: 12px;
  }
  
  .bk-recent-cover {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .bk-actions-widget .bk-quick-actions {
    grid-template-columns: 1fr;
  }
  
  .bk-stats-widget .bk-quick-stats {
    grid-template-columns: 1fr;
  }
}