  
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #f4f4f4;
      min-height: 100vh;
      padding: 20px;
      position: relative;
      overflow-x: hidden;
    }

    .background-pattern {
      display: none;
    }

    .container {
      max-width: 700px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    .header {
      text-align: center;
      color: #333;
      margin-bottom: 30px;
      animation: fadeInDown 0.8s ease;
    }

    .header h1 {
      font-size: 3em;
      margin-bottom: 10px;
      color: #4CAF50;
    }

    .header p {
      font-size: 1.1em;
      opacity: 0.9;
    }

    .card {
      background: white;
      padding: 30px;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      animation: fadeInUp 0.8s ease;
    }

    .search-container {
      position: relative;
      margin-bottom: 30px;
    }

    .input-group {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
    }

    input[type="text"] {
      flex: 1;
      padding: 15px 20px;
      border: 2px solid #e0e0e0;
      border-radius: 12px;
      font-size: 1em;
      transition: all 0.3s ease;
      outline: none;
    }

    input[type="text"]:focus {
      border-color: #4CAF50;
      box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    }

    button {
      padding: 15px 30px;
      background-color: #4CAF50;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 1em;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    button:hover {
      background-color: #45a049;
      transform: translateY(-2px);
    }

    button:active {
      transform: translateY(0);
    }

    .tabs {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
    }

    .tab {
      flex: 1;
      padding: 10px;
      background: #f5f5f5;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 0.9em;
    }

    .tab.active {
      background: #4CAF50;
      color: white;
    }

    #result {
      animation: slideIn 0.5s ease;
    }

    .product-header {
      display: flex;
      gap: 20px;
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 2px solid #f0f0f0;
    }

    #product-image {
      width: 120px;
      height: 120px;
      object-fit: cover;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .product-info {
      flex: 1;
    }

    .product-name {
      font-size: 1.5em;
      font-weight: 600;
      color: #333;
      margin-bottom: 10px;
    }

    .status-badge {
      display: inline-block;
      padding: 8px 16px;
      border-radius: 20px;
      font-weight: 600;
      font-size: 1.1em;
      margin-top: 10px;
    }

    .status-halal {
      background: #4CAF50;
      color: white;
    }

    .status-haram {
      background: #f44336;
      color: white;
    }

    .status-doubtful {
      background: #ff9800;
      color: white;
    }

    .status-unknown {
      background: #9e9e9e;
      color: white;
    }

    .info-section {
      margin-top: 20px;
    }

    .info-label {
      font-weight: 600;
      color: #666;
      margin-bottom: 8px;
      font-size: 0.9em;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .info-content {
      background: #f8f9fa;
      padding: 15px;
      border-radius: 10px;
      margin-bottom: 15px;
      line-height: 1.6;
    }

    .ingredient-list {
      list-style: none;
    }

    .ingredient-item {
      padding: 10px;
      margin: 5px 0;
      background: white;
      border-radius: 8px;
      border-left: 3px solid #4CAF50;
      transition: all 0.3s ease;
    }

    .ingredient-item:hover {
      transform: translateX(5px);
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .ingredient-item.warning {
      border-left-color: #ff9800;
      background: #fff5f5;
    }

    .ingredient-item.safe {
      border-left-color: #4CAF50;
    }

    .history-section {
      margin-top: 30px;
      padding-top: 20px;
      border-top: 2px solid #f0f0f0;
    }

    .history-item {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 12px;
      background: #f8f9fa;
      border-radius: 10px;
      margin-bottom: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .history-item:hover {
      background: #e9ecef;
      transform: translateX(5px);
    }

    .history-img {
      width: 50px;
      height: 50px;
      object-fit: cover;
      border-radius: 8px;
    }

    .history-info {
      flex: 1;
    }

    .history-name {
      font-weight: 600;
      color: #333;
    }

    .history-time {
      font-size: 0.8em;
      color: #999;
    }

    .loading {
      text-align: center;
      padding: 40px;
      color: #4CAF50;
    }

    .spinner {
      border: 3px solid #f3f3f3;
      border-top: 3px solid #4CAF50;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 1s linear infinite;
      margin: 0 auto 15px;
    }

    .hidden {
      display: none;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 15px;
      margin-top: 20px;
    }

    .stat-card {
      background: white;
      padding: 20px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .stat-number {
      font-size: 2em;
      font-weight: 700;
      color: #4CAF50;
    }

    .stat-label {
      font-size: 0.9em;
      color: #666;
      margin-top: 5px;
    }

    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateX(-20px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

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

    .clear-history {
      padding: 8px 16px;
      background: #ff4757;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.9em;
      float: right;
      transition: all 0.3s ease;
    }

    .clear-history:hover {
      background: #ff3838;
      transform: translateY(-2px);
    }
  