 :root {
      --primary: #3b82f6;
      --primary-dark: #2563eb;
      --secondary: #10b981;
      --secondary-dark: #059669;
      --danger: #ef4444;
      --warning: #f59e0b;
      --success: #10b981;
      --background: #f9fafb;
      --card-bg: #ffffff;
      --text: #1f2937;
      --text-light: #6b7280;
    }
    
    body {
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      min-height: 100vh;
      color: var(--text);
    }
    
    .header {
      background: linear-gradient(to right, var(--primary), var(--secondary));
      color: white;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .card {
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
      overflow: hidden;
      position: relative;
    }
    
    .card::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 6px;
    }
    
    .card-fresh::before {
      background-color: var(--success);
    }
    
    .card-near::before {
      background-color: var(--warning);
    }
    
    .card-expired::before {
      background-color: var(--danger);
    }
    
    .card:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    }
    
    .btn-primary {
      background: linear-gradient(to right, var(--primary), var(--primary-dark));
      color: white;
      border: none;
      border-radius: 8px;
      padding: 10px 16px;
      font-weight: 600;
      transition: all 0.3s ease;
      box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    }
    
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 10px rgba(59, 130, 246, 0.3);
    }
    
    .btn-secondary {
      background: var(--card-bg);
      color: var(--primary);
      border: 1px solid #d1d5db;
      border-radius: 8px;
      padding: 8px 14px;
      font-weight: 500;
      transition: all 0.2s ease;
    }
    
    .btn-secondary:hover {
      background: #f3f4f6;
      border-color: var(--primary);
    }
    
    .status-badge {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
    }
    
    .status-fresh {
      background-color: rgba(16, 185, 129, 0.15);
      color: var(--success);
    }
    
    .status-near {
      background-color: rgba(245, 158, 11, 0.15);
      color: var(--warning);
    }
    
    .status-expired {
      background-color: rgba(239, 68, 68, 0.15);
      color: var(--danger);
    }
    
    .tag {
      display: inline-flex;
      align-items: center;
      background: #e0f2fe;
      color: var(--primary);
      border-radius: 20px;
      padding: 4px 12px;
      font-size: 0.85rem;
      margin: 2px;
      transition: all 0.2s ease;
      cursor: pointer;
    }
    
    .tag:hover {
      background: #dbeafe;
      transform: scale(1.05);
    }
    
    .tag.active {
      background: var(--primary);
      color: white;
    }
    
    .modal {
      animation: modalIn 0.3s ease-out;
      max-height: 90vh;
      overflow-y: auto;
    }
    
    @keyframes modalIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    .pagination-btn {
      width: 36px;
      height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      margin: 0 2px;
      border-radius: 8px;
      transition: all 0.2s ease;
    }
    
    .pagination-btn:hover:not(.disabled) {
      background: #e5e7eb;
    }
    
    .pagination-btn.active {
      background: var(--primary);
      color: white;
    }
    
    .pagination-btn.disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    
    .custom-select {
      position: relative;
      display: block;
      width: 100%;
    }
    
    .custom-select select {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      width: 100%;
      padding: 10px 40px 10px 14px;
      border: 1px solid #d1d5db;
      border-radius: 8px;
      background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 12px center;
      font-size: 0.9rem;
      transition: all 0.2s ease;
    }
    
    .custom-select select:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
      background-color: white;
    }
    
    .summary-card {
      background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
      border-radius: 12px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      padding: 16px;
    }
    
    .stats-container {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      overflow-x: auto;
    }
    
    .stat-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 10px;
      border-radius: 8px;
      background: #f3f4f6;
      cursor: pointer;
      transition: all 0.3s ease;
      min-width: 80px;
      flex: 1;
    }
    

    
    .stat-item.active {
      background: linear-gradient(135deg, #dbeafe, #e0f2fe);
      box-shadow: 0 4px 8px rgba(59, 130, 246, 0.2);
      border: 1px solid var(--primary);
    }
    
    .stat-number {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 4px;
    }
    
    .stat-fresh {
      color: var(--success);
    }
    
    .stat-near {
      color: var(--warning);
    }
    
    .stat-expired {
      color: var(--danger);
    }
    
    .action-buttons {
      display: flex;
      gap: 8px;
      margin-top: 12px;
    }
    
    .action-btn {
      flex: 1;
      padding: 6px;
      border-radius: 6px;
      font-size: 0.85rem;
      font-weight: 500;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }
    
    .edit-btn {
      background: rgba(245, 158, 11, 0.1);
      color: var(--warning);
    }
    
    .edit-btn:hover {
      background: rgba(245, 158, 11, 0.2);
    }
    
    .delete-btn {
      background: rgba(239, 68, 68, 0.1);
      color: var(--danger);
    }
    
    .delete-btn:hover {
      background: rgba(239, 68, 68, 0.2);
    }
    
    .empty-state {
      text-align: center;
      padding: 40px 20px;
      color: var(--text-light);
    }
    
    .empty-state i {
      font-size: 3rem;
      margin-bottom: 16px;
      color: #d1d5db;
    }
    
    .filter-section {
      background: white;
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }
    
    .date-input {
      position: relative;
    }
    
    .date-input i {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-light);
    }
    
    .tags-container {
      position: relative;
    }
    
    .tags-scroll {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      max-height: 40px;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }
    
    .tags-scroll.expanded {
      max-height: 200px;
      overflow-y: auto;
    }
    
    .toggle-tags {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: 8px;
      color: var(--primary);
      cursor: pointer;
      font-size: 0.9rem;
    }
    
    .tag-drag-handle {
      cursor: grab;
      margin-right: 4px;
      opacity: 0.6;
    }
    
    @media (max-width: 640px) {
      .stat-item {
        padding: 8px;
        min-width: 70px;
      }
      
      .stat-number {
        font-size: 1.2rem;
      }
    }
