 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #08859B;
            --primary-dark: #066d7e;
            --accent: #F8BE2E;
            --danger: #ef4444;
            --dark: #1f2937;
            --light: #f9fafb;
            --gray: #6b7280;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --radius: 1rem;
            --transition: all 0.2s ease;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
            color: var(--dark);
            padding: 1.5rem;
            margin: 0;
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
        }

        .card {
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
        }

        .card-header {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            padding: 1.5rem;
            color: white;
        }

        .card-header h1 {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
        }

        .card-header p {
            opacity: 0.9;
            font-size: 0.95rem;
        }

        .textarea-container {
            padding: 1.5rem;
        }

        textarea {
            width: 100%;
            min-height: 200px;
            padding: 1rem;
            font-size: 1rem;
            font-family: 'Courier New', monospace;
            border: 2px solid #e5e7eb;
            border-radius: 0.75rem;
            resize: vertical;
            transition: var(--transition);
        }

        textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(8, 133, 155, 0.1);
        }

        .options-panel {
            padding: 0 1.5rem 1rem;
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
            border-bottom: 1px solid #e5e7eb;
        }

        .option {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .option input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }

        .controls {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            padding: 1rem 1.5rem;
            justify-content: space-between;
            align-items: center;
            background: var(--light);
        }

        .limit-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .limit-group input {
            width: 70px;
            padding: 0.4rem;
            border: 1px solid #e5e7eb;
            border-radius: 0.5rem;
            text-align: center;
        }

        .btn {
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-weight: 600;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            transition: var(--transition);
            background: white;
            border: 1px solid #e5e7eb;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            border: none;
        }
        .btn-primary:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }
        .btn-accent {
            background: var(--accent);
            color: #1f2937;
            border: none;
        }
        .btn-accent:hover {
            background: #e6a812;
        }
        .btn-outline {
            border: 1px solid var(--primary);
            color: var(--primary);
        }
        .btn-outline:hover {
            background: var(--primary);
            color: white;
        }
        .btn-danger {
            background: var(--danger);
            color: white;
        }
        .btn-danger:hover {
            background: #dc2626;
        }

        .results-table {
            padding: 1.5rem;
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th, td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid #e5e7eb;
        }

        th {
            background: var(--light);
            font-weight: 600;
            cursor: pointer;
            user-select: none;
        }
        th:hover {
            background: #e5e7eb;
        }

        .stat-badge {
            background: var(--primary);
            color: white;
            padding: 0.2rem 0.6rem;
            border-radius: 1rem;
            font-size: 0.75rem;
        }

        .toast {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            background: var(--dark);
            color: white;
            padding: 0.75rem 1.25rem;
            border-radius: 2rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            opacity: 0;
            transform: translateY(1rem);
            transition: opacity 0.3s, transform 0.3s;
            z-index: 1000;
            pointer-events: none;
        }
        .toast.show {
            opacity: 1;
            transform: translateY(0);
        }

        @media (max-width: 640px) {
            body {
                padding: 1rem;
            }
            .controls {
                flex-direction: column;
                align-items: stretch;
            }
            .limit-group {
                justify-content: center;
            }
            .btn {
                justify-content: center;
            }
       